Commit Graph

64418 Commits

Author SHA1 Message Date
Beekill95
02915ae8bc Bug 1362330 - Move XPath generation to Node's interface and move all remaining XPathGenerator.jsm functions to FormData. r=smaug, r=mikedeboer
MozReview-Commit-ID: Ej45wPeddtQ
2017-06-15 08:49:17 +07:00
Jessica Jong
fdb38c21da Bug 1372369 - Part 2: Set validity state to 'bad input' when the entered date value is invalid. r=smaug
If all fields in date/time input box are available but the input element's
value is empty, implies that it has been sanitized. In this case, we'll set the
'bad input' validity state. If any of the fields is cleared, we'll remove the
'bad input' validity state, as incomplete field does not imply 'bad input'.

MozReview-Commit-ID: 4EBpH5CWqXM
2017-06-19 01:13:00 -04:00
Jessica Jong
2adbf19dee Bug 1372369 - Part 1: Update input element's value when all fields are available and let DOM HTMLInputElement sanitize it. r=smaug
In this patch, we change it so that we always set the input element's value
once all fields are available and let DOM HTMLInputElement sanitize it. The
value after sanitization is not updated in the displayed input box, but may
display an error message (this will be done in Part 2) if needed.
Also, when any of the field's value is deleted, we will set input element's
value back to the empty string, so that a value is not accidentally submitted.

MozReview-Commit-ID: 9NAL8UlkoBK
2017-06-16 02:09:00 -04:00
Thomas Wisniewski
3646a5cbe9 Bug 1036659 - Don't call mozilla::DropJSObjects() in CallbackObject::DropJSObjects(). r=mccr8
MozReview-Commit-ID: AbD1NUqCvFD
2017-06-16 17:15:32 -04:00
Carsten "Tomcat" Book
b6627b974a Merge mozilla-central to mozilla-inbound 2017-06-19 14:48:12 +02:00
Carsten "Tomcat" Book
d14a5a593a merge mozilla-inbound to mozilla-central a=merge 2017-06-19 13:37:20 +02:00
Christoph Kerschbaumer
829704554e Bug 1370788 - Move XFO out of nsDSURIContentListener.cpp into dom/security. r=smaug 2017-06-19 06:59:44 +02:00
Nicholas Nethercote
5d3808c6e5 Bug 1373436 (part 4) - Use UniquePtr with profile_add_marker(). r=mstange.
Once the |aPayload| argument to profile_add_marker() became a UniquePtr the
default value of nullptr caused compilation difficulties that could only be
fixed by #including ProfilerMarkerPayload.h into lots of additional places
(because the UniquePtr<T> instantiation required the T to be fully defined). To
get around this I just split profile_add_marker() into two functions, one with
1 argument and one with 2 arguments.

The patch also removes the definition of PROFILER_MARKER_PAYLOAD in the case
where MOZ_GECKO_PROFILER isn't defined. A comment explains why.
2017-06-16 12:26:26 +10:00
Mats Palmgren
8924a195df Bug 1373999 part 3 - Create dom/base/SelectionChangeListener.cpp and move mozilla::dom::SelectionChangeListener code from dom/base/Selection.cpp to it. r=smaug
MozReview-Commit-ID: E8kiDtyWVdQ

--HG--
rename : dom/base/Selection.cpp => dom/base/SelectionChangeListener.cpp
2017-06-19 00:07:36 +02:00
Mats Palmgren
18cc369911 Bug 1373999 part 2 - Create layout/generic/nsFrameSelection.cpp and move nsFrameSelection code from dom/base/Selection.cpp to it. r=smaug
MozReview-Commit-ID: 2uTrJ9SO63s

--HG--
rename : dom/base/Selection.cpp => layout/generic/nsFrameSelection.cpp
2017-06-19 00:07:36 +02:00
Mats Palmgren
d582beef4f Bug 1373999 part 1 - Move layout/generic/nsSelection.cpp verbatim to dom/base/Selection.cpp, and layout/generic/Selection*.h to dom/base/. Also export a few table header files that it needs. r=smaug
MozReview-Commit-ID: 9YUmEOIHUdc

--HG--
rename : layout/generic/nsSelection.cpp => dom/base/Selection.cpp
rename : layout/generic/Selection.h => dom/base/Selection.h
rename : layout/generic/SelectionChangeListener.h => dom/base/SelectionChangeListener.h
2017-06-19 00:07:36 +02:00
Sebastian Hengst
1f7d31312c merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-06-18 20:50:40 +02:00
Sebastian Hengst
593e520c55 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Oi3PA6ZpRz
2017-06-18 20:35:11 +02:00
Ehsan Akhgari
8e9e1f185c Bug 1374036 - Annotate the unlikely branches in EventListenerManager::ListenerCanHandle() in order to allow the optimizer to reorder code more effectively; r=smaug 2017-06-18 12:06:34 -04:00
Andrea Marchesini
4db0707bc6 Bug 1373542 - Replace AutoFreeBuffer with MakeScopeExit in Fetch.cpp, r=bkelly 2017-06-18 11:47:45 +02:00
Paolo Amadini
585fbe6cec Bug 1242505 - Detect unhandled rejections of native Promises in browser-chrome tests. r=Mossop
The browser-chrome test suite now detects and reports unhandled rejections of native Promises, in addition to those created by Promise.jsm. The whitelisting mechanism is updated to use primarily the PromiseTestUtils.expectUncaughtRejection function. Tests will fail if a rejection that is not whitelisted occurs, or if a whitelisted rejection does not occur anymore.

MozReview-Commit-ID: 1beGB5GG8Ty

--HG--
extra : rebase_source : b6573f8e2001f91d0e5a50f6376b191459549e94
extra : intermediate-source : 0411e687044ecc7b56684196238e6e6e68a9d685
extra : source : 8d53be05afc59519c5ce8cfae96d284a972fda71
2017-06-18 08:05:06 +01:00
Mats Palmgren
5b7c81e34b Bug 1372317 part 2 - Replace LookupRemoveIf() calls with Lookup() + entry.Remove() where needed. r=froydnj
MozReview-Commit-ID: AoRNdbzh66c
2017-06-18 17:07:54 +02:00
Sebastian Hengst
3654d560d6 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: DPQl41S3ZkU
2017-06-17 22:26:03 +02:00
Wes Kocher
b0560565d7 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 8k4A4tEOtIT
2017-06-16 18:17:38 -07:00
Wes Kocher
39066d6984 Merge inbound to central, a=merge
MozReview-Commit-ID: 2k4filK9zyX
2017-06-16 17:58:58 -07:00
Mats Palmgren
e96c22d711 Bug 1373095 - Devirtualize GetRowSpan/GetColSpan. r=bz
MozReview-Commit-ID: 7EUqrFMMe9c
2017-06-17 02:49:09 +02:00
Mats Palmgren
9d353fa50b Bug 966240 - Remove support for <meta http-equiv="msthemecompatible" content="no">. r=dbaron
It appears that neither Chrome, Safari or Edge support this feature,
and it's causing web-compat issues for us, e.g. bug 1373417.

MozReview-Commit-ID: AP5LMgL6QmR
2017-06-16 17:17:22 +02:00
Olli Pettay
19e0e34c6d Bug 1373651 - Ensure we don't report too large GC-during-idle values, r=mccr8
--HG--
extra : rebase_source : 597faa884e613f9580c9ae3283f6e54cb02dd46b
2017-06-16 17:45:15 +03:00
Kirk Steuber
25f3dbc5bc Bug 1357645 - Clone attributes rather than reparsing when possible r=bz
Now that the side effects of parsing have been relocated to BeforeSetAttr and AfterSetAttr (Bug 1365092), we can easily switch nsGenericHTMLElement::CopyInnerTo from reparsing attributes to cloning them. They are still reparsed, however, in the case where the owning document is changing since Base URIs may have changed.

MozReview-Commit-ID: 2TlUUyBx6bL

--HG--
extra : rebase_source : b581e797a24230d012cf79c1fc567c05d9acc746
2017-06-15 09:56:18 -07:00
Mats Palmgren
ea75194536 Bug 1372031 - Use EnsureInserted instead of Contains+PutEntry to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 2ZG2qX3dyGa
2017-06-17 00:06:04 +02:00
Mats Palmgren
41a0eaaaa9 Bug 1372009 - Use aCommandsHandled.EnsureInserted instead of Contains+PutEntry to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 4ukgy6mBsKq
2017-06-17 00:06:04 +02:00
Mats Palmgren
4264d9480f Bug 1371925 - Remove unnecessary hashtable lookups in DOMIntersectionObserver. r=froydnj
MozReview-Commit-ID: LUt03nCz3SD
2017-06-17 00:06:04 +02:00
Makoto Kato
23c3e741f1 Bug 1368888 - Don't get previous value twice in input.value setter. r=smaug
We get previous input.value twice in HTMLInputElement::SetValue and nsTextEditorState::SetValue when setting input.value.  Since nsTextEditorState::GetValue uses DocumentEncoder, it is expensive.  So we should use old value as parameter of nsTextEditorState::SetValue if possible.

MozReview-Commit-ID: A1UPfETTVCn

--HG--
extra : rebase_source : f751289b42b4d9d5c389042f688c53bde47d1620
2017-06-14 18:21:01 +09:00
Sebastian Hengst
efd723cdad merge mozilla-central to autoland. r=merge 2017-06-18 00:21:41 +02:00
Masatoshi Kimura
3231cb3535 Bug 1372886 - Remove dead parameters from nsIConverterInputStream.init(). r=hsivonen
MozReview-Commit-ID: GliLHLsUWjt

--HG--
extra : rebase_source : 50d3f4680a498125ddf600b0d64f6740b0229f80
2017-06-17 19:30:09 +09:00
Masatoshi Kimura
838ccc4108 Bug 1369025 - Remove mozilla::dom::EncodingUtils. r=hsivonen
MozReview-Commit-ID: 5O5WtxbmATQ

--HG--
rename : dom/encoding/encodingsgroups.properties => intl/locale/encodingsgroups.properties
extra : rebase_source : 13143b43ee745b618e05ed1b6991d69781c2767d
2017-06-17 11:54:40 +09:00
Masatoshi Kimura
9865b2fdeb Bug 1369020 - Remove nsContentUtils::ConvertStringFromEncoding and nsContentUtils::CheckForBOM. r=hsivonen
MozReview-Commit-ID: E0w8BsP1Rof

--HG--
extra : rebase_source : db95e1e7fc60c9b9c8e6d7fcc5329421ec97e811
2017-06-16 21:11:03 +09:00
Alfredo Yang
f2e77f3bb0 Bug 1370175 - enable rust mp4 parser on other platforms and fallback to stagefright if rust parser fails. r=kinetik
MozReview-Commit-ID: 6ykgAOagR7a

--HG--
extra : rebase_source : 24b67a9aa1e0c8e5a28e65ee23470738aebd946f
2017-06-14 11:29:10 +08:00
Jean-Yves Avenard
904b949686 Bug 1374068: P2. Rewrite bits with lambdas. r=gerald
Allow to get rid of the mPendingSample member, making the logic easier to follow.

MozReview-Commit-ID: F7a25p1TP8J

--HG--
extra : rebase_source : 9413f8a685df44b6e93e7382a0eda77dce27056f
2017-06-18 17:57:35 +02:00
Jean-Yves Avenard
9935370468 Bug 1374068: P1. Drain the decoder when content is changing. r=gerald
MozReview-Commit-ID: EUiBIaHzBCO

--HG--
extra : rebase_source : 5d6b1f68d3572baa87a4de38d9daf3804cdc6aff
2017-06-18 17:29:23 +02:00
Xidorn Quan
88857216a9 Bug 1359217 part 1 - Make document nsIDocumentObserver::StyleRule* methods include the rule as parameter. r=bz
MozReview-Commit-ID: H8FgiwCv0Gr

--HG--
extra : source : 64481d27547196d9e3794eeea562492af67d900f
2017-06-19 15:45:43 +10:00
JW Wang
f7b857d975 Bug 1373595. P3 - devirtualize NotifyDownloadProgressed which has no overrides at all. r=gerald
MozReview-Commit-ID: 7RoBvSc4fXP

--HG--
extra : rebase_source : cc95c56ab351165cf0069b970608df717843068d
2017-06-19 11:02:20 +08:00
JW Wang
becfe61ebe Bug 1373595. P2 - rename NotifyBytesDownloaded to NotifyDownloadProgressed to better describe what it actually does. r=gerald
MozReview-Commit-ID: IOBY3UKAy0G

--HG--
extra : rebase_source : be4b9a53fa676ec0a628a09edecce74528f1e66a
2017-06-19 11:01:13 +08:00
JW Wang
480e189f8c Bug 1373595. P1 - merge MediaResourceCallback::NotifyDataArrived and NotifyBytesDownloaded. r=gerald
We now call NotifyDataArrived() after data written to the cache to notify
download progresses and buffer ranges re-calculation.

MozReview-Commit-ID: 3IrDuEYJYWu

--HG--
extra : rebase_source : 165a199952be32c8c4cd8f1c578b87826a267f10
2017-06-16 18:35:12 +08:00
Michael Froman
532f5313a7 Bug 1373015 - fix permafail mochitest for RTCIceCandPairStats changes in Bug 1339906. r=drno
Something changed in the timing and we're getting more candidate pairs
in the test now.  I changed the test to only compare most of the
details when the pair is in state succeeded.

MozReview-Commit-ID: FaR00eZPJmI

--HG--
extra : rebase_source : 9e29f7604f6ae198cbaf792171db265612a574a6
2017-06-15 12:17:43 -05:00
bechen
e613c38f5c Bug 1372715 - TimeMarchesOn step 1, fix the EndTime check for "current cue". r=rillian
Cue whose start times are less than or equal to the current playback position and
whose end times are greater than the current playback position.

MozReview-Commit-ID: 2I5lgjUUtgB

--HG--
extra : rebase_source : 5396f932da54cf175fe330f0caf85472ac9f7e42
2017-06-16 10:48:14 +08:00
Tim Huang
7d1c0f2d14 Bug 1369303 - Part 2: Marking the performance timing API always reports 0 and the access of resource timing and user timing becomes NOP when 'privacy.resistFingerprinting' is true. r=arthuredelstein,baku
This patch is going to neutralize the threat of fingerprinting of performance API
by spoofing the value of performance timing into 0, making getEntries* functions
always returns an empty list and making mark() and measure() into NOP methods.

In addition, this patch changes nsContentUtils::ShouldResistFingerprinting() to
allow it can be called in both main thread and worker threads.

MozReview-Commit-ID: C8Jt7KEMe5e

--HG--
extra : rebase_source : 85cbf66881c868ca5109022ffd4af81e3ab0a049
2017-06-15 16:48:27 +08:00
Tim Huang
64bc6e5f1f Bug 1369303 - Part 1: Adding 'privacy.resistFingerprinting' into worker prefs. r=arthuredelstein,baku
MozReview-Commit-ID: 5AwFjoeRY2a

--HG--
extra : rebase_source : 45cae6779fb70b58d20a493f89fb7b98e4956275
2017-06-15 16:48:26 +08:00
John Dai
2675b61900 Bug 556743 - Update web-platform tests for labels attribute. r=smaug 2017-06-05 06:27:00 -04:00
John Dai
005cba50ea Bug 556743 - Implement the labels attribute. r=smaug 2017-06-15 20:04:00 -04:00
Sebastian Hengst
d70c8aa98b merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-06-16 09:52:22 +02:00
Sebastian Hengst
265affc002 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5wTyHWufcCh
2017-06-16 09:50:00 +02:00
Andrea Marchesini
9e04e35075 Bug 1370819 - Postpone the dispatching of XHR events with opened synchronously, r=smaug 2017-06-16 08:07:00 +02:00
Bill McCloskey
0767e31489 Bug 1372736 - Avoid using AbstractThread for non-media MozPromises (r=bkelly)
MozReview-Commit-ID: BBi0pK4DXxf
2017-06-15 20:16:25 -07:00
Bill McCloskey
1158c7c282 Bug 1372733 - EventTargetFor should return an nsISerialEventTarget (r=bkelly)
MozReview-Commit-ID: Kchg4kqBERt
2017-06-15 20:16:25 -07:00
Yoshi Huang
6c761bcc02 Bug 1368897 - rewrite dom/base/test/test_x-frame-options.html. r=smaug
We test the expected behavior base on the pref,
"security.data_uri.unique_opaque_origin".

We run the legacy test when the pref is off, however if the pref is on,
we run the new behavior, loading an iframe with X-FRAME-OPTIONS in a
data: URI should be blocked.
2017-06-16 10:54:10 +08:00
Yoshi Huang
68f70ea183 Bug 1368896 - rewrite dom/base/test/test_viewport_scroll.html. r=smaug 2017-06-16 10:53:04 +08:00
Yoshi Huang
7364f7009f Bug 1368893 - rewrite dom/html/test/test_iframe_sandbox_inheritance.html. r=smaug
Move the data URI in 'if_no_scripts' and 'if_scripts' to seperate files.

Also remove the test 'if_19', as it seems redundant, it tests the same
thing with the iframe 'if_scripts', and it also lacks of 'allow-scripts'
in its sandbox flag.
2017-06-16 10:52:25 +08:00
Yoshi Huang
8ddf2451de Bug 1267075 - Part 6: test state pseudo class for image blocking. r=bz
Verify when image is blocked, the style of the following state pseudo class will
apply:
:-moz-suppressed
:-moz-broken
:-moz-user-disabled
2017-06-16 10:12:10 +08:00
Yoshi Huang
0bb598eed9 Bug 1267075 - Part 5: test for blocking image. r=bz
A mochitest browser test for image blocking.
We query the blocking status by reading imageBlockingStatus.

See nsImageLoadingContent.cpp for the logic of blocking image.
In this test we verified the following behavior:
1. image is loaded.
2. image is blocked.
3. mCurrentRequest doesn't have size yet, so it should be replaced.
4. mCurrentRequest already got size, the following request should be a
pendingRequest.
2017-06-16 10:12:10 +08:00
Yoshi Huang
8af20dccc4 Bug 1267075 - Part 4: add a boolean to prevent calling asynchronously. r=bz
Use a boolean to prevent calling SetBlockedRequest asynchronously.
Also use the same boolean to prevent some evil code reenters LoadImage.

Then we should redesign the correct bahavior in those follow-up bugs,
Bug 1353685 - Should ServiceWorker call SetBlockedRequest
Bug 1353683 - consider calling SetBlockedRequest in nsCORSListenerProxy::UpdateChannel
Bug 1371237 - consider calling SetBlockedRequest in nsContentSecurityManager::CheckChannel
2017-06-16 10:12:09 +08:00
Yoshi Huang
83ef929df9 Bug 1267075 - Part 2: bail out early if it's for data document. r=bz
Check the document earlier before calling into imageLoader, this could
save us tons of time if in the end the document isn't allowed to load images.
2017-06-16 10:12:09 +08:00
Yoshi Huang
5dcdd16255 Bug 1267075 - Part 1: call SetBlockedRequest when CSP check failed. r=bz
As a follow-up from bug 1206961, we will remove calling CanLoadImage in
this bug. Also in the case of CSP check failed, we will call
SetBlockedRequest in those cases.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1267075#c30 for the
analysis between the old and new setup.
2017-06-16 10:12:08 +08:00
Manish Goregaokar
3188b9bfd6 Bug 1373018 - Part 10: stylo: Remove StyleSource; r=bholley
MozReview-Commit-ID: 4IcROeDNoBA

--HG--
extra : rebase_source : e2f65c316be2c5640150eb5ff5628505ce446535
2017-06-10 22:27:45 -07:00
Manish Goregaokar
02ab46c24d Bug 1373018 - Part 8: stylo: Move nsStyleContext::SetStyle to GeckoStyleContext; r=bholley
MozReview-Commit-ID: ycXu95whnG

--HG--
extra : rebase_source : 852051aa074cc8ed8f11f0d68c26fe4f0a6962b6
2017-06-10 22:27:45 -07:00
Gerald Squelart
4a3a84f39f Bug 1371882 - Remove unneeded MediaCache::mContentLength - r=cpearce
Now that MediaCache doesn't use the content length to decide which block cache
to use, and can know it's the file-backed MediaCache (to reset the pointer,
and for telemetry purposes), we don't need to store mContentLength anymore.

MozReview-Commit-ID: KjxarKFe9WK

--HG--
extra : rebase_source : e2cb397c6d5e37a8390479f4245255ef52265483
2017-06-15 17:32:26 +12:00
Gerald Squelart
3af100b5e5 Bug 1371882 - MemoryBlockCache claims extra buffer capacity if any - r=cpearce
MozReview-Commit-ID: GDLs8FcuD07

--HG--
extra : rebase_source : f0bc302b53880ad9ee2f73f1305e7552af300321
2017-06-15 18:38:52 +12:00
Gerald Squelart
2f8acfe718 Bug 1371882 - MemoryBlockCache is responsible for tracking the combined size of all its buffers - r=cpearce
MemoryBlockCache won't allow initializing, or growing an existing buffer,
above the limit (min of 'media.memory_caches_combined_limit_kb' or
sysmem*'media.memory_caches_combined_limit_pc_sysmem'/100).

MozReview-Commit-ID: 6MkwFp2eeth

--HG--
extra : rebase_source : 17345f6fe9f00fddfbef87090665afccaabb2cf5
2017-06-15 17:10:54 +12:00
Gerald Squelart
319f8220ec Bug 1371882 - Let GetMediaCache decide which block cache to use - r=cpearce
This allows a fallback to the file-backed MediaCache, if a MemoryBlockCache
could not be created and initialized (which may happen in the next patch,
where MemoryBlockCache will take care of not using more than
MediaMemoryCachesCombinedLimit).

MediaCache::Init() is not needed anymore, as its only work was to initialize
its block cache.

MozReview-Commit-ID: ItAdOPuxEvt

--HG--
extra : rebase_source : 08461d61b8d738edb8c2088bca4e33213b8ae4e1
2017-06-15 16:32:06 +12:00
Gerald Squelart
5a0a2a8c04 Bug 1371882 - MediaCache::Flush reinitializes block cache instead of recreating it - r=cpearce
This saves from destruction&re-construction efforts, makes the flushing less
prone to first-initialization failures.
And it will allow moving the choice of block cache outside of MediaCache::Init.

MozReview-Commit-ID: 8vSunM3rRkL

--HG--
extra : rebase_source : d244c9ff0cb34f9b2171e5f5848501cc1d71d2bc
2017-06-15 16:12:30 +12:00
Gerald Squelart
6400af0f0e Bug 1371882 - MediaBlockCacheBase::Init may be called again to re-initialize cache - r=cpearce
This will be useful to let the MediaCache flush its block cache without having
to restart from scratch (and risk failing).

MozReview-Commit-ID: At3mxH9jb9m

--HG--
extra : rebase_source : b5ac513c6d6d100c8eb41220991388470c0b1a5e
2017-06-15 15:55:39 +12:00
Gerald Squelart
732f34fc15 Bug 1371882 - MediaCache is now ref-counted - r=cpearce
MediaCacheStreams have owning shared pointers to their MediaCache, and
a MediaCache owns itself while an update is in flight.
A non-owning pointer `gMediaCache` is only used by GetMediaCache and
~MediaCache to manage the one file-backed MediaCache.

MozReview-Commit-ID: AQHuXWGrKt6

--HG--
extra : rebase_source : f256e20080b8701f87418209aa42c5a0fe3f5239
2017-06-15 15:02:25 +12:00
Gerald Squelart
16c8e8bc32 Bug 1371882 - Remove MediaBlockCacheBase::Close() - r=cpearce
The only external use of Close was always followed by an implicit destruction
(by resetting the RefPtr), so we don't need to expose it, and it can be done
from the destructor.

FileBlockCache keeps its Close() function for internal use.
Also, FileBlockCache::mIsOpen is redundant, as it's true iff mThread is not
null.

MozReview-Commit-ID: LV7YVrwJvGG

--HG--
extra : rebase_source : 23decadf249b9e63190b3e19d81edc4a090afcef
2017-06-15 14:10:05 +12:00
Gerald Squelart
ac5fcad310 Bug 1371882 - Avoid MemoryBlockCache when combined sizes > 'media.memory_caches_combined_limit_...' - r=cpearce
Don't go over the lowest of 'media.memory_caches_combined_limit_kb'
(kilobytes) or 'media.memory_caches_combined_limit_pc_sysmem' (percents of
system memory).

Added more logging around creation/destruction of MediaCaches.

MozReview-Commit-ID: Cdz4ycyn1RR

--HG--
extra : rebase_source : 63168234f186c3ef9c0289a189a647d67d8526a4
2017-06-12 15:42:26 +12:00
Gerald Squelart
2f4776d6e2 Bug 1371882 - MediaCache uses MemoryBlockCache when content length is known - r=cpearce
MozReview-Commit-ID: 35A4Vc95NtB

--HG--
extra : rebase_source : 8cae198053b6b5ec062137176b8eba377f5bcc83
2017-06-09 18:56:34 +12:00
Gerald Squelart
cb4bc96af2 Bug 1371882 - MEMORYBLOCKCACHE_ERRORS telemetry to catch unexpected errors without crashing - r=cpearce,francois
No errors are expected to happen in MemoryBlockCache (except a few
'InitAllocation', which would still be good to know about), but instead of
taking drastic measures in these cases (i.e., crash), I would prefer to
collect some telemetry first.

MozReview-Commit-ID: 4WdFS34lgzj

--HG--
extra : rebase_source : 5600d0b93d4d438d8cc9cf5a74d9fbf24fe2822e
2017-06-12 16:22:28 +12:00
Gerald Squelart
b901a472b6 Bug 1371882 - Implement MemoryBlockCache - r=cpearce
Memory-backed block cache.
At initialization, allocates memory needed to store the expected content
length.
If MediaCache attempts to write/move beyond the expected size, we grow the
buffer accordingly, as we cannot fully trust HTTP headers. (Future patch will
ensure we put a limit to this growth.)

MozReview-Commit-ID: GHxYMGXYrwI

--HG--
rename : dom/media/MediaBlockCacheBase.h => dom/media/MemoryBlockCache.h
extra : rebase_source : 4fe263006839ba82a77d124f147adf5943cfa651
2017-06-09 15:37:23 +12:00
Gerald Squelart
b3828d2355 Bug 1371882 - Rename MediaCache::mFileCache to mBlockCache - r=cpearce
Because blocks may not necessarily be held in files anymore.

MozReview-Commit-ID: 2GNc7B5w2Jt

--HG--
extra : rebase_source : 4ceda80ca6736b159d8b726cdcfb8d7f74cf8529
2017-06-14 17:01:46 +12:00
Gerald Squelart
98f4458011 Bug 1371882 - Virtualize FileBlockCache's API into MediaBlockCacheBase - r=cpearce
MozReview-Commit-ID: Eya0RWiyiEP

--HG--
rename : dom/media/FileBlockCache.h => dom/media/MediaBlockCacheBase.h
extra : rebase_source : e4e847924e2df5bf0e7f2b7e92068fc104ca9bb6
2017-06-09 14:26:22 +12:00
Gerald Squelart
d891f9f0c5 Bug 1371882 - Remove FileBlockCache's dependency on Runnable - r=cpearce
This is necessary before we can make FileBlockCache depend on another
ref-counted base in the following patch.

MozReview-Commit-ID: 8bfNwQhY8k0

--HG--
extra : rebase_source : b216d0af3e4b5abb68532f2547597c4f04585a71
2017-06-09 14:51:17 +12:00
Gerald Squelart
527c7d3dee Bug 1371882 - If content length <= 'media.memory_cache_max_size', use a discrete memory-backed MediaCache - r=cpearce
MozReview-Commit-ID: HH1R6LjKkxb

--HG--
extra : rebase_source : 2ce35a504c6709624bc7d161003b8331f6f25d1e
2017-06-09 23:15:04 +12:00
Gerald Squelart
d86f260baa Bug 1371882 - Move MEDIACACHESTREAM_NOTIFIED_LENGTH telemetry collection to MediaCacheStream::Init - r=cpearce
The initial telemetry collection was done in NotifyDataLength() because that
was the first point where the length was introduced; but some extra code was
needed to ensure that were collecting the first length.
Now that this initial length is passed directly to Init(), we can report that
number instead.
In the "worst" case, it will actually be a bit more correct about what we
initially wanted to report, i.e., the initial length given by the HTTP
response header; and it's what we really want to know, now that we are using
this number to make a decision about which MediaCache to use.

MozReview-Commit-ID: 11Th8pensZt

--HG--
extra : rebase_source : 97a6d2dcbfad6c9b37819bfe6471baff2ec7e335
2017-06-12 14:27:46 +12:00
Ben Kelly
4deac3f186 Bug 1371787 P8 Change Timeout::mInterval member to a TimeDuration. r=ehsan 2017-06-15 17:30:48 -07:00
Ben Kelly
310e665654 Bug 1371787 P7 Make CalculateDelay() return a TimeDuration. r=ehsan 2017-06-15 17:30:48 -07:00
Ben Kelly
36211ea11b Bug 1371787 P6 Move the std::max() calculation into DOMMinTimeoutValue() and rename the method to CalculateDelay(). r=ehsan 2017-06-15 17:30:47 -07:00
Ben Kelly
a0d3a469e4 Bug 1371787 P5 Move the Timeout conditional checking into DOMMinTimeoutValue(). r=ehsan 2017-06-15 17:30:47 -07:00
Ben Kelly
a720c757a3 Bug 1371787 P4 Pass Timeout to DOMMinTimeoutValue(). r=ehsan 2017-06-15 17:30:47 -07:00
Ben Kelly
9e7089aee3 Bug 1371787 P3 Move some Timeout initialization earlier. r=ehsan 2017-06-15 17:30:47 -07:00
Ben Kelly
36f2e5562d Bug 1371787 P2 Don't adjust Timeout::When() values in TimeoutManager::Resume(). r=ehsan 2017-06-15 17:30:47 -07:00
Ben Kelly
f4263c76a4 Bug 1371787 P1 Rename TimeoutManager "min timeout" values to "min clamp timeout" for clarity. r=ehsan 2017-06-15 17:30:47 -07:00
domfarolino@gmail.com
d4253766db Bug 1274663 - Expose API to trigger device reset. r=dvander
--HG--
extra : rebase_source : 5a9d2757f8e7378083ce42131d5a250027569814
2017-06-15 14:34:00 -04:00
Wes Kocher
c0147ff641 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Gpr1rVG4pMo
2017-06-15 16:26:40 -07:00
Wes Kocher
208ec84119 Merge inbound to central, a=merge
MozReview-Commit-ID: AiSwcmvIrE
2017-06-15 16:22:40 -07:00
Ryan Hunt
fd8c1c280d Bug 1373285 - Remove keyboard apz telemetry probes. r=smaug
These are no longer needed as we have the data we were looking for.

MozReview-Commit-ID: 3WlPng3mAwt

--HG--
extra : rebase_source : 73a390f85f5c0894d53a5e8ee10b19278af58282
extra : amend_source : 6a2b9ff4191715d0ac6e43f92af1e64c59123ac6
2017-06-15 13:55:26 -05:00
Sebastian Hengst
9b6197930c merge mozilla-central to autoland. r=merge a=merge 2017-06-15 20:13:40 +02:00
Sebastian Hengst
43c84014a1 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HYo8pUZXJ8Z
2017-06-15 20:12:28 +02:00
Michael Layzell
b24cba603e Bug 1369627 - Part 2: Send DimensionInfo down to the content process synchronously when creating a new window, r=smaug
MozReview-Commit-ID: GlzJ491RLUE
2017-06-15 14:34:48 -04:00
Michael Layzell
f9f7306ed3 Bug 1369627 - Part 1: Add a test for the behavior of window.resizeBy right after opening a new window, r=smaug
MozReview-Commit-ID: GLqs4YU0lbX
2017-06-15 14:34:46 -04:00
Sebastian Hengst
a672914c01 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-06-15 20:14:54 +02:00
Chih-Yi Leu
33ab8ec199 Bug 1371940 - Reset mStencilTestEnabled when initializing openGL context r=jgilbert
MozReview-Commit-ID: 3m78xXoObYY

--HG--
extra : rebase_source : d04f9d710d77583d2c0e144cba7cb2be53e6fea4
2017-06-14 16:10:25 +08:00
Sebastian Hengst
768c6d1b63 merge mozilla-central to autoland. r=merge a=merge 2017-06-15 11:15:42 +02:00
Sebastian Hengst
20d16dadd3 merge mozilla-inbount to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 36YqbsnO3en
2017-06-15 11:11:30 +02:00
Andrew Osmond
27eaaaed2f Bug 1365927 - Part 4. Replace PCompositorBridge integration hooks with PCompositorManager. r=dvander 2017-06-14 11:39:59 -04:00
Andrew Osmond
a3d11c8688 Bug 1365927 - Part 1. Add missing headers and other build housekeeping. r=dvander 2017-06-14 11:39:59 -04:00
Mats Palmgren
185a60c094 Bug 1372327 - Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 5J6Ea73JX4f
2017-06-14 17:27:25 +02:00
Mats Palmgren
9fc0c76c2f Bug 1372356 part 2 - Use mWindowMap.LookupForAdd instead of Get+Put, and LookupRemoveIf instead of Get+Remove, to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 9L3GGGKDoJZ
2017-06-14 17:27:25 +02:00
Mats Palmgren
70e1ca483d Bug 1372356 - Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 4jKIhueYx13
2017-06-14 17:27:25 +02:00
Mats Palmgren
5f77c14065 Bug 1372349 - Use LookupForAdd instead of GetWeak+Put to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 37FVkb3vOO4
2017-06-14 17:27:25 +02:00
Mats Palmgren
b909321f2a Bug 1372342 - Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: LAxL0tVtrFF
2017-06-14 17:27:25 +02:00
Mats Palmgren
95d8ecc7bf Bug 1372323 - Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: GWsRF1vSLXx
2017-06-14 17:27:25 +02:00
Mats Palmgren
45166146e9 Bug 1372274 - Use LookupForAdd instead of Get+Put, and LookupRemoveIf instead of Get+Remove, to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: Fo23d82qpaP
2017-06-14 17:27:25 +02:00
Nicolas B. Pierron
3fc61ce76c Bug 1372207 - Schedule JSBC encoding to be executed at the next idle time after the onload event. r=smaug 2017-06-14 14:37:14 +00:00
Mats Palmgren
966b2d65f8 Bug 1372268 - Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 1WVLTschGsj
2017-06-14 16:11:22 +02:00
Mats Palmgren
6ee98bf801 Bug 1372265 - Use LookupForAdd instead of Get+Put, and LookupRemoveIf instead of Get+Remove, to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 2CRTN27ltZx
2017-06-14 16:11:21 +02:00
Mats Palmgren
893dffd030 Bug 1372262 - Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 5LmOqXRgo25
2017-06-14 16:11:21 +02:00
Mats Palmgren
2c6dbe5497 Bug 1372259 - Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 5wTxn8HESyn
2017-06-14 16:11:21 +02:00
Mats Palmgren
287ff411c2 Bug 1372050 - Use LookupForAdd instead of Get+Put to avoid an unnecessary hashtable lookup. r=froydnj
MozReview-Commit-ID: FpPkNEuP5FR
2017-06-14 16:11:21 +02:00
Mats Palmgren
7edf472a8d Bug 1372048 - Use LookupForAdd instead of Contains+Get/Put to avoid an unnecessary hashtable lookup. r=froydnj
MozReview-Commit-ID: Anh9DdOjNc1
2017-06-14 16:11:21 +02:00
Mats Palmgren
fb22ab5655 Bug 1372013 - Remove a redundant mFetchingModules.Get before Remove call, and replace Get+Put calls with a LookupRemoveIf call. r=froydnj
MozReview-Commit-ID: LDQkiin1hgf
2017-06-14 16:11:21 +02:00
Mats Palmgren
0b07470173 Bug 1372012 - Remove redundant hashtable Contains calls before Get. r=froydnj
MozReview-Commit-ID: 1RC4HY6Hya9
2017-06-14 16:11:21 +02:00
Mats Palmgren
36a3a728a9 Bug 1372011 - Use LookupForAdd instead of Contains+Put to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 57p6FeJnYAi
2017-06-14 16:11:21 +02:00
Nicolas B. Pierron
3a18a8a20c Bug 1372643 - Guard ScriptLoader::GetScriptGlobalObject with mDocument weak-ptr check. r=mrbkap 2017-06-14 13:58:32 +00:00
Andrea Marchesini
0b97e9af19 Bug 1372888 - FetchBody<Derived>::BeginConsumeBody should check the return value of nsEventTarget::Dispatch, r=bkelly 2017-06-14 15:53:04 +02:00
Andrea Marchesini
a0d570d039 Bug 1372887 - Fetch Response type should not change if the body is consumed twice, r=bkelly 2017-06-14 15:52:46 +02:00
Carsten "Tomcat" Book
4f44c026f2 Merge mozilla-central to mozilla-inbound 2017-06-14 14:50:11 +02:00
Carsten "Tomcat" Book
5e8c1546ec merge mozilla-inbound to mozilla-central a=merge 2017-06-14 14:45:26 +02:00
Brian Birtles
22d0b7d971 Bug 1371518 - Make KeyframeUtils::IsAnimatable consult the Servo backend; r=hiro
When styling with the Servo backend, we should also use the Servo backend to
determine if a property is animatable or not. However, if we do this,
Servo_Property_IsAnimatable will start returning true for the 'display' property
once we mark that as animatable in Servo (for SMIL).

Even if we later fail to actually animate 'display' (due checks added to Servo
in the next patch) we still need to treat 'display' as un-animatable in
KeyframeUtils so that we don't *read* the 'display' property of Keyframe objects
passed to the Animations API, since that is observable.

This patch makes us consult Servo_Property_IsAnimatable when using the Servo
backend and also explicitly treat the 'display' property as not animatable.

MozReview-Commit-ID: 1JllbeJisAS

--HG--
extra : rebase_source : d73b7d9ee0da03bfed68e574b67e10b342c1868d
2017-06-14 15:23:45 +09:00
Robert Longson
f055bf18d2 Bug 1369904 - Bounding box should not include control points. r=lsalzman 2017-06-14 06:34:01 +01:00
Sebastian Hengst
1b26da1b2f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-06-15 11:17:07 +02:00
Wes Kocher
1c6a87f4be Backed out 2 changesets (bug 1345365) for frequent failures in test_data.html a=backout
Backed out changeset 0ea7a5deacf6 (bug 1345365)
Backed out changeset bba1dee06769 (bug 1345365)

MozReview-Commit-ID: KURUgnesr8B
2017-06-15 00:52:04 -07:00
JerryShih
5309fc0478 Bug 1372490 - GetError() returns GL_CONTEXT_LOST not GL_CONTEXT_LOST_WEBGL. r=jgilbert
MozReview-Commit-ID: KYr0cKoeWJo
2017-06-15 14:43:53 +08:00
Andrew Sutherland
13e936cdab Bug 1345421 - Part 2: Ensure mOriginsHavingData is up-to-date via flushing. r=baku
The intermittent failure appears to have been due to mOriginsHavingData
only being updated when the db thread flushes.  The db thread has a
hard-coded 5 second flush interval.  It's likely that e10s startup was
previously so slow that we were assured of having a flush happen by the
time our fresh process created its parent actor.

We correct this by reliably ensuring a flush before spinning up the
process to check preload state.  We also ensure a flush at the start of
the test for our check that there was no preload in the initial cases.
We were actually more vulnerable in that case, I believe, but as a
browser chrome test, there were no other tests that would have used
content localStorage.

We additionally ensure that the content process has received and
populated mOriginsHavingData by having the tab opening process wait for
about:blank to load in the process before actually opening our origin.
Prior to this change we were depending on orderings that aren't
guaranteed.

--HG--
extra : rebase_source : 92d3c675cee82ffe8b562e83860601e0c6dc1a9b
2017-06-12 04:52:21 -04:00
Andrew Sutherland
c742aa9555 Bug 1345421 - Part 1: Clean up mechanism used to create fresh processes. r=baku
Bug 1345990 introduced a "forceNewProcess" argument in
BrowserTestUtils.openNewForegroundTab.  By switching to this we can
stop bloating the process count pref to try and produce equivalent
results.  To minimize test churn and because it doesn't really hurt to
double-check, the code that asserts that our tabs are each in different
processes and related book-keeping infrastructure have been left intact.

We also set a preference to disable preallocated processes in the interest
of maximizing test consistency and minimizing breakage.  It's conceivable
that a preallocated process might end up creating its StorageDBParent
actor prior to when we want, breaking things.  By ensuring the process
isn't created until we want it, we avoid a lot of brittleness.

--HG--
extra : rebase_source : 5736f7b2d06b720cefbe82eb6052e71b9fc14f23
2017-06-12 03:17:17 -04:00
Olli Pettay
0bb08227bb Bug 1372042 - Add telemetry about running collectors during idle time, r=mccr8 2017-06-14 23:41:22 +03:00
Eden Chuang
f9257bbf5b Bug 1345365 - Mochitest for PaymentRequest API canMakePayment() and abort(). r=baku
--HG--
extra : rebase_source : 854f2a94f2951f979c9bf5173c39c8fc1c11555c
2017-06-13 14:43:18 +08:00
Eden Chuang
5b3b71aae6 Bug 1345365 - PaymentRequest API canMakePayment(), abort() and show() implementation. r=baku
--HG--
extra : rebase_source : 1471c9b98cd919d411b22426c55bc3159d4d2f00
2017-06-14 15:59:00 +08:00
Jessica Jong
dcff4df9e6 Bug 1370858 - Fire change/input events after selecting a date/time from picker. r=smaug
Per spec [1], date/time inputs fall into this category:

"For input elements without a defined input activation behavior, but to which
 these events apply, and for which the user interface involves an explicit
 commit action but no intermediate manipulation, then any time the user commits
 a change to the element's value, the user agent must queue a task to first fire
 an event named input at the input element, with the bubbles attribute
 initialized to true, and then fire an event named change at the input element,
 with the bubbles attribute initialized to true."

So, we fire input/change events when:
- User selects a date/time from the picker
- User changes the value using up/down keys in a already complete date/time
  value
- User changes the value using the number keyboard in a already complete
  date/time value
- User clears the value (using reset button or using backspace)


MozReview-Commit-ID: E7Jc5qMKZj4

--HG--
extra : rebase_source : 01d4ddbf97d7cef626491946e008a88db4641258
2017-06-12 02:21:00 +02:00
Kris Maglione
7bb88fc9de Bug 1371246: Handle serializing Blobs in StructuredCloneHolder instances. r=billm
MozReview-Commit-ID: 2n15NCnLC48

--HG--
extra : rebase_source : b9769b5b79d6d9dd6277a783963d83a0e0ab88eb
extra : amend_source : ac9167122891a374b4fd7219feaa7d7afbf6f5f0
2017-06-12 14:42:49 -07:00
Matt Woodrow
1323cbe13d Bug 1359709 - Use the DOM-ordering parent frame when deciding if a frame combines its transform with ancestors. r=dbaron 2017-06-14 13:47:50 +12:00
Wes Kocher
09a205279b Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7AS5EEH6buZ
2017-06-13 18:36:04 -07:00
Wes Kocher
1af6d5cf57 Merge inbound to central, a=merge
UPGRADE_NSS_RELEASE
MozReview-Commit-ID: CBIFPwA5aNp

--HG--
extra : amend_source : 035a5be59d0046a643d0f836a95195e8c4ade4a6
2017-06-13 18:27:10 -07:00
Wes Kocher
ed15672d95 Backed out changeset a510c6ccaeb2 (bug 1372438) for various webgl test failures a=backout
MozReview-Commit-ID: FnMPcPkbtFX
2017-06-13 18:22:44 -07:00
Ben Kelly
4eb739057c Bug 1371664 P5 Fix browser_timeout_throttling_with_audio_playback.js not to expect clamping in background windows using audio. r=ehsan 2017-06-13 18:08:28 -07:00
Ben Kelly
a3c8156b38 Bug 1371664 P4 Remove old TimeoutManager code that adjusted Timeout::When() while in background. r=ehsan 2017-06-13 18:08:28 -07:00
Ben Kelly
2771b377cb Bug 1371664 P3 Pass a minimum delay to TimeoutExecutor::MaybeSchedule() based on TimeoutManager::IsBackground(). r=ehsan 2017-06-13 18:08:27 -07:00
Ben Kelly
d959a50dfa Bug 1371664 P2 Make nsGlobalWindow::SetIsBackground() call new TimeoutManager::UpdateBackgroundState(). r=ehsan 2017-06-13 18:08:27 -07:00
Ben Kelly
3ea8a7a387 Bug 1371664 P1 Add a minimum delay argument to TimeoutExecutor::MaybeSchedule(). r=ehsan 2017-06-13 18:08:27 -07:00
Wes Kocher
6c1a0ae549 Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout
Backed out changeset 67a27cf0ab80 (bug 1371699)
Backed out changeset 7e494fa90087 (bug 1371699)
Backed out changeset 30405ec37e1e (bug 1371699)
Backed out changeset 2d67624a01dc (bug 1371699)
Backed out changeset 503c9d22e6bb (bug 1371699)
Backed out changeset eedcb67a9fb6 (bug 1371699)

MozReview-Commit-ID: 4HydLjK7Ond
2017-06-13 17:50:11 -07:00
Samuel Vargas
f83d89fc9f Bug 1372438 - STENCIL_INDEX is not a WebGL constant - r=jgilbert,qdot 2017-06-13 17:25:35 -07:00
Mats Palmgren
f95a0e46ac Bug 1372014 - Remove a redundant hashtable Contains call. r=froydnj
MozReview-Commit-ID: 5xj0ZnH1lYI
2017-06-14 01:54:26 +02:00
Mats Palmgren
a9090b986a Bug 1372008 - Use mPreloadedPreconnects.LookupForAdd instead of Contains+Put to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 6TwXdVhYQYE
2017-06-14 01:54:26 +02:00
Mats Palmgren
fb94159369 Bug 1372007 - Replace calls to Contains+Put with LookupForAdd and Contains+Get+Put with LookupRemoveIf to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 5Y1rVCglpzu
2017-06-14 01:54:26 +02:00
Mats Palmgren
a74a8a2035 Bug 1371953 - Avoid unnecesary hashtable lookups by using RemoveEntry(EntryType*) rather than RemoveEntry(key) in a couple of places. r=gerald
MozReview-Commit-ID: 8Uu9QX4QhRi
2017-06-14 01:54:26 +02:00
Mats Palmgren
2ee1457c5b Bug 1371952 - Use LookupForAdd/LookupRemoveIf to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 5hprMT4Gc42
2017-06-14 01:54:26 +02:00
Olli Pettay
68da6780f3 bug 1367372, skip to be removed listeners when asking for listener info, r=xidorn 2017-06-14 02:40:35 +03:00
Mats Palmgren
1f35f4da22 Bug 1370674 part 2 - Optimize hashtable lookups on mRegistrationInfos, mInfos and mJobQueues. r=froydnj
Specifically,
* replace a few Get+Put with LookupForAdd
* remove an unnecessary Get before Remove, and
* replace an Get+Remove with LookupRemoveIf

MozReview-Commit-ID: HBeIK9CZC00
2017-06-14 01:03:39 +02:00
Mats Palmgren
10986b2016 Bug 1370674 part 1 - Use mUpdateTimers.LookupRemoveIf() to avoid a second hashtable lookup for Remove(). Use mUpdateTimers.GetOrInsert() to avoid a second hashtable lookup for Put(). r=froydnj
MozReview-Commit-ID: 1lp2s4NQfvR
2017-06-14 01:03:38 +02:00
Mats Palmgren
24a9e3129b Bug 1371095 - Avoid doing unnecessary hashtable lookups in ImageTracker::Add/Remove. r=froydnj
MozReview-Commit-ID: AUpTHGH3JQV
2017-06-14 01:03:38 +02:00
Wes Kocher
bcf1a1c32e Backed out 6 changesets (bug 1365927) for build failures in ipc_message_utils.h a=backout CLOSED TREE
Backed out changeset 11fc0da380a2 (bug 1365927)
Backed out changeset 9f1dee5a6c42 (bug 1365927)
Backed out changeset f4954c824f5c (bug 1365927)
Backed out changeset 144ac6cc76f8 (bug 1365927)
Backed out changeset 961e782cf7c7 (bug 1365927)
Backed out changeset 12a093fb86a4 (bug 1365927)

MozReview-Commit-ID: 6CDxqOJzMjE
2017-06-13 12:45:03 -07:00
Andrew Osmond
c17a8c1ea1 Bug 1365927 - Part 4. Replace PCompositorBridge integration hooks with PCompositorManager. r=dvander 2017-06-13 15:19:36 -04:00
Bill McCloskey
5066de8593 Bug 1366072 - MozPromise tests (r=jwwang)
MozReview-Commit-ID: 69OQb1f3UTd
2017-06-13 14:51:07 -07:00
Bill McCloskey
c85ab6308c Bug 1366072 - Change promises to take nsISerialEventTarget instead of AbstractThread (r=jwwang)
MozReview-Commit-ID: 4azUhSB6whu
2017-06-13 14:51:01 -07:00
Bill McCloskey
40acc9e3a0 Bug 1366072 - Make AbstractThread inherit from nsISerialEventTarget (r=jwwang)
MozReview-Commit-ID: 5L3gUEyGfyL
2017-06-13 14:50:58 -07:00
Joanmarie Diggs
c306e05c88 Bug 1343537 - Implement ARIA DPUB extension. r=surkov
--HG--
extra : rebase_source : 38af7ac790cb60d952b1dc2885f50fc9c15cdea6
2017-06-13 15:06:08 -04:00
Boris Zbarsky
5193353a61 Bug 1371699 part 4. Make nsIMultiplexInputStream not inherit from nsIInputStream. r=bkelly
This is a preexisting issue that makes nsMultiplexInputStream multiple-inherit
from nsIInputStream: once via nsIMultipartInputStream and once via
nsIAsyncInputStream.  This causes problems once we end up with more multiplex
streams that are async streams, because then some assingments to
nsCOMPtr<nsIInputStream> start asserting.  This patch just removes the footgun
by getting rid of the multiple inheritance.
2017-06-13 16:16:39 -04:00
Boris Zbarsky
3d884086c3 Bug 1371699 part 3. Make nsIStringInputStream not inherit from nsIInputStream anymore. r=bkelly
This will prevent ambiguous nsIInputStream inheritance once we also inherit from nsIAsyncInputStream.
2017-06-13 16:16:23 -04:00
Peter Van der Beken
3455c5b415 Bug 1252211 - Convert TreeContentView to WebIDL. r=bz.
--HG--
extra : rebase_source : 78b770df8863b8165639c4a7a0eaabd5463c1090
2017-06-08 21:04:02 +02:00
Gerald Squelart
9c6ad7eb88 Bug 1371882 - MediaCacheStream::Init forwards the known content length to the MediaCache factory - r=cpearce
This will give enough information (for now) for GetMediaCache to decide whether
to use the (one global shared) file-backed MediaCache, or a discrete memory-
backed MediaCache.
(Note that GetMediaCache doesn't use this length yet in this patch.)

MozReview-Commit-ID: 5B2E3sIsc4k

--HG--
extra : rebase_source : 940e782665bf2c3640bbe7389fca02ea7c1482cd
2017-06-08 15:59:43 +12:00
Gerald Squelart
023730a1ca Bug 1371882 - Make gMediaCache private inside MediaCache, to avoid misuse - r=cpearce
MozReview-Commit-ID: 6MyKmG7DNaG

--HG--
extra : rebase_source : 0e26d2e405166de8f0160a78faf4cf52fd68fa9e
2017-06-08 17:12:13 +12:00
Gerald Squelart
703d03eb67 Bug 1371882 - Delay MediaCache destruction if update queued - r=cpearce
MozReview-Commit-ID: LIjZFUIrTtX

--HG--
extra : rebase_source : a17ee8d9eb1c32c19e92b4a0ca71a037f32c8459
2017-06-08 16:45:21 +12:00
Gerald Squelart
420fc822c0 Bug 1371882 - Removed unnecessary gMediaCache-> from MediaCache member functions - r=cpearce
MozReview-Commit-ID: BKjH9hfoL5g

--HG--
extra : rebase_source : d83836ad127895197fba32cd69d282fe9b1c27df
2017-06-08 16:20:37 +12:00
Gerald Squelart
d63ca8dd12 Bug 1371882 - MediaCacheStream::mInitialized is redundant, mMediaCache is non-null after initialization - r=cpearce
MozReview-Commit-ID: 6VIPMLmzuEP

--HG--
extra : rebase_source : 80df4e3bda168660812d420e26c6117c7ccc4b88
2017-06-09 13:48:06 +12:00
Gerald Squelart
fc0f5efec9 Bug 1371882 - MediaCacheStream accesses its MediaCache through a member pointer - r=cpearce
MozReview-Commit-ID: CM1rXqAc4FT

--HG--
extra : rebase_source : a4eaadb9c4bd40034e16a811878cf7663b6a66ce
2017-06-08 17:30:40 +12:00
Gerald Squelart
54ab31eb36 Bug 1371882 - MediaCache::constructor/destructor/Init() don't need to be public - r=cpearce
MozReview-Commit-ID: 9naYvPbGn14

--HG--
extra : rebase_source : d1116e03d4bbef1c6bd1a6be676eb89605a78494
2017-06-09 12:53:11 +12:00
Gerald Squelart
901a3dbeea Bug 1371882 - static MediaCache::GetMediaCache to get file-backed MediaCache - r=cpearce
This is the new recommended way to create&initialize the file-backed
MediaCache.

In future patches, this will also allow the creation of memory-backed
MediaCache objects.

MozReview-Commit-ID: 6RUlNW2eBPP

--HG--
extra : rebase_source : 0b3e6fae71207076812b5cb9172d4497d3e68ea2
2017-06-08 15:09:40 +12:00
Gerald Squelart
2bfadd1441 Bug 1371882 - MediaCache::ResourceStreamIterator is given the MediaCache to work with - r=cpearce
MozReview-Commit-ID: 3Xl4WNESdnY

--HG--
extra : rebase_source : d69d52c68512041dd61c5782e3406aa66a487a28
2017-06-08 15:32:13 +12:00
Gerald Squelart
fca2c5bdbd Bug 1371882 - MediaCacheFlusher allows for multiple MediaCache's - r=cpearce
MediaCacheFlusher constructs itself when needed by the first MediaCache, and
destroys itself when the last MediaCache unregisters itself.

Some MediaCache member functions had to be made non-static, so they could be
called for each instance.

MozReview-Commit-ID: 5Dh9mEKbZHg

--HG--
extra : rebase_source : 1570e30787ba486f9436b4b05aa3cfa0329d1ee7
2017-06-08 14:32:13 +12:00
Cameron McCormack
ea96847844 Bug 1373155 - Disable Web Components in Servo-styled documents. r=wchen
MozReview-Commit-ID: 5IBBN2Gfazs

--HG--
extra : rebase_source : 832174c4b30627b77d247a762c0a525b3afb7885
2017-06-15 19:39:58 +08:00
Henri Sivonen
3822db8d6c Bug 1372994 addendum - Sanitize encoding names from old cache entries. r=emk
MozReview-Commit-ID: GcMlVEfaPnD

--HG--
extra : rebase_source : f67aff5985be1f2f472dccb400773abaffea40e0
2017-06-15 10:52:31 +03:00
Henri Sivonen
2f2bb984f8 Bug 1372994 - Clear up leftover ISO-8859-1 encoding names. r=emk
MozReview-Commit-ID: IBuUPa9H9Q2

--HG--
extra : rebase_source : fb8db0c70caeec179d50b9ecaeb811d1e87eb0dd
2017-06-15 10:35:22 +03:00
Boris Chiou
ebc59facdc Bug 1339690 - Part 8: Produce an appropriate warning highlighting the invalid property value. r=birtles,flod
MozReview-Commit-ID: 1KoFMxOo78L

--HG--
extra : rebase_source : b37e83358d8ff0c77172246d72ddb11fbcd7954c
2017-06-14 14:18:25 +08:00
Boris Chiou
ccd05b9231 Bug 1339690 - Part 7: Stop storing invalid property value. r=birtles
MozReview-Commit-ID: H3aRcJIk7CV

--HG--
extra : rebase_source : 774c1596364dd8e3eacf8a6bab093e9e1abf6e18
2017-06-14 11:43:47 +08:00
Boris Chiou
855f40d72b Bug 1339690 - Part 6: Move GetComputedKeyframeValues into local static. r=birtles
MozReview-Commit-ID: Ay3i9fDSbVg

--HG--
extra : rebase_source : 9d1de95cf15a0882fd50feb55878758c419d66ae
2017-06-14 12:51:27 +08:00
Boris Chiou
d3495b8861 Bug 1339690 - Part 5: Merge two DistributeRange functions. r=birtles
MozReview-Commit-ID: 3QT09Qmy3Lg

--HG--
extra : rebase_source : 5590d5df20af5c7e0cc63fef97e203cdda202967
2017-06-15 10:54:36 +08:00
Boris Chiou
02bf8062fe Bug 1339690 - Part 4: Rename ApplyDistributeSpacing to DistributeKeyframes. r=birtles
There is no spacing mode any more, so rename this function.

MozReview-Commit-ID: 9DIqKmQnuJo

--HG--
extra : rebase_source : 3600be87a699a1a5fe237f8ed75baf03f0b5ae84
2017-06-15 10:47:32 +08:00
Boris Chiou
f8dbd6bb32 Bug 1339690 - Part 3: Drop spacing mode. r=birtles,smaug
MozReview-Commit-ID: 1c7jpzWQjVP

--HG--
extra : rebase_source : 7850e290abb5fd87684c99710666c881eb777eb4
2017-06-13 15:09:19 +08:00
Boris Chiou
0946a7bd73 Bug 1339690 - Part 2: Drop tests of paced timing in dom/animation/test. r=birtles
MozReview-Commit-ID: BbfXB5MmMgE

--HG--
extra : rebase_source : 14677cb9edd9fdf706b79e3f6e2d0e7e1f0f6bdf
2017-06-13 13:30:58 +08:00
Xidorn Quan
589d06fb7f Bug 1372757 - Remove several dependencies to ServoBindings.h. r=heycam
MozReview-Commit-ID: Lruin1acS19

--HG--
extra : rebase_source : 7aeb83df3e1bf21a68d2f3e9048c5bfaa295ccdb
2017-06-14 09:38:16 +10:00
Wes Kocher
ebf35623cd Merge mozilla-central to autoland a=merge
UPGRADE_NSS_RELEASE
2017-06-13 18:57:32 -07:00
Daosheng Mu
a6cdb3aeb0 Bug 1368990 - Add reftest for verifying onVRPresentChange; r=kip
MozReview-Commit-ID: I8cce1eYQV8

--HG--
extra : rebase_source : ff04f5cefeb446f8730f570bdea804b341d1e947
2017-06-07 17:05:04 +08:00
Lee Salzman
29a9c9d166 Bug 1305085 - don't let SkScalerContext::computeMatrices generate zero scales. r=mchang
MozReview-Commit-ID: 4guj6XPWB47
2017-06-14 21:43:27 -04:00
Sebastian Hengst
adb899a58e Backed out changeset 5573f2f7d796 (bug 1343728) for failing various tests, e.g. mochitest test_animations_reverse.html. r=backout on a CLOSED TREE 2017-06-16 22:21:45 +02:00
Sebastian Hengst
7e1b1cf069 Backed out changeset 05a5f9d8249f (bug 1343728) 2017-06-16 22:20:37 +02:00
Sebastian Hengst
e8cca2e7cf Backed out changeset 956306ea34f3 (bug 1350633) 2017-06-16 22:20:32 +02:00
Gabor Krizsanits
98fc89bfe4 Bug 1364849 - Recycle short lived content processes. r=mrbkap
To prevent addons or other code to rapidly create and destroy content processes
under various conditions, we let the preallocated process manager to reuse short
lived content processes.
2017-05-30 13:46:41 +02:00
Marco Castelluccio
45757ddb64 Bug 1363469 - Mark RecvShareCodeCoverageMutex as 'override'. r=me
--HG--
extra : rebase_source : 1c9f4b6b9de720d1dc0adff4f54f6a26d9d5130c
2017-06-14 10:15:41 +01:00
Marco Castelluccio
42f83ca8dc Bug 1363469 - Define signal handlers to dump and reset coverage counters. r=froydnj,kanru
--HG--
extra : rebase_source : 8fa73f2bfd1eab95caee891d6d68090b58c3ba67
extra : histedit_source : 7b7c633ebecc71508e4c0a4d1161104a511869c5%2C61fefafbedb869fffddb8182d8bfac29108ee1bb
2017-06-14 09:50:44 +01:00
Jan de Mooij
bf6aed7a06 Bug 1370608 part 3 - Use JS_NewEnumerateStandardClasses outside js/src. r=bz 2017-06-14 10:39:11 +02:00
Jan de Mooij
83f290de99 Bug 1370608 part 1 - Move newEnumerate hook from ObjectOps to ClassOps. r=evilpie,bz 2017-06-14 10:37:44 +02:00
Tobias Schneider
e5f0ccbf64 Bug 1359317 - (intersection-observer) Use targetFrame->GetRectRelativeToSelf() as the initial intersection rect. r=mstange 2017-06-19 13:32:07 -07:00
Olli Pettay
8e6b3075e6 Bug 1374117 - nsTextEditorState::UpdateOverlayTextVisibility should use BoolVarCache, r=ehsan 2017-06-19 22:32:21 +03:00
Ehsan Akhgari
46b7fbd1ec Bug 1374030 - Optimize the loop in nsAttrAndChildArray::IndexOfAttr() a bit; r=bzbarsky 2017-06-19 14:31:03 -04:00
Joel Maher
e32c767aa3 Bug 1373346 - Intermittent dom/push/test/test_data.html - temporarily disable. r=gbrown
MozReview-Commit-ID: 8g7H9nYob6g
2017-06-19 14:03:15 -04:00
Jean-Yves Avenard
851b08981f Bug 1374210: Reject/Cancel any pending operations. r=gerald
MozReview-Commit-ID: GVlzm2GWT1D

--HG--
extra : rebase_source : a94491b69960a2679ae20433461ecb51e1821b15
2017-06-19 10:38:22 +02:00
Emilio Cobos Álvarez
f7a6c272b7 Bug 1370802: There's actually no need for lang to be lowercased. r=heycam
MozReview-Commit-ID: KwtbLqR9Y81

--HG--
extra : rebase_source : 644eadfb0d20e5ee5e1b26eab348903e8033b868
2017-06-17 02:27:59 +02:00