Граф коммитов

532680 Коммитов

Автор SHA1 Сообщение Дата
Andrzej Hunt 1c5d02830f Bug 1356693 - infer: fix RESOURCE_LEAK's in services r=Grisha
The primary issue is that we use a throwing InputStreamReader
constructor. If it throws, then any nested streams will be lost.
We can fix that by using the non-throwing InputStreamReader
constructor (which uses a Charset as the second parameter,
instead of a String which causes an Exception to be thrown
if it can't be parsed)

We also simplify some nested Stream's a little: most of the
Stream constructors don't throw, so there's no harm in not keeping
individual references to those that don't throw - and that
results in less Stream references for us to handle.

MozReview-Commit-ID: 2hyRFGVmGnU

--HG--
extra : rebase_source : 15dd97d28012a017326b01ae8ddc370c7f1ec484
2017-04-14 20:58:59 -07:00
Andrzej Hunt 9614743c8f Bug 1356693 - infer: fix RESOURCE_LEAK's in base r=walkingice
MozReview-Commit-ID: Gm9GqOk37UZ

--HG--
extra : rebase_source : 762eac583f5d017aa0ccfa96a669d72c57f6f5bd
2017-04-19 08:26:38 -07:00
Andrzej Hunt 5108247dc0 Bug 1356693 - Pre: MergeCursor can handle null cursors r=Grisha
MergeCursor can handle null cursors (and is lightweight), we
don't need to specifically handle each case - which results in simpler
code.

MozReview-Commit-ID: CGwMi9LKYTj

--HG--
extra : rebase_source : 74c0c83ba4e8ea6ca036c24372ee7ff07a1cbc78
2017-04-27 11:57:41 +08:00
Andrzej Hunt 5341e86001 Bug 1356693 - Pre: use IOUtils.safeStreamClose() in IOUtils r=walkingice
MozReview-Commit-ID: 3dikakcAKqI

--HG--
extra : rebase_source : 05dd41ed123cdd9400da84fbcc03caef03624578
2017-04-14 15:24:45 -07:00
Jeremy Chen 79f145e226 Bug 1359313 - whitelist -moz-border-*-colors related bindings to satisfy heap write analysis. r=bholley,heycam
A quick fix for hazard bustage by increase the NUM_ALLOWED_WRITE_HAZARDS
from 3 to 7 is pushed in bug 1348173 comment 37. In this bug, we shall do
the actual fix and restore the NUM_ALLOWED_WRITE_HAZARDS.

The -moz-border-*-colors bindings trigger errors because they're using
outparams (nsStyleBorder) which further manipulate its member (mBorderColors)
which is a double raw pointers. Since we don't have the ability to
whitelist the indirect access to mBorderColors[x] list, we can only add
them to the ignoreContents for now.

We might be able to move these bindings to the whitelist of the above
treatAsSafeArgument function, if we could refactor mBorderColors to use
nsTArray directly.

MozReview-Commit-ID: 2cQz58K2A10

--HG--
extra : rebase_source : af2b5b944fb9d19fe28f57eaa37f77174d48bfa4
2017-04-27 12:06:05 +08:00
Phil Ringnalda be1376c018 Backed out changeset ddcbb81610fd (bug 1355198) for Android test_ext_proxy.html bustage
MozReview-Commit-ID: KetgckpyHea
2017-04-26 20:38:36 -07:00
JW Wang 1915d358a7 Bug 1359725 - add timeout to LoadInitData() in eme.js. r=gerald
So we can cancel the bad test as soon as possible and give a better description about the error.

MozReview-Commit-ID: ExKIK2HqJkN

--HG--
extra : rebase_source : 26391dfea33ab792cc5f0dc58fa42e6309e0c699
extra : source : 138125800895658a6feb88e3f90487d62b955f6a
2017-04-26 16:22:08 +08:00
JW Wang 54ae314fcc Bug 1358972. P2 - remove MediaDecoder::mEstimatedDuration and its friends which is never modified. r=kaku
MozReview-Commit-ID: 7W331tookXV

--HG--
extra : rebase_source : 2555fbdb4c5480e6880a67e71827ca06d6857992
extra : intermediate-source : c035bdc6f8e47cc92fa5d6b66421d319d9cd2e92
extra : source : 49ec1fd9914624f5aa4ea87bf4deb8b47017e288
2017-04-17 17:20:06 +08:00
JW Wang 381be5ed72 Bug 1358972. P1 - remove unused code. r=kaku
We can remove AbstractMediaDecoder::UpdateEstimatedMediaDuration() which
has no callers at all.

MozReview-Commit-ID: Eub12jQ25KK

--HG--
extra : rebase_source : f564b84a147252bd98c13fe475af971808880c8c
extra : intermediate-source : 4c0870a71b2091c39f5fc67c5cf21dea0a4cc459
extra : source : 1bfe40324a3801f8d60384b247d85f04b8971bbe
2017-04-17 17:10:09 +08:00
JW Wang f6a893a644 Bug 1358969 - let MediaDecoder::CurrentPosition() return a TimeUnit. r=kikuo
We want to replace the use of int64_t for microseconds by TimeUnit
whenever possible since int64_t is ambiguous which could be microseconds
or milliseconds.

MozReview-Commit-ID: K3Bz3uEXLDK

--HG--
extra : rebase_source : ade3cbd61c764b73a22c360572a525127dbadbc5
extra : intermediate-source : 013227a4aa645fc34a82c44130db6c847d74960b
extra : source : 1ab7ce426b557e4ce9979e023f9e84b4690eeaaa
2017-04-17 17:04:39 +08:00
Chris Pearce ce7bb69227 Bug 1358373 - Handle underestimating how many shmems the CDM needs to return decoded video frames to Gecko. r=gerald
The CDM process can't allocate shmems itself because it's sandboxed, so we
pre-allocate shmems in the content process and send them to the GMP process for
the CDM to use. Some sites seem to have encoded their content in such a way as
to cause the CDM to allocate and hang onto more frames than we pre-allocate; so
we run out of shmems in the GMP process, and the CDM can't allocate further
buffers to return output, and we fail.

So change the ChromiumCDMChild to allocate non-shmem-backed buffers if it runs
out of shmems, and return the result to the content process as an nsTArray.
Upon receiving that, the parent will send an extra shmem to the child, to
hopefully avoid the slow path again.

Also increase media.eme.chromium-api.video-shmems to 4, so that we're less
likely to hit this slow path in the wild. I've seen that Lightbox.co.nz and
Microsoft's EME test-drive require 4 shmems.

MozReview-Commit-ID: ISQYDkTj5uY

--HG--
extra : rebase_source : 92870f1adc7ae68e58b15443e4223012bdf0e39a
2017-04-26 15:46:09 +12:00
Iris Hsiao ba7c2486c7 Backed out changeset 4ff3acec9515 (bug 1349489). a=backout 2017-04-27 10:30:10 +08:00
Iris Hsiao cff14d343b Backed out changeset 6208b116de63 (bug 1349489) for eslint failure 2017-04-27 10:29:52 +08:00
Emilio Cobos Álvarez 2f08fea0a6 Bug 1359995: Add back the null-check on curData. r=heycam
I removed it, but seems it can be hit. It'd be nice to have a test-case where it
fails though...

MozReview-Commit-ID: 7Xa3dNHwFMn

--HG--
extra : rebase_source : 7f0d8df2f571b84745c41bf675f12a9340016775
2017-04-27 00:26:40 +02:00
Iris Hsiao c43c229375 Backed out changeset 0b8bf5cb743f (bug 1358373) for build bustage. a=backout
CLOSED TREE

--HG--
extra : amend_source : f6fd0c93b8b1ff9cc111cc4bc7776dd8e2a383d0
2017-04-27 10:10:47 +08:00
Sean Lee 5016a31faa Bug 1349489 - Part 2: Add test fixtures for autofill field name heuristics.; r=MattN
MozReview-Commit-ID: IuvSEpSHVtK

--HG--
extra : rebase_source : 49de3367deffd04bad6108006443ec44212e1688
2017-04-21 15:20:26 +08:00
Sean Lee 9a4e7aecd9 Bug 1349489 - Part 1: Move the codes from FormAutofillHandler.collectFormFields to FormAutofillHeuristics.getFormInfo.; r=MattN
MozReview-Commit-ID: BQTpopSyBUe

--HG--
extra : rebase_source : 62ba5d9c0e62fb00de36262fc191fc1b89d36c2b
2017-04-21 15:15:35 +08:00
Chris Pearce ecfe3c34c4 Bug 1358373 - Handle underestimating how many shmems the CDM needs to return decoded video frames to Gecko. r=gerald
The CDM process can't allocate shmems itself because it's sandboxed, so we
pre-allocate shmems in the content process and send them to the GMP process for
the CDM to use. Some sites seem to have encoded their content in such a way as
to cause the CDM to allocate and hang onto more frames than we pre-allocate; so
we run out of shmems in the GMP process, and the CDM can't allocate further
buffers to return output, and we fail.

So change the ChromiumCDMChild to allocate non-shmem-backed buffers if it runs
out of shmems, and return the result to the content process as an nsTArray.
Upon receiving that, the parent will send an extra shmem to the child, to
hopefully avoid the slow path again.

Also increase media.eme.chromium-api.video-shmems to 4, so that we're less
likely to hit this slow path in the wild. I've seen that Lightbox.co.nz and
Microsoft's EME test-drive require 4 shmems.

MozReview-Commit-ID: ISQYDkTj5uY

--HG--
extra : rebase_source : 4beba0212411a0f5867feb506bbf732f5a934fa9
2017-04-26 15:46:09 +12:00
Jared Wein 7dbb0e91c3 Bug 1347413 - Remove the unused browser-fullZoom:zoomReset and browser-fullZoom:zoomChange notifications. r=dao,mccr8
MozReview-Commit-ID: GeqfVngo9QT
2017-03-15 11:26:57 -04:00
Wes Kocher 226702fd85 Merge m-c to autoland a=merge
MozReview-Commit-ID: LOGgOErcV9L
2017-04-26 17:43:38 -07:00
Wes Kocher c90904f9bf Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 9HQViJrDT6S
2017-04-26 17:30:31 -07:00
Wes Kocher c9a5b19112 Backed out 5 changesets (bug 1320994) for browser_downloads_panel_block.js permafails on Win7VM a=backout CLOSED TREE
Backed out changeset b744a070cafb (bug 1320994)
Backed out changeset 5766ba7143b4 (bug 1320994)
Backed out changeset 31afc3fcd61f (bug 1320994)
Backed out changeset 78e5f8775727 (bug 1320994)
Backed out changeset 6d4e1736fd69 (bug 1320994)

MozReview-Commit-ID: 9tPD6gwXttd

--HG--
extra : source : f2c9825b0c32f46bdb33c6d53d5ec3c3950264ec
extra : amend_source : 900d86941bc0e5ead4f06dcdf7859aec343c15e6
2017-04-26 15:21:54 -07:00
Wes Kocher 7954a3d443 Merge autoland to m-c a=merge
MozReview-Commit-ID: BOSPzTn48B2
2017-04-26 15:34:31 -07:00
ffxbld ce5ccb6a8c No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-04-26 08:02:08 -07:00
ffxbld 728d6a0b30 No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-04-26 08:02:05 -07:00
Marco Bonardo 058d8d941c Bug 1359737 - Preferences.jsm is unused in PlacesSyncUtils.jsm. r=kitcambridge
MozReview-Commit-ID: JDhW8mmr3x0

--HG--
extra : rebase_source : 417a8cfa3ce4be200e2511fd2cef2dbcfdf940c9
2017-04-26 13:44:48 +02:00
Carsten "Tomcat" Book 8f4e4ca99b merge mozilla-inbound to mozilla-central a=merge 2017-04-26 08:41:31 +02:00
Carsten "Tomcat" Book d9cce3c040 merge autoland to mozilla-central a=merge 2017-04-26 08:40:02 +02:00
Phil Ringnalda 7e834ae6b6 Backed out 2 changesets (bug 1355648) for failures in test_gamepad_extensions.html
CLOSED TREE

Backed out changeset 1a675abcc1f0 (bug 1355648)
Backed out changeset f07c7d6ddb8d (bug 1355648)

MozReview-Commit-ID: 86HfzOsNVjZ
2017-04-25 20:31:16 -07:00
Phil Ringnalda be9487beea Backed out changeset f7656a18ff7e (bug 1358674) for gfx assertion failures about Texture deallocated too late during shutdown in browser-chrome
CLOSED TREE

MozReview-Commit-ID: 5KqpbH2oM0V
2017-04-25 20:30:23 -07:00
Daosheng Mu 22637d7222 Bug 1359670 - Notify GamepadManager when controllers are removed in VRPuppet manager; r=kip
MozReview-Commit-ID: KSlpJy8i7Xo

--HG--
extra : rebase_source : 416e8fa155c15829f0c488a2a1bf5f4924a5f375
2017-04-26 11:23:23 +08:00
Daosheng Mu 3a6ad95915 Bug 1355648 - Part 3: Set position and orientation IsValid properties for GamepadPose tests; r=kip
MozReview-Commit-ID: 29sjo3yhg98

--HG--
extra : rebase_source : afb483713a3e895d81e20d4d8dc3861679f1781e
2017-04-26 13:17:25 +08:00
Mike Conley d9a3f851e1 Bug 1357169 - Remove checkmark.svg, indeterminate-checkmark.svg and radio.svg from browser_all_files_referenced.js test. r=mats
MozReview-Commit-ID: BKMEyy5D3UU

--HG--
extra : rebase_source : adf6d66026e646ae738533aabec3dab634cde5f7
2017-04-25 17:36:29 -04:00
Wes Kocher d550017825 No bug - Fix up merge bustage from an unsaved change a=me
MozReview-Commit-ID: CdGDhCgrksv
2017-04-25 13:58:03 -07:00
Wes Kocher 5e8bdb175d Merge inbound to m-c a=merge
MozReview-Commit-ID: A85cs7Yriqj
2017-04-25 13:53:00 -07:00
Wes Kocher faac8b0a78 Merge autoland to central, a=merge
MozReview-Commit-ID: 4UB8BLyoH4X
2017-04-25 13:02:19 -07:00
Sebastian Hengst 288df523ef Backed out changeset ad9d525e6db7 (bug 1356243) for mass-failing reftests and crashtests, at least on Linux. r=backout 2017-04-25 18:43:34 +02:00
Marco Castelluccio 1af44da4a3 Bug 1359458 - Increase assertion count range for test_bug437844.xul. r=jmaher
--HG--
extra : rebase_source : 9a9e8d93afc1f883454b4533a13c8239c2608c31
2017-04-25 17:33:58 +02:00
Eugen Sawin c281414151 Bug 1358241 - [2.1] Add mutex locking around the library handles cache. r=jchen 2017-04-25 18:05:06 +02:00
Eugen Sawin 84b446b09c Bug 1358241 - [1.2] Make direct library reference counter atomic to avoid mutex locking issues. r=jchen 2017-04-25 18:05:06 +02:00
Dale Harvey 7311d5038a Bug 1355676 - Check for nulls when decoding icons. r=sebastian 2017-04-25 16:53:29 +01:00
ffxbld 876c7dd305 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-04-25 07:57:31 -07:00
ffxbld 1d0cdb27cb No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-04-25 07:57:28 -07:00
Carsten "Tomcat" Book 9155c12847 merge autoland to mozilla-central a=merge 2017-04-25 11:23:43 +02:00
Jeremy Chen 4f2d12389f Bug 1348173 - fix stylo bustage. r=heycam
MozReview-Commit-ID: KW6AddyoxwR

--HG--
extra : rebase_source : 07575025570390b0bba54a28faf67d854f8113ea
2017-04-25 14:50:44 +08:00
Jeremy Chen 3e5064f08f Bug 1348173 - stylo: combined gecko side patch for -moz-border-*-colors support. r=heycam
MozReview-Commit-ID: 53gWkWKJNmV

--HG--
extra : rebase_source : 5bd1ddaf954533094c77a3ca5bdf9f3c3441056f
2017-04-25 14:50:44 +08:00
Aaron Cunningham e36974081a servo: Merge #16598 - Fix various build warnings (from aacunningham:fix-build-errors); r=jdm
This removes six separate warnings when building servo. One of
the warnings was an unused mut, and the other were various dead code
warnings

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #16584 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they address warnings from the build process

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: f3c1bbe0700806ef2def3b0c5ce0dde4eba107ea

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 6f8c8212a51601e9dba5e8f8a345ba5ae89db147
2017-04-25 01:02:56 -05:00
Iris Hsiao 47c1689c86 Merge mozilla-central to mozilla-inbound 2017-04-25 11:30:03 +08:00
Iris Hsiao 1548482ea5 merge mozilla-inbound to mozilla-central a=merge 2017-04-25 11:21:30 +08:00
Mike Conley 196e3f85b9 Bug 1357169 - Make radio-stretched reftest pass expectedly, and disable two reftests for Android. r=mats
MozReview-Commit-ID: A5zHwXl2euQ

--HG--
extra : rebase_source : 7c4db21d2183fee5a3144f1ad689dff282f04bba
2017-04-24 22:59:28 -04:00