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

75029 Коммитов

Автор SHA1 Сообщение Дата
David Parks 24e1111be1 Bug 1459335 - Distinguish between unregistered and failed DLL function interceptions. r=aklotz
Each failed attempt to intercept functions in a DLL wastes valuable memory so we remember failures in order to avoid repeating them.
2018-05-23 16:36:45 -07:00
Cosmin Sabou f571cc5fe1 Backed out 10 changesets (bug 1457336, bug 1457286) for android mochitest failures on dom/base/test/test_find.html.
Backed out changeset 6b7bc00d68ae (bug 1457336)
Backed out changeset 585572d3a8e3 (bug 1457336)
Backed out changeset ded57fc8fd13 (bug 1457336)
Backed out changeset b7a0af3470b0 (bug 1457336)
Backed out changeset 3d17cdf86d69 (bug 1457336)
Backed out changeset 9df9a6524aad (bug 1457336)
Backed out changeset 727e25c0e3ad (bug 1457336)
Backed out changeset 91f27da56d68 (bug 1457336)
Backed out changeset 072fa168f471 (bug 1457336)
Backed out changeset 1f645546750f (bug 1457286)
2018-05-30 01:21:31 +03:00
Noemi Erli f353eab731 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-05-30 00:52:42 +03:00
Emilio Cobos Álvarez 4ede9b0c13 Bug 1457336: followup: Try to fix test_find.html on Android. r=me
Let's see if this manages to reopen the CLOSED TREE. It's either raciness on
load, or it's timing out, so I hope it's this, really.

MozReview-Commit-ID: KUbJvRcTlNF
2018-05-29 23:46:11 +02:00
Noemi Erli 846f00f83f Merge inbound to mozilla-central. a=merge 2018-05-30 00:41:41 +03:00
Andrea Marchesini 044ba75ddf Bug 1461426 - IPCBlobInputStreamParent should be sent as underlying stream to the content, r=smaug 2018-05-29 20:02:03 +02:00
Boris Zbarsky 3b8785a733 Bug 1460735 part 2. Remove nsIDOMDocument. r=qdot 2018-05-29 13:39:06 -04:00
Boris Zbarsky 16e02a5e28 Bug 1460735 part 1. Remove use of nsIDOMDocument in JS. r=qdot
There are some places where we have a thing which may not even be a node, and
we end up hardcoding the value of DOCUMENT_NODE there, because
"foo.nodeType == foo.DOCUMENT_NODE" will test true if foo is not a node: both
sides will be undefined.
2018-05-29 13:39:00 -04:00
Tom Ritter fa3809ad7d Bug 1462891 - Add Timer Rounding to Navigation APIs. r=baku 2018-05-24 15:44:46 -05:00
Emilio Cobos Álvarez 699a696c0f Bug 1457336: Skip only undisplayed nodes, not invisible nodes. r=mats
MozReview-Commit-ID: 5KgV1lqmim3
2018-05-29 21:39:12 +02:00
Emilio Cobos Álvarez eb51d5da24 Bug 1457336: Teach nsFind about display in general. r=mats
I ended up not using the nsIFrame methods both for consistency with the plain
text serializer and because of include hell due to nsStyleStructInlines /
nsIFrameInlines.

Find doesn't care about nodes with no frames anyway, so it didn't seem worth
doing the fallback if there's no style information.

I'll file a bug for IsHTMLBlock.

MozReview-Commit-ID: 3T317a4xCB
2018-05-29 21:39:08 +02:00
Andrea Marchesini 21437f85f8 Bug 1463614 - Fix intermittent failure in test_timer.html, r=me 2018-05-29 13:09:00 +02:00
shindli ee44448835 Merge inbound to mozilla-central. a=merge 2018-05-29 12:52:25 +03:00
Timothy Guan-tin Chien 5167a27119 Bug 1462703 - Additional setElementCreationCallback tests in XUL document r=smaug
These tests ensures the feature interacts well with our setup in XUL.
They work when bug 1460815 was implemented so they sits in its own changeset.

MozReview-Commit-ID: Ia08tAewZyN

--HG--
extra : rebase_source : b7ee577efc5cb5cc573cb07df2cfeeb0a9c88699
extra : source : c142c5c69a04c86f192526f8324a0278cbb721ba
2018-05-23 14:13:22 +08:00
Timothy Guan-tin Chien 9b93107cb5 Bug 1462703 - Upgrade the created element after callback runs r=smaug
nsContentUtils::NS_NewXULOrHTMLElement will call into
CustomElementRegisty::RegisterCallbackUpgradeElement, which keeps
the newly created element, allowing RunCustomElementCreationCallback
to upgrade them after the callback runs.

It is unclear if this changes the order of constructor executions,
but even so it should not affact our use case.

MozReview-Commit-ID: LWTn7B35aBv

--HG--
extra : rebase_source : 15382431f34dd887c14142ff47337e8d1eec74ef
extra : source : 47058a61951c2974514e41e316e5370cfa4f9d8b
2018-05-23 13:04:18 +08:00
Timothy Guan-tin Chien dc0ecec7d0 Bug 1462703 - Set returned CustomElementDefinition again after script runner is set r=smaug
This would help in the case where it is safe to run script in-place and
the CustomElementDefinition is available before the function exits.

This fixes the tests changed.

MozReview-Commit-ID: Ays91W94WZm

--HG--
extra : rebase_source : 6b0f1f90de9a6bfd7db577f1fb0e76564c3627e7
extra : source : 47c62a1e2f268e1be24c3fddfc006c3ad45ba4ac
2018-05-22 07:30:07 +08:00
Alexander Surkov ee836366fc Bug 1410482 - enable AOM for privileged content, r=smaug 2018-05-28 13:40:41 -04:00
Emilio Cobos Álvarez 3240b9b6d9 Bug 1462618: The restyle root machinery could work better. r=heycam
Consider the test-case where we have:

<div>
  <span id=a />
  <span id=b />
</div>

We try to set one bit on "a", and a different one on "b".

Ideally we'll end up with <div> as the root with both bits. But with the current
code we'd go all the way to the document unnecessarily. This fixes it by
checking the bits we've propagated up to the top instead of existingBits.

MozReview-Commit-ID: GfwjwCBpkuy
2018-05-28 10:45:49 +02:00
Kris Maglione e6d77f8270 Bug 1460610: Fix content process whitelist for profile extensions when none are present at startup. r=aswan
Also removes the stub workerbootstrap extensions, which previously allowed
this to work for Mochitest extensions.

MozReview-Commit-ID: LPlk8qIgJmr

--HG--
extra : rebase_source : 329f7fe11dde7a2713652591ac735b0d745070c8
extra : amend_source : 125481f030980c610217a9a1f6e51d592bda3c65
2018-05-19 17:23:01 -07:00
rahul0379 a90bc4ed77 Bug 1464433 - Cleaning up nsINode::GetElementById. r=emilio 2018-05-27 10:03:48 +02:00
Noemi Erli 3d7d0ef577 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-30 00:51:43 +03:00
Alex Gaynor 7905a9416b Bug 1465162 - don't crash in ContentParent::RecvDeallocateLayerTreeId if the content parent ID doesn't exist; r=jld
MozReview-Commit-ID: IyLyhVUsOow

--HG--
extra : rebase_source : 5537174ddbc12cc56a17f0b8eca44501fb35d83c
2018-05-29 13:56:12 -04:00
Jan-Ivar Bruaroey 4439872dc0 Bug 1462990 - Use async/await in mediasource mochitests r=bryce
MozReview-Commit-ID: AIr8CLyuGb7

--HG--
extra : rebase_source : 2136b7faccc24da6b163b0edf908a198136a7638
2018-05-21 16:40:13 -04:00
Jan-Ivar Bruaroey 5017b2c432 Bug 1462990 - Use async/await in mediasource/test/mediasource.js r=bryce,jya
MozReview-Commit-ID: BnQ30DnY4mB

--HG--
extra : rebase_source : fd89494f1f5946a9b8505456ab9761d3cc1914fa
2018-05-18 10:26:11 -04:00
Kris Maglione fc59c4280d Bug 1450688: Follow-up: Fix rebase bustage. r=bustage CLOSED TREE
MozReview-Commit-ID: Da7ZMvjVZFQ
2018-05-26 12:03:31 -07:00
Kris Maglione 1a52ecbef0 Bug 1450688 r=bz
MozReview-Commit-ID: 4KHNpxiziWd

--HG--
extra : rebase_source : a6f61c63b4a806bd099b63b3bcaa31e014163ad4
2018-05-15 16:01:36 -07:00
Jan de Mooij 7148cd7d35 Bug 1464036 - Remove PropertyInfo constructor to keep MSVC from generating static initializers. r=bz
--HG--
extra : rebase_source : c59d1878615029c7c8b075f4ec288daef77414c6
2018-05-26 14:14:10 +02:00
Peter Van der Beken bb7f2d8b30 Bug 1146316 - Leak fix, declare ServiceWorkerPrivate::mSandbox to the CC. r=bkelly.
--HG--
extra : rebase_source : e58052223ab9d79b4c21979bcf3e29caf8c2e32b
2018-05-15 21:36:12 +02:00
Peter Van der Beken 2de39f46d8 Bug 1146316 - Leak fix, set up CC in XPCShell too. r=smaug.
XPCShell allows interaction with object that are cycle collected, but we never run the
cycle collector in it. In XPCShell we don't call nsJSContext::EnsureStatics.
nsJSContext::EnsureStatics is responsible for setting DOMGCSliceCallback as a GC callback,
which we need for running the cycle collector.

--HG--
extra : rebase_source : 5f12c15dabf3b23d9e4b1d8d88920e476d2d4bd6
2018-05-08 17:07:33 +02:00
Margareta Eliza Balazs d11876a092 Backed out changeset 9e1a3230d085 (bug 1456265) for mda3 failures in dom/media/webaudio/test/test_channelSplitterNode.html on a CLOSED TREE 2018-05-29 19:32:26 +03:00
Paul Adenot 9f03d7a44c Bug 1456265 - Make ChannelSplitterNode have a channelCountMode of "explicit" and a channelIntepretation of "discrete" by default. r=achronop
MozReview-Commit-ID: 5pAdWn9zV9e

--HG--
extra : rebase_source : c001d5f5db0ff658027f18195ff5ff95abb314c9
2018-05-29 17:18:39 +02:00
Jean-Yves Avenard 34c40846b5 Bug 1457661 - P2. Ensure we call NotifyDataEnded for local resource once size is known. r=bryce
A call to NotifyDataEnded is required even if the size was known when the resource was created. This ensures that the readyState is properly updated and that playback can immediately as no more data can be added once first loaded.

MozReview-Commit-ID: FaJMBxJ9NkM

--HG--
extra : rebase_source : 448087a22635dac2aa31611c2b58a8e9c77121ec
2018-05-28 23:06:38 +02:00
Jean-Yves Avenard cb6ce94cf2 Bug 1457661 - P1. Add mochitest. r=bryce
MozReview-Commit-ID: 9YC8MaXRF42

--HG--
extra : rebase_source : 5bb2dc4c1f2dbb68d3713d536ecbe7f35eabb544
2018-05-28 22:39:10 +02:00
Jean-Yves Avenard 535b2be403 Bug 1454630 - P4. Only wait for CDMProxy if actually needed for the given decoder. r=bryce
If the particular track isn't encrypted, there's no need to wait for a CDMProxy.

MozReview-Commit-ID: DPbvbwsO58N

--HG--
extra : rebase_source : 0e7fea134404c861268dc8759cd7c0ebdf83dca4
2018-05-28 15:10:19 +02:00
Jean-Yves Avenard cc044be0ee Bug 1454630 - P3. Always recreate the PDMFactory when CDMProxy change. r=bryce
The code couldn't have worked and didn't do what the comment stated. When the CDMProxy changes, the current PDMFactory for encrypted content can no longer be used.

MozReview-Commit-ID: 7LpcQkK5gLL

--HG--
extra : rebase_source : e3926034069285be1559d0a1ea20d5f3c1561eb7
2018-05-28 14:46:35 +02:00
Jean-Yves Avenard 09c18364f7 Bug 1454630 - P2. Use new PDMFactory whenever encryption type change. r=bryce,cpearce
If the content being played was first non-encrypted, the PDMFactory would have been set without a CDMProxy. As such, it is necessary to use a new PDMFactory when the encryption type changes (from clear to encrypted).

Rather than attempting to detect if the encryption status has changed, simply use two PDMFactory, one with CDMProxy set and one without (for clear content)

Also, never attempt to recycle a decoder if the encryption type changed (used only on Android)

The TrackBuffersManager would have already handle the dispatching of the encrypted event when parsing the new init segment. As such, nothing more is necessary.

MozReview-Commit-ID: Jn14P2F6N5V

--HG--
extra : rebase_source : afe254fa8c4b835b15d9d48bb52d832f28196b7e
2018-05-27 18:42:25 +02:00
Jean-Yves Avenard b0af7c4063 Bug 1454630 - P1. Simplify retrieval of current TrackInfo. r=bryce
Adding some documentation to clarify on the difference between mInfo and mOriginalInfo

MozReview-Commit-ID: DWBsoi16QKf

--HG--
extra : rebase_source : 719c17b9ce61efdb633db108230f1bf78773ee51
2018-05-26 21:21:45 +02:00
Kartikaya Gupta 967750873c Bug 1464908 - Wait for MozAfterPaint on new windows before requesting fullscreen. r=xidorn
New windows cannot execute fullscreen requests until after the first
MozAfterPaint event has been fired on the window, because some of the
machinery in browser-fullScreenAndPointerLock.js isn't initialized until
that point. This test exercises that behaviour, and therefore should also
wait until the first MozAfterPaint before requesting fullscreen.

MozReview-Commit-ID: Igy7WfjslWA

--HG--
extra : rebase_source : 4b16293a107468bd53b8d1f54560b8acf326631f
2018-05-28 17:53:44 -04:00
Emilio Cobos Álvarez 2e15492a2d Bug 1464936: Avoid crashing with @import in Shadow DOM. r=smaug
Our behavior is correct, this uses the same setup that nsDocument and the
stylesets use, which I may look into fixing up / making more explicit in
bug 1465031.

MozReview-Commit-ID: 75AToXCw1pV

--HG--
extra : rebase_source : b7c11ca66b416c32b8fc0c5eedbc9383c63bad70
2018-05-29 12:04:34 +02:00
Peter Van der Beken 0a2e4b8cb7 Bug 1146316 - Remove nsWrapperCache::SetIsNotDOMBinding and IsDOMBinding(). r=bz.
--HG--
extra : rebase_source : cd36e7afb4f6ebcd042ea40d9403546a683375ad
2018-04-05 17:22:41 +02:00
Peter Van der Beken 188ac76110 Bug 1464474 - Some cleanup in nsFrameMessageManager. r=bz.
--HG--
extra : rebase_source : e081a086588e52dbe9363c8c622522adbff537e5
2018-05-17 16:42:13 +02:00
Boris Zbarsky b74339d763 Bug 1464478. Update the pass-CPOW-to-C++ test to not rely on nodes being passed as xpidl-declared interfaces. r=mrbkap 2018-05-26 00:23:07 -04:00
Boris Zbarsky 7d29e0bc6e Bug 1464519. Remove some dead code in nsXULPopupListener::HandleEvent. r=felipe
We've been bailing out if |target| is not nsIContent for a long time now, so
all the code handling it not being an nsIDOMNode is dead.
2018-05-26 00:23:04 -04:00
Dorel Luca 047df7a932 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-26 07:09:39 +03:00
Alex Gaynor 61a3697aef Bug 1464194 - don't crash in ContentParent::RecvAllocateLayerTreeId if the content parent ID doesn't exist; r=jimm
MozReview-Commit-ID: FQxcTj3phIV

--HG--
extra : rebase_source : 15d0547c8359efdf3786a86f441c0232615c181a
2018-05-24 15:30:32 -04:00
Kearwood Gilbert 653742943d Bug 1462695 - Prevent crashing when context lost during WebVR presentation,r=jgilbert
--HG--
extra : rebase_source : c32d602256391866c7cbfc447d9e6f127a48313e
2018-05-25 14:10:47 -07:00
Olli Pettay 2fa797d756 Bug 1356761, better AutoTArray capacity for ElementQueue, r=mrbkap
--HG--
extra : rebase_source : 508db91b2fa384dd7ea21990c88154e1869a13e9
2018-05-25 21:19:18 +03:00
Dorel Luca 847485b23e Backed out changeset f65b3816a198 (bug 1451973) for tps failure on multiple files. CLOSED TREE 2018-05-25 21:17:01 +03:00
Coroiu Cristina c032f38419 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-05-25 20:58:44 +03:00
Coroiu Cristina 19e81b8d28 Merge inbound to mozilla-central a=merge 2018-05-25 20:51:27 +03:00
Makoto Kato a10c2a1a82 Bug 1464061 - Return error immediately when plugin frame is destroyed. r=masayuki
--HG--
extra : amend_source : 16eac65e39fbebffabb71cc38cc39d46edb8315e
2018-05-25 10:20:00 -04:00
Vinothkumar Nagasayanan 26243dc0d3 Bug 1453396 - Tests splitted into two to fix intermittent test timed out. r=ckerschb
--HG--
rename : dom/base/test/test_bug704320.html => dom/base/test/test_bug704320-1.html
rename : dom/base/test/test_bug704320.html => dom/base/test/test_bug704320-2.html
2018-05-25 16:20:32 +03:00
Andrea Marchesini 9f5a134c05 Bug 1463767 - ReleasingTimerHolder should expose nsINamed::GetName only if MOZ_COLLECTING_RUNNABLE_TELEMETRY is defined, r=smaug 2018-05-25 14:46:44 +02:00
Gurzau Raul c406b410bc Backed out changeset 5bb547481faf (bug 1451973) for testChild failures on a CLOSED TREE 2018-05-25 14:16:34 +03:00
Shane Caraveo 0904a20056 Bug 1464481 - fix and test crash when getting registered channelwrapper, r=kmag
MozReview-Commit-ID: LEGojHEb742

--HG--
extra : rebase_source : 7018cfef6b7415ea275dc2c3e414586396a9e2be
2018-05-25 16:41:19 -04:00
Coroiu Cristina 0ad8e6325d Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-05-25 20:57:32 +03:00
Nazım Can Altınova d0f458dada Bug 1447973 - Convert DOMEvent markers to use tracing markers r=mstange
Changed DOMEventMarkerPayload to use tracing markers to be able to see unfinished
DOMEvents in the profiler. DOMEventMarkerPayload was containing both start and
end timestamps and we were adding it once DOMEvent finishes. Now, we are adding
two tracing markers. Once the event starts and once the event ends. That makes the
start of the event visible on the profiler.

MozReview-Commit-ID: Gak6dGsgMDt

--HG--
extra : rebase_source : 6d2c9930964503a4865b92d85a0437e33acf8dc7
2018-05-21 23:54:44 +02:00
Dorel Luca d54a3b06aa Backed out changeset da12c077747f (bug 1448040) for Android build bustage on build/src/obj-firefox/dist/include/mozilla/HangAnnotations.h. CLOSED TREE
--HG--
extra : amend_source : 683201b5a47af3cb7fdcb7426c65f1c9ed713186
2018-05-25 20:13:26 +03:00
Doug Thayer 9765bdd0e0 Bug 1448040 - Remove HangMonitor/ChromeHangs r=Nika
Fairly straightforward, just a blanket removal. Haven't heard
anything on dev-platform or fx-data-dev regarding this removal,
so I think it's likely safe to remove on Nightly, and we can
revert if anyone makes a fuss.

As part of removing the HangMonitor, I renamed a few things and
reorganized the namespaces to not depend on a HangMonitor
namespace. Hopefully this doesn't produce too much noise in the
diff, it just seemed appropriate to move everything around
rather than keep dangling vestiges of the old system.

MozReview-Commit-ID: 8C8NFnOP5GU

--HG--
extra : rebase_source : a8840bd26f4b01b756ffa72345ababb625048550
2018-04-29 18:21:20 -07:00
Shane Caraveo b7fc203a81 Bug 1322748 add ability to get registered channelwrappers, r=kmag
MozReview-Commit-ID: SphwWjzQuo

--HG--
extra : rebase_source : 0b5193d7f4e9e7f27f9a7d622699b673781c3dd4
2018-05-22 14:19:57 -04:00
Bogdan Tara 46d78314dd Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-25 13:04:18 +03:00
Bogdan Tara 597ad02dc7 Merge inbound to mozilla-central. a=merge
--HG--
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-ellipse-052-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-ellipse-052.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-032-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-032.html
2018-05-25 13:01:23 +03:00
Boris Zbarsky bf36928a04 Bug 1463889 part 3. Get rid of nsIDOMWindowCollection. r=qdot 2018-05-24 23:32:19 -04:00
Boris Zbarsky 7384dd10af Bug 1463889 part 2. Get rid of GetWindowList. r=qdot
GetFrames() works just as well, and is arguably better named, and it's silly to
have two APIs that do the same thing.
2018-05-24 23:32:19 -04:00
Boris Zbarsky ed3c958547 Bug 1463889 part 1. Switch nsPIDOMWindowOuter::GetFrames to returning an nsDOMWindowList. r=qdot 2018-05-24 23:32:19 -04:00
Jean-Yves Avenard 15d6ce1610 Bug 1450607 - P3. Remove unused argument. r=gerald
MozReview-Commit-ID: 6NU9BLJi6kl

--HG--
extra : rebase_source : a9fca396ca5c353be979196dde4b1b02137cc9ca
2018-05-24 17:38:02 +02:00
Jean-Yves Avenard f1f3bc2758 Bug 1450607 - P2. Synchronously seek to prepare for resuming following stop request. r=gerald
Bug 1415090 attempted to remove the need to access from the MediaResource members of MediaCacheStream from the main thread.
However, by doing so the logic flow for resuming the channel changed from a synchronous access to an asynchronous one.
This changed some assumptions and allowed the ChannelMediaResource to be used before the Seek call completed.

For now, re-add a cross thread access to the MediaCacheStream. A more elegant fix will be worked on in bug 1464045

MozReview-Commit-ID: 2xBTjDEqrkI

--HG--
extra : rebase_source : 0aa3cfcb8371d5147cbed746d9200dd22df4821b
2018-05-24 14:36:58 +02:00
Kartikaya Gupta c372c80afc Bug 1464181 - Enable mochitests on windows10-64-qr opt builds. r=jmaher
MozReview-Commit-ID: 5oerrEozVwd

--HG--
extra : rebase_source : ec1a900453d0d8682578004041fbb17e9ff322e9
2018-05-24 15:00:26 -04:00
Narcis Beleuzu 8bfcff6f8c Backed out 3 changesets (bug 1186265) for devtools chrome failures on browser_webconsole_visibility_messages.js. CLOSED TREE
Backed out changeset 4a9965aeeef3 (bug 1186265)
Backed out changeset 55bd80764231 (bug 1186265)
Backed out changeset 00fefd3eb634 (bug 1186265)
2018-05-25 05:36:52 +03:00
Jean-Yves Avenard 1d73f87b45 Bug 1450607 - P1. Fix constness. r=gerald
MozReview-Commit-ID: CeftB0qmzTf

--HG--
extra : rebase_source : 7d8a75754990fd6cab1ad8f620d5d5675c46ea88
2018-05-23 21:27:31 +02:00
Kristen Wright baaa671de8 Bug 1462138 - Part 2: Create a reporter for nsContentUtils string bundles. r=mccr8
Created new class 'nsContentUtilsReporter' which reports 'content-utils-string-bundles' allocations that are not a part of the reported StringBundleService bundles

--HG--
extra : rebase_source : f683ce214d634c9c6f169fafe5b5de12d3f3508a
2018-05-18 16:11:06 -07:00
Eliza Balazs e1fce902e9 Bug 1404234 - disable test_2_conformance__extensions__webgl-compressed-texture-size-limit.html on win7 for frequent failures. r=jmaher 2018-05-24 06:19:00 +03:00
Brindusan Cristian 830478fd5f Merge inbound to mozilla-central. a=merge 2018-05-25 03:04:03 +03:00
Jean-Yves Avenard 8c2fb70982 Bug 1461268 - P2. Bump benchmark version ID. r=bryce
This will force the benchmark to be re-run, following de-activation of the AMD VP9 decoder.

MozReview-Commit-ID: KwwoQNfSJ4t

--HG--
extra : rebase_source : 4edc750d448d6f023a645457edcbd138974c7d9a
2018-05-24 15:21:15 +02:00
Brendan Dahl 0bb125f382 Bug 1460639 - Apply persisted window settings before layout. r=smaug
Previously, with early first paint enabled, nsXULWindow incorrectly loaded the
persisted window settings from about:blank and would only load them once.
Instead, load the settings before starting layout.

MozReview-Commit-ID: 6K4ofkbmHHb

--HG--
extra : rebase_source : 7bcd804cfabbd47ee5a747800a2ef81852213889
2018-05-16 18:13:59 -07:00
Noemi Erli bf4def01bf Backed out 3 changesets (bug 1459785) for causing https://bugzilla.mozilla.org/show_bug.cgi?id=1464089 a=backout
Backed out changeset 88675b68241a (bug 1459785)
Backed out changeset b7c91a6f1b0a (bug 1459785)
Backed out changeset 21af8dc00aa8 (bug 1459785)
2018-05-24 18:46:25 +03:00
Brindusan Cristian 309ff0bd1f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-25 03:08:34 +03:00
Boris Zbarsky 8601802fff Bug 1186265 - Check the current interface's members. r=bz
MozReview-Commit-ID: Hfh0yyNBGE4

--HG--
extra : rebase_source : ed9544d4a8d02aaa69ecf5c364517bca584cf04f
2018-05-23 13:56:20 -07:00
Blake Kaplan 934317efc9 Bug 1186265 - Resurrect DOMQuad.bounds (deprecated) and count its uses. r=bz
I've made the returned object from .bounds not live. If that's not OK, I'll
resurrect DOMBounds (removed in a previous patch). This also forces
DOMQuad.toJSON() to only return the points.

MozReview-Commit-ID: 10TY5oJUmTN

--HG--
extra : rebase_source : ab209d584390c584aa0d0814b4dd2bbf48c6cca3
2018-05-23 16:56:22 -07:00
Margareta Eliza Balazs 03394c438d Merge inbound to mozilla-central. a=merge 2018-05-24 12:37:58 +03:00
Hiroyuki Ikezoe 0408cbb49e Bug 1463605 - Check continuation or IB split sibling frames in nsDOMWindowUtils::CheckAndClearPaintedState. r=mstange
MozReview-Commit-ID: CgyErEGeZJS

--HG--
extra : rebase_source : 1e179f64a39e0cab6b32074fa6ebf6c1884c8b32
2018-05-23 18:18:43 +09:00
Hiroyuki Ikezoe c14fa231c7 Bug 1463605 - Check continuation or IB split sibling frames in nsDOMWindowUtils::CheckAndClearDisplayListState. r=mattwoodrow
MozReview-Commit-ID: 6PjC5INFyym

--HG--
extra : rebase_source : 3b6b39e700cf51ea926b8441c832e50118398f41
2018-05-23 18:15:12 +09:00
Hiroyuki Ikezoe a28e0be181 Bug 1463605 - Call MarkNeedsDisplayItemRebuild() for IB split siblings too. r=mattwoodrow
MozReview-Commit-ID: 4vN69YLUbIy

--HG--
extra : rebase_source : dfb73c8d92395a18bbaeb1e68b60ea715e0ecbb4
2018-05-23 18:15:12 +09:00
Hiroyuki Ikezoe 452c7f0e9a Bug 1463605 - Set mMayHaveOpacityAnimation and mMayHaveTransformAnimation flag to continuation or IB split sibling frames too. r=birtles
Without this fix layout/reftests/css-animations/ib-split-sibling-opacity.html
would have failed if the next change in this patch series is applied.

MozReview-Commit-ID: CFNXePkXuOs

--HG--
extra : rebase_source : 48df6bf107e1a14dd2b2ae7c23d38d29581aabcb
2018-05-23 18:15:12 +09:00
Andreea Pavel 0dada2bb52 Merge inbound to mozilla-central. a=merge 2018-05-24 01:00:23 +03:00
Andrea Marchesini 5b45972dd9 Bug 1434553 - IPCBlobInputStreamParent reference must be increamented before calling any IPC method, r=me 2018-05-23 12:37:44 +02:00
Natalia Csoregi 1ff5ce3bb8 Bug 1461963 - Removed OSX 10.6 reference. r=gbrown 2018-05-17 15:26:00 +03:00
Raul Gurzau eee5dc6d69 Bug 1461960 - removed old references for OSX 10.6 and 10.8 r=jmaher 2018-05-22 18:06:00 +03:00
Andreea Pavel 4f7d00d030 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-05-24 01:08:00 +03:00
Olli Pettay ae2b960685 Bug 1459309 - currentScript should be null when evaluating scripts from shadow DOM, r=peterv
--HG--
extra : rebase_source : 53979237d9d94438966ef470cc9ff80d612ef4ee
2018-05-11 20:24:50 +03:00
Jon Coppeard a844ec84c4 Bug 1427610 - Implement import.meta in the browser r=bkelly 2018-05-23 09:30:13 +01:00
Andrea Marchesini 7dcc1b6880 Bug 1434553 - Implement nsIInputStreamLength and nsIAsyncInputStreamLength - part 9 - necko and docShell, r=mayhemer, r=smaug 2018-05-23 07:12:36 +02:00
Andrea Marchesini 1b19a3a663 Bug 1434553 - Implement nsIInputStreamLength and nsIAsyncInputStreamLength - part 3 - InputStreamLengthHelper, r=froydnj 2018-05-23 07:12:35 +02:00
Andrea Marchesini c866348d1e Bug 1434553 - Implement nsIInputStreamLength and nsIAsyncInputStreamLength - part 2 - IPCBlobInputStream exposes nsIInputStreamLength, r=smaug 2018-05-23 07:12:35 +02:00
Boris Zbarsky 98837ca245 Bug 1462789. Fix readystate assertions when document.open() is used on an image document. r=hsivonen
There are a few things going on here:

1)  Better tracking of whether we've done our synthetic document stuff so we
don't redo it when it's not needed.  We should only be doing it on initial
load.

2)  Better handling of our readystate transitions.  We're only responsible for
the transition to READYSTATE_INTERACTIVE if we're the ones setting up the DOM.
Otherwise whoever is doing that should do the readystate transition.

Both of these really use the same mechanism, which is why I ended up doing them
together.
2018-05-23 11:06:34 -04:00
Andrea Marchesini 7fd05a68da Bug 1461854 - dom/console/tests/test_timer.html must disable reduce-timer-precision, r=tjr 2018-05-23 16:06:31 +02:00
Xidorn Quan 2b53237243 Bug 1460295 - Don't dispatch mutation event for style attribute change from CSSOM. r=bz
MozReview-Commit-ID: JWDpyg7czXI

--HG--
extra : rebase_source : 1bf116ff3c016da126dae7ba89282cf31f16660a
2018-05-22 16:34:23 +10:00
Dorel Luca 8e1a0ee1c6 Backed out changeset c13ca75c9bcb (bug 1450658) for Browser-Chrome failures on browser/base/content/test/webrtc/browser_devices_get_user_media_screen.js 2018-05-23 17:07:33 +03:00
Jeff Gilbert b34b3dc1db Bug 1459785 - Update test markings.
MozReview-Commit-ID: Lf0NwRin6sT
2018-05-22 18:24:52 -07:00
Natalia Csoregi fc025a87cd Bug 1461962 - Removed OSX 10.6 references. r=jmaher 2018-05-22 13:39:00 +03:00
Kris Maglione 743f52074e Bug 1456485: Part 1 - Support unrestricted matching in MatchPattern. r=zombie
This is grafted from the first part of bug 1425104.

MozReview-Commit-ID: 4aW2w81LDTI

--HG--
extra : rebase_source : 898b926da42f7a2e332d8e01521dcd5adf381be1
extra : source : 12f8659f76fe5e23e42cb881eb7ed0b31de73864
2018-04-18 14:02:05 -07:00
Csoregi Natalia acd92af57e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-23 01:02:30 +03:00
Tom Schuster c25af90ac1 Bug 1453916 - Fix bustage. r=me on CLOSED TREE
--HG--
extra : rebase_source : 6c823c29c324ef297ff0f28bdde9b40d3a8d7a36
2018-05-22 20:46:01 +02:00
Tom Schuster 937d9326cd Bug 1453916 - Allow canvas extraction from webextension content-script even with resistFingerprinting turned on. r=kmag,bz
--HG--
extra : rebase_source : d67c589e8819407bb5acc4378d029288dd9295be
2018-05-14 20:49:32 +02:00
Andrea Marchesini 5cc80bc69f Bug 1453971 - ReleasingTimerHolder::Create should use a timer to avoid nsIAsyncShutdownBlocker (implemented in JS) to run during stable state, r=smaug 2018-05-22 17:50:25 +02:00
Narcis Beleuzu 3fae2ab3f2 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-22 14:24:39 +03:00
Narcis Beleuzu 7bfb685bb2 Merge inbound to mozilla-central. a=merge 2018-05-22 12:49:47 +03:00
Andrea Marchesini 0519d22370 Bug 1459279 - Console API: Implement console.countReset(), r=bgrins 2018-05-22 11:34:41 +02:00
Kris Maglione 8340513b0c Bug 1463287: Add QueryInterface helper macro for concrete class types. r=bz
Using concrete class types with static IIDs in QueryInterface methods is a
pretty common pattern which isn't supported by any existing helper macros.
That's lead to separate ad-hoc implementations, with varying degrees of
dodginess, being scattered around the tree.

This patch adds a helper macro with a canonical (and safe) implementation, and
updates existing ad-hoc users to use it.

MozReview-Commit-ID: HaTGF7MN5Cv

--HG--
extra : rebase_source : ace930129d85960d22bc3048ca3bb19bbbd4a63e
extra : histedit_source : 03a87f746d957789d41381e4e1bfcc4fd7eebaf2%2C9c5bae9feeeef7721105db67be0f83e0ded66bb7
2018-05-21 16:33:18 -07:00
Kris Maglione 8134b33e89 Bug 1462964: Remove obsolete nsIDOMBlob interface. r=bz
MozReview-Commit-ID: 2HIlaSrvfBe

--HG--
extra : rebase_source : 944a6244dbfe1f0a37dd34a041d1329624a86f93
extra : histedit_source : d7859be664fed00f8504e40969480d3af3d674e7%2C4456b502db338bd06823654306e47c2583101396
2018-05-21 17:32:44 -07:00
Kris Maglione 6b12d08f7d Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5

--HG--
extra : rebase_source : 1c518883d082884db7f9323a5acc20361228c26b
extra : histedit_source : 70a73c23d1199d3bfbb5379c78930401166c094b
2018-05-19 20:17:45 -07:00
David Parks 1bfa456486 Bug 1366256 - Part 4: Add plugin DLL to plugin sandbox exceptions list. r=bobowen
This permits opening the DLL from the plugin sandbox under the USER_LIMITED sandbox setting (plugin sandbox level 3).

--HG--
extra : rebase_source : cf3719f7b418b3fcbb5244d06203836fd32e3900
extra : histedit_source : 9bacced088b9965cee10c871f3934980e0361dcc
2018-05-03 16:40:19 -07:00
Peter Van der Beken 3659b3ea86 Bug 1451973 - Split off process from non-process message managers. r=bz.
Process and non-process managers have different script loader interfaces
(ProcessScriptLoader/GlobalProcessScriptLoader vs FrameScriptLoader). The WebIDL
conversion used the same interface for some process and
non-process managers, but because of the different script loader interfaces they really
should be using separate interfaces.

--HG--
rename : dom/base/ChromeMessageBroadcaster.cpp => dom/base/MessageBroadcaster.cpp
rename : dom/base/ChromeMessageBroadcaster.h => dom/base/MessageBroadcaster.h
rename : dom/base/ChromeMessageBroadcaster.cpp => dom/base/ParentProcessMessageManager.cpp
rename : dom/base/ChromeMessageBroadcaster.h => dom/base/ParentProcessMessageManager.h
rename : dom/base/ChromeMessageSender.cpp => dom/base/ProcessMessageManager.cpp
rename : dom/base/ChromeMessageSender.h => dom/base/ProcessMessageManager.h
extra : rebase_source : 6694ae975bc2af1b496db6b8cef645ec62582d9a
2018-04-16 15:18:48 +02:00
rahul0379 a074d3d299 Bug 1458580 - Rename GetSMILStyleOverride since it can't return null. r=emilio
MozReview-Commit-ID: JzV5hQBvlpJ
2018-05-25 12:12:37 +02:00
Emilio Cobos Álvarez ac48d4a2a8 Bug 1462272: Remove handling for an impossible condition. r=asuth
The frame is notified via its mListener, which is an observer of the
nsImageLoadingContent (mContent).

This last one only notifies for the current and pending requests, otherwise it's
a bug we need to fix there, not wallpaper here, since that'd mean that we forgot
to cancel the previous request. Added assertions to that effect.

Notify() is only called with the this object as a first argument from
imgRequestProxy, so it'd better be non-null, too.

MozReview-Commit-ID: DHaOLph2EAo
2018-05-25 12:09:23 +02:00
Emilio Cobos Álvarez f981370133 Bug 1462272: Introduce nsImageFrame::GetCurrentRequest. r=dholbert
MozReview-Commit-ID: IXXtYClyY2z
2018-05-25 12:09:42 +02:00
Emilio Cobos Álvarez f09824aad6 Bug 1149357: Properly update responsive images for density changes. r=dholbert
Before that we were not notifying the image frame in any way if we ended up not
doing a load, and we were instead relying on the reflow the viewport resize
caused to get the new density in ComputeSize from the content node (but nowhere
else, since that's the bug part 1 fixes).

This was generally unsound, since you can stash random media in a sizes=
attribute, which don't necessarily needs to cause a reflow.

Now we need to notify necessarily because nsImageFrame stores the adjusted
intrinsic size.

mCurrentDensity could also get out of sync as well, when the selected image
density changed, but we ended up returning early because our source hadn't
change in the first early exit.

This patch moves us to a model where we don't re-trigger loads for density
changes if the source doesn't change (unless we pass aAlwaysLoad when we need
to, per spec).

This matches our previous behavior (without the bugginess of not updating the
intrinsic size), and also Chromium, at least.

This changes behavior in one case, which is when we don't load the same source
node, but we have the same source URL, and the density does change. This could
happen with <picture> and two <source>s with same source and different media and
sizes. This makes our behavior consistent with the behavior we have when both
the source and the density doesn't change.

Blink and WebKit do trigger a second image load both when the source changes
without changing density and when density changes. I'll file a spec issue, since
per:

  https://html.spec.whatwg.org/#reacting-to-environment-changes

We should be triggering the load when the density changes but the source
doesn't as well, but no UA does that.

I filed https://github.com/whatwg/html/issues/3709 with a little summary of the
situation and what I think the behavior should be (which is what this patch
implements). That being said, I'll update the impl if the spec people think
otherwise :).

MozReview-Commit-ID: Eqy16ygHRLo
2018-05-25 12:09:30 +02:00
Emilio Cobos Álvarez 5d4df42dc7 Bug 1149357: Make nsImageFrame::mIntrinsicSize account for density. r=dholbert
Only doing it in ComputeSize (via GetNaturalSize) is unsound, and the rest of
the users of mIntrinsicSize definitely do need scaling accounted for.

Move the adjustment to nsImageFrame for two reasons:

 * Prevents adding more dependencies from nsIImageLoadingContent, which
   otherwise would need to go away anyway in bug 215083.

 * Avoids having to duplicate the image orientation logic, since mImage is
   already an OrientedImage if needed.

MozReview-Commit-ID: EA0n0TctZhN
2018-05-25 12:09:23 +02:00
Peter Van der Beken 1c4d1cd486 Bug 1451973 - Split off process from non-process message managers. r=bz.
Process and non-process managers have different script loader interfaces
(ProcessScriptLoader/GlobalProcessScriptLoader vs FrameScriptLoader). The WebIDL
conversion used the same interface for some process and
non-process managers, but because of the different script loader interfaces they really
should be using separate interfaces.

--HG--
rename : dom/base/ChromeMessageBroadcaster.cpp => dom/base/MessageBroadcaster.cpp
rename : dom/base/ChromeMessageBroadcaster.h => dom/base/MessageBroadcaster.h
rename : dom/base/ChromeMessageBroadcaster.cpp => dom/base/ParentProcessMessageManager.cpp
rename : dom/base/ChromeMessageBroadcaster.h => dom/base/ParentProcessMessageManager.h
rename : dom/base/ChromeMessageSender.cpp => dom/base/ProcessMessageManager.cpp
rename : dom/base/ChromeMessageSender.h => dom/base/ProcessMessageManager.h
extra : rebase_source : d19120fb59b413aecf4e78aee8dc845022cd84dd
2018-04-16 15:18:48 +02:00
Olli Pettay 87d2947a92 bug 1429572, touch.target retargeting in shadow DOM, r=masayuki
--HG--
extra : rebase_source : 75d837bfd7533322a10ae2f785c7efce1fe8ec68
2018-05-25 18:02:59 +03:00
Doug Thayer fc77954257 Bug 1176019 - Force a paint when switching to a loaded tab r=mconley
This is fairly straightforward, other than the fact that the
nomenclature gets a bit awkward with the aForce parameter on
the ForcePaint methods. I'm not sure which direction to go with
this - "aForce" seems a fairly intuitive name for what we want,
and I'm kind of inclined to say the existing ForcePaint mechanic
should be renamed to something like PaintWithInterrupt, or
PaintWithPriority.

MozReview-Commit-ID: Bj9DROug1pC

--HG--
extra : rebase_source : a3d91fec940d83325d36bafb13fe892e9c9530e8
2018-05-14 23:45:00 -07:00
Doug Thayer 02388061cd Bug 1176019 - Fix browser_tabswitchbetweenplugins.js r=mconley
After digging into this, I'm still not entirely sure why the timing
has changed such that the checks don't work immediately. I have a
strong suspicion though that it's simply because our tab switch is
now instant, resulting in the necessary messages just being a
little bit behind. Hopefully this is an acceptable bandaid.

MozReview-Commit-ID: H1wKW1UQBxp

--HG--
extra : rebase_source : 993c3e97852894ddd64561d039fbf0e71d607066
2018-05-08 15:26:15 -07:00
Doug Thayer 330201234e Bug 1176019 - Fix browser_bug1196539.js painting check r=mconley
MozReview-Commit-ID: HgzcSIdIh1h

--HG--
extra : rebase_source : f564e9b3bf94aed234906ff6364b64f3dbe8f9d2
2018-05-08 09:49:24 -07:00
shindli 4ff26c26f4 Merge inbound to mozilla-central. a=merge 2018-05-22 00:29:52 +03:00
Stephen A Pohl 447ec53dcd Bug 1461459: Enable bug 1348361 (async process launching) on nightly only. r=ted 2018-05-21 13:53:34 -04:00
Stephen A Pohl 5b81adc6a2 Backout f266f3f133a9 (bug 1446900, bug 1461459) for referencing incorrect bug number in commit message. r=backout DONTBUILD 2018-05-21 13:51:59 -04:00
Stephen A Pohl c466cf329f Bug 1446900: Enable bug 1348361 (async process launching) on nightly only. r=ted 2018-05-21 13:46:04 -04:00
Nicolas B. Pierron bdd58b3482 Bug 1461672 - Remove Telemetry probe added to tune the JSBC. r=francois,bkelly 2018-05-21 17:17:18 +00:00
Ben Kelly 8048d5574f Bug 1461181 Don't call ServiceWorkerManager::StartControllingClient() if there is no active worker. r=asuth 2018-05-21 09:13:47 -07:00
Andreea Pavel 4fe8928370 Bug 1456325 - disable browser_private_idb.js on OS X and Windows for frequently failing. r=jmaher 2018-05-21 06:44:00 +03:00
Andrea Marchesini 29bf534fe4 Bug 1463065 - "server" is not a valid PerformanceEntry type, r=valentin 2018-05-21 14:49:15 +02:00
Timothy Guan-tin Chien e84b173ee2 Bug 1462806 - Extract is value from nsXMLContentSink r=smaug
Nodes copied from DOMParser document fragment would need to be
created with the proper custom element data.

CustomElementRegistry::IsCustomElementEnabled() is changed to allow
it to run in the test document.

MozReview-Commit-ID: 4GACDR8FIc7

--HG--
extra : rebase_source : 39da41dd1ca56bf62043418c503c526e2895254f
2018-05-20 10:23:46 +08:00
Patrick McManus f18aa94399 Bug 1462357 - remove the channel and socket interface id r=bagder,baku
the id was a b2g feature only settable via chrome privd xhr and is no
longer active in the code base

MozReview-Commit-ID: 84GPNvhvjNb

--HG--
extra : rebase_source : ab5c2229b98e1407b8b74ef2ee00dcfea45e046a
2018-05-16 16:05:03 -04:00
Chris Pearce 720655a185 Bug 1461877 - Ensure we don't dispatch 'playing' when we're about to reject pending play promises. r=bryce
Currently we can end up dispatching a 'playing' event right before we reject
play() promises, and this confuses YouTube's controls, and it doesn't make
sense to dispatch a 'playing' event when we're not playing anyway.

This is because the logic to delay resolving the play() promise until after
we've reached loadedmetadata doesn't prevent the 'playing' event from being
dispatched. We shouldn't dispatch 'playing' until we resolve the play()
promise(s).

MozReview-Commit-ID: 5H4dcObfu4M

--HG--
extra : rebase_source : b4036a8fead95cd3070f9fc4d30e0feb23d1f64c
2018-05-16 17:27:01 +12:00
Chris Pearce d08cfaf67f Bug 1461877 - Test that we don't dispatch 'playing' event for blocked playbacks. r=bryce
MozReview-Commit-ID: KXfviOtqGZI

--HG--
extra : rebase_source : 3ce026dc6fd6e05ce5f75d9860dc567e846a0cbf
2018-05-18 11:41:28 +12:00
Emilio Cobos Álvarez da9f6c6d11 No bug - Remove code that does nothing. r=me
Scoped stylesheets are long gone, and this code just looks at stuff without
using it.

MozReview-Commit-ID: 9pVxND9i23v
2018-05-20 18:47:06 +02:00
Kris Maglione f8aeb3dbfc Bug 1462223: Remove unnecessary/unused bootstrap scope setup code. r=aswan
This also removes the workerbootstrap test extension, which is no longer used,
and contains the last references to the Worker and ChromeWorker bootstrap
globals.

MozReview-Commit-ID: 8YWReXMqX5W

--HG--
extra : rebase_source : b0aa59b2b5e6a08f4be803e828bd507f894e4a19
2018-05-19 14:03:50 -07:00
Margareta Eliza Balazs 0bb5e5ba36 Merge inbound to mozilla-central. a=merge 2018-05-19 12:39:28 +03:00
Andrea Marchesini 94d0c55042 Bug 1462880 - Set Performance Resource Timing buffer size to 250, r=bz
Spec issue: https://github.com/w3c/resource-timing/pull/155
2018-05-19 08:49:20 +02:00
Boris Zbarsky a02a40bdb5 Bug 1462737. Make AsElement() not compile when called on Element or some subclass. r=mccr8
It's just noise if we already have an Element.
2018-05-18 23:37:56 -04:00
Boris Zbarsky 6f273bf6d2 Bug 894215 part 2. Fix the document "disallow bfcaching" mechanism to work without asserting. r=smaug
There are two issues being fixed here.  First, if DisallowBFCaching is called
before CanSavePresentation, we should really return false from
CanSavePresentation.  Otherwise we'll end up doing a bunch of state-capturing
work for no reason.

Second, if DisallowBFCaching is called between CanSavePresentation and
nsDocumentViewer::Destroy, we need to actually tear down the viewer state.
What we do right now is avoid putting the viewer into the SHEntry, but still
not tear down its presshell and so forth, which leads to asserts in
~nsDocumentViewer when this case is hit.
2018-05-18 23:37:56 -04:00
Jim Mathies 5bb082d6a1 Bug 1460007 - Only call PluginInstanceChild's HookSetWindowLongPtr once. r=aklotz 2018-05-16 13:29:43 -05:00
Jim Mathies ba6f25a6f4 Bug 1460006 - Only call PluginInstanceChild's InitPopupMenuHook once. r=aklotz 2018-05-16 13:23:43 -05:00
Boris Zbarsky 395d320fce Bug 1461711 part 4. Stop unwrapping the custom element prototype when getting the lifecycle callbacsk. r=smaug
There is no reason to do that, apart from allowing Xrays to shoot themselves in the foot....
2018-05-18 16:18:19 -04:00
Boris Zbarsky 4fe32cc96b Bug 1461711 part 3. Fix potential leak of LifecycleCallbacks in CustomElementRegistry::Define. r=smaug 2018-05-18 16:18:19 -04:00
Boris Zbarsky d37ee8aa88 Bug 1461711 part 2. Remove some unnecessary Realm machinery in CustomElementRegistry::Define. r=smaug
1) The passed-in constructor is already same-compartment with the passed-in
   aCx, so there is no need to enter its Realm to work with it.

2) aCx is already in the compartment of constructorProtoUnwrapped when we do
   JS_WrapValue on rootedv, which is initialized to constructorProtoUnwrapped.
   That JS_WrapValue call is not needed.
2018-05-18 16:18:19 -04:00
Boris Zbarsky 9f24750878 Bug 1461711 part 1. Change CustomElementRegistry::Define to just take a JSContext from the caller instead of setting up an AutoJSAPI itself. r=smaug
This more closely matches what should happen with entry/incumbent globals in
the spec.
2018-05-18 16:18:19 -04:00
Boris Zbarsky 2b7be9c25a Bug 1462453. Remove the useless, and incorrect, CheckLifeCycleCallbacks function. r=smaug
This check is already done by the dictionary init method.  This function just
makes us do extra non-spec get operations.

For now this introduces more failures due to bug 1419323 and the spec issue at
<https://github.com/whatwg/html/issues/3580>.  The tests testing for that stuff
were passing due to exceptions getting thrown from CheckLifeCycleCallbacks.
2018-05-18 16:18:19 -04:00
Olli Pettay ae41728c3d Bug 1404864 - ensure HTMLInputElement.form works per spec in Shadow DOM, r=peterv
--HG--
extra : rebase_source : a9a597728ec3e5f2949de6769ce4ee490993a797
2018-05-18 20:02:14 +03:00
Eden Chuang 130e426839 Bug 1435157 - mochitest for AddressErrors in WebPayment. r=baku
--HG--
extra : rebase_source : e1a782bab18fede5fe12e91ff26f1dd3037ccee2
2018-05-18 14:40:34 +08:00
Eden Chuang 029423a6e2 Bug 1435157 - Support AddressErrors in WebPayment. r=baku.
1. Add AddressErrors in PaymentRequest.webidl.
    2. IPC for passing AddressErrors.
    3. Getters for AddressErrors in nsIPaymentDetails.

--HG--
extra : rebase_source : 64c57003d57e064b5284cc64447c0c0740f16121
2018-05-17 19:59:16 +08:00
Andrea Marchesini 5840b63b8a Bug 1462605 - PerformanceNavigationTiming.name must be the value of the address of the current document, r=valentin 2018-05-18 16:20:19 +02:00
Jim Chen c68f5f3de7 Bug 1458020 - 5. Return default sample rate / frames per buffer; r=esawin
We apparently fail to get these properties when running in an emulator,
so we should just return default values.

MozReview-Commit-ID: IZVYIG9INaq
2018-05-18 10:16:04 -04:00
Jim Chen 4053e24872 Bug 1458020 - 3. Set JavaVM when actually using video capture; r=jib
We currently set the Android JavaVM pointer in MediaEngineWebRTC.
However, because of that, we end up setting the pointer in the child
process, even though we really want to set the pointer in the parent
process because that's where the camera will be accessed.

This patch makes us set JavaVM inside VideoEngine itself, where we
actually access the camera in the parent process.

MozReview-Commit-ID: 3TeLiiK2vyh
2018-05-18 10:16:04 -04:00
Jan de Mooij f820ec7afa Bug 1461938 part 5 - Some atoms compartment/realm related changes. r=jonco 2018-05-18 15:18:23 +02:00
Dorel Luca 9769f2300a Merge mozilla-inbound to mozilla-central. a=merge 2018-05-18 12:56:07 +03:00
Boris Zbarsky 453d037a95 Bug 1424160 part 3. Set up @@toStringTag on our synthesized iterator interfaces. r=qdot 2018-05-17 23:45:45 -04:00
Boris Zbarsky fd520f957c Bug 1424160 part 2. Add infrastructure for defining @@toStringTag on Web IDL prototypes. r=qdot 2018-05-17 23:45:35 -04:00
Boris Zbarsky 1fb670215a Bug 1424160 part 1. Allow interfaces the have a different name for SpiderMonkey class name purposes. r=qdot
We want to have some class names with spaces in them, but everything assumes
that an interface identifier is in fact an identifier (e.g. uses it in C++
identifiers like namespace names).
2018-05-17 23:45:26 -04:00
Boris Zbarsky bbb35f3bbb Bug 1375829 part 5. Switch from using "jsonifier" syntax to the spec's "[Default] toJSON" syntax. r=qdot 2018-05-17 23:43:59 -04:00
Boris Zbarsky 5d1de86578 Bug 1375829 part 4. Enforce the spec restrictions on methods named toJSON(). r=qdot
There are two restrictions: such methods must take no arguments and must return a JSON type.
2018-05-17 23:43:55 -04:00
Boris Zbarsky aae7b887d6 Bug 1375829 part 3. Align our definition of "JSON type" with the spec. r=qdot
Compared to the spec, we had the following differences:

* Date was a JSON type in our implementation.  It doesn't even exist as a type
  in the spec.  It stops being a JSON type.
* Annotated types are not supported yet.  Nothing changes here.
* Typedef types were not JSON types in our implementation.  They become JSON
  types if the type it's a typedef for is one.
* Frozen arrays are not supported yet.  nothing changes here.
* Records were not JSON types in our implementation.  They become JSON types
  when the value type is a JSON type.
* Object was not a JSON type in our implementation.  It becomes a JSON type.
* Interface types were only JSON types in our implementation if they had a
  jsonifier.  We change to treating them as JSON types if there is a jsonifier
  anywhere on the inheritance chain.

In terms of observable behavior, the following properties now get included by
toJSON methods that didn't use to be included:

  PaymentResponse.details
  Performance.mozMemory

both because they're of type "object".
2018-05-17 23:39:52 -04:00
Boris Zbarsky 85cfd5fbdf Bug 1375829 part 2. The default binding toJSON should skip over attributes that are not exposed in the current global. r=qdot
Without this, we will start including mozMemory in performance.toJSON() even if
the pref for it is not set, once 'object' becomes a JSON type.

This changes behavior in the following observable ways:

1) We stop exposing PerformanceResourceTiming's .serverTiming in the JSON
serialization in insecure contexts.

2) We stop exposing PerformanceTiming's timeToNonBlankPaint and
timeToDOMContentFlushed in the JSON serialization unless the relevant
preferences are turned on.
2018-05-17 23:39:52 -04:00
Boris Zbarsky 0e86edbbdf Bug 1375829 part 1. Rename isSerializable() to isJSONType(). r=qdot
The spec calls these types "JSON types".
2018-05-17 23:39:52 -04:00
Ciure Andrei 26287d7c31 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-19 01:09:10 +03:00
Timothy Guan-tin Chien 08741f30ed Bug 1460962 - Support customized built-in element in XUL r=smaug
This patch enables us to specify a custom element type with |is| attribute
or property when creating a XUL element. Because non-dashed names are valid
custom element names in XUL (bug 1446247), other checks has to modified
accordingly.

The checks I am settling with are
1) Forbids the custom built-in element names to be a non-dashed name.
2) Forbids the custom built-in element to extend a dashed built-in element name.

This also ensures the custom built-in element types don't take on the same
name as the element name it extends.

MozReview-Commit-ID: GCQ9RnfvvrC

--HG--
extra : rebase_source : 2fa13742525d2107580d50872ff5b0fc42539498
extra : source : 2dc5513660d78a4de4801109140743ffc9297f71
2018-05-11 12:44:46 -07:00
Jonathan Kingston b437b76642 Bug 1462308 - Disable all Device Sensor events except orientation by default for stable. r=bkelly
MozReview-Commit-ID: 1PTWYpUP14

--HG--
extra : rebase_source : cb7754c824297cf7fa407056a833c0755c4450fb
2018-05-17 12:12:03 +01:00
Chris Pearce 68af64e32b Bug 1461540 - Ensure errorMessage is initialized on all code paths in WebAudioDecodeJob::OnFailure(). r=jya
Doesn't look like it's strictly necessary, but suppresses the warning.

MozReview-Commit-ID: EQBar71yNVg

--HG--
extra : rebase_source : 063639000fd47b32343d47a8ca428c134fdce43b
2018-05-15 13:12:13 +12:00
Bogdan Tara 3287e1104c Merge inbound to mozilla-central. a=merge 2018-05-18 01:04:08 +03:00
Tim Taubert 2b5e4e52b4 Bug 1462324 - Remove unused WebAuthnTransaction::mDirectAttestation r=jcj
Reviewers: jcj

Reviewed By: jcj

Bug #: 1462324

Differential Revision: https://phabricator.services.mozilla.com/D1301
2018-05-17 18:32:53 +02:00
Jan de Mooij 969bbf2190 Bug 1461938 part 1 - Store JS::Realm* instead of JSCompartment* in JSContext. r=luke
--HG--
extra : rebase_source : 7af7e5854bdbe0d750a13e0e8c70a71c2c5f88c3
2018-05-17 18:02:40 +02:00
Boris Zbarsky 6cecfe655d Bug 1377980 part 4. Remove nsIDOMRange. r=mccr8 2018-05-17 12:01:38 -04:00
Boris Zbarsky c4000f8b65 Bug 1377980 part 3. Remove nsIDOMRange use in JS. r=mccr8 2018-05-17 12:01:38 -04:00
Boris Zbarsky 2e09ba1f75 Bug 1377980 part 2. Remove most C++ use of nsIDOMRange. r=mccr8 2018-05-17 12:01:38 -04:00
Boris Zbarsky 40d2bf9d7f Bug 1377980 part 1. Remove use of nsIDOMRange in xpidl. r=mcc8 2018-05-17 12:01:37 -04:00
Bryce Van Dyk d74241d1f7 Bug 1461785 - Update dom/media/mediasource/test to abide eslint rules, add .eslintrc.js. r=jya,standard8
Add .eslintrc.js to configure globals from mediasource.js and to add extra
rules to encourage use of let and const over var.

Linting changes:
- Prefer const and let to var. This provides tighter scoping and avoids
  reassignment.
- Mozilla rules do not allow for shadowing of variables, so several tests have
  had promise lists renamed to avoid this.
- Numerous minor fixes to formatting including using double quotes, spacing,
  missing semicolons.
- Remove some unused variables.
- Arrays have spaces after opening braces and before closing braces, e.g.
  [ "foo" ], this is to be consistent with our clang-format rules.
- Fix naming of resourcePathSeen in test_MediaSource_memory_reporting.html.

MozReview-Commit-ID: 5q6oS7EWLTk

--HG--
extra : rebase_source : 9b67b294f338ca9205b52fded3af63e6c3ac9a5a
2018-05-14 10:08:59 -04:00
Adrian Wielgosik 333c8319c7 Bug 1447389 - Followup: Actually remove nsIDOMNodeList.idl. r=bz
MozReview-Commit-ID: 94ui1A028at
2018-04-26 20:50:31 +02:00
Cosmin Sabou 30476522a7 Merge mozilla-central to inbound. a=merge 2018-05-17 18:36:08 +03:00
Cosmin Sabou da499aac68 Merge inbound to mozilla-central. a=merge 2018-05-17 18:28:27 +03:00
Jan de Mooij 575aec161b Bug 1461677 - Rename compartment to realm in the memory reporting code. r=njn 2018-05-17 16:15:18 +02:00
Narcis Beleuzu 4353ec59e5 Backed out changeset 1ea614928f8b (bug 1459562) for build bustages on ContentParent.cpp. CLOSED TREE
--HG--
extra : amend_source : c0f6d788cc05d298e88ab9d55658e012325771f2
2018-05-17 15:15:04 +03:00
Andrea Marchesini 76570152bf Bug 1459562 - Transmit the permissions of the owning principal together with the blobURL when broadcasted to content processes, r=nika 2018-05-17 13:36:50 +02:00
Andrea Marchesini 187183debd Bug 1459562 - Transmit the permissions of the owning principal together with the blobURL when broadcasted to content processes, r=nika 2018-05-17 13:36:50 +02:00
Peter Van der Beken 0e48ffc2b4 Bug 1457301 - Crash in mozilla::ipc::ProcessLink::SendMessage | IPC_Message_Name=PBrowser::Msg_AsyncMessage. r=mccr8.
Add back code to block big messages in DispatchAsyncMessage that wasn't added to the
codepath used by the WebIDL bindings. Also remove the non-WebIDL version of
DispatchAsyncMessage, as it's now unused.

--HG--
extra : rebase_source : ec7e5663683c98de4275ce05d6ada2f175dcb355
2018-05-16 22:29:37 +02:00
Cosmin Sabou caba9f10be Merge mozilla-central to inbound. a=merge 2018-05-17 12:49:47 +03:00
Cosmin Sabou 0917b1478d Merge inbound to mozilla-central. a=merge 2018-05-17 12:46:31 +03:00
Cosmin Sabou fa04866034 Merge mozilla-central to autoland. a=merge 2018-05-17 12:48:14 +03:00
Jean-Yves Avenard 5c9362146d Bug 1457499 - P3. Query decoded frame size instead of calculating it. r=bryce
Under most cases, the frame decoded height is just the displayed height rounded to the next 16 row aligned value.
However, this doesn't appear to always be the case. So we query the WMF framework for the decoded frame size.
We continue to use the displayed sizes as found in the SPS to ensure proper display of non 1:1 aspect ratio.

Adding diagnostic assertion to find potential regressions, we will address those as they come.

MozReview-Commit-ID: L8VowEw6L9F

--HG--
extra : rebase_source : 49acd9fd36469ee0a4e1ed0fe5cd6f2211ba8117
2018-05-16 11:09:20 +02:00
Jean-Yves Avenard 9ad27a22c2 Bug 1457499 - P2. Fix compilation warning. r=bryce
TaskQueue::Dispatch returns a nsresult which must be checked.

MozReview-Commit-ID: 7Tl7O96rQNt

--HG--
extra : rebase_source : e898b776f765a5641a794a7242715728940075f6
2018-05-16 11:03:05 +02:00
Jean-Yves Avenard 4bbe4e2668 Bug 1457499 - P1. Remove unused variable. r=bryce
Prevent a compilation warning

MozReview-Commit-ID: HT1UzsFUNXj

--HG--
extra : rebase_source : c552745bad82ef3f6faf7fc29ad10682211fe6d2
2018-05-16 11:01:58 +02:00
Timothy Guan-tin Chien c01a7646b9 Bug 1460815 - Provide a chrome-only callback on CustomElementRegistry so script can define CE lazily r=smaug
This patch creates a chrome-only method
customElements.setElementCreationCallback() so that custom elements migrated
from XBL bindings doesn't have to be define()'d on document loading. With this
method, we will set callbacks and the platform will get back to us when it
encounters a matched custom element type -- and the callback will load the
relevant script.

It's important to note that the callback runs after construction of the first
element; it will be upgraded when it's being appended.

MozReview-Commit-ID: 80z72zwXRlf

--HG--
extra : rebase_source : 826188e56bb0b167d1e5bafb7d2a487a32bd9dfa
2018-05-11 11:23:31 -07:00
Cosmin Sabou b1f0577d88 Merge mozilla-central to autoland. a=merge 2018-05-17 18:29:40 +03:00
Ciure Andrei ddc5d8ff6d Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-05-17 01:10:17 +03:00
Ciure Andrei eab785689c Backed out 2 changesets (bug 1458043) for dom/presentation/tests/mochitest/test_presentation_1ua_connection_wentaway_inproc.html failures a=backout
Backed out changeset 0b5c103fcb70 (bug 1458043)
Backed out changeset 51cdd0595094 (bug 1458043)
2018-05-17 00:54:04 +03:00
shindli 55f2b0d77a Merge inbound to mozilla-central. a=merge 2018-05-16 21:31:38 +03:00
Jon Coppeard 65b2944794 Bug 1461751 - Simplify module resolve hook to be a function pointer r=luke r=baku 2018-05-16 11:59:09 +01:00
Xidorn Quan 5896b33074 Bug 1461933 - Remove ServoBindings.h from ComputedStyleInline.h. r=emilio
For doing this, ServoComputedData is split into separate files, so that
files don't need to include ServoBindings.h just for accessing style
structs from ComputedStyles.

MozReview-Commit-ID: DPAd7PUUCl9

--HG--
extra : rebase_source : 7d6f739b7fb58a46e1624ba62e717412057ea9c1
2018-05-16 15:35:59 +10:00
Margareta Eliza Balazs e5bdfc5b27 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-16 13:06:18 +03:00
Margareta Eliza Balazs d4b9e50875 Merge inbound to mozilla-central. a=merge 2018-05-16 13:00:51 +03:00
Markus Stange 633ac66e7f Bug 1461555 - Rename ProfileEntry to ProfilingStackFrame. r=njn
The term "entry" is already used for elements in the profile buffer.

MozReview-Commit-ID: 1aB22V6veQh

--HG--
extra : rebase_source : c664eb4d6bed6cb74ba8a1b67ea99bd8ca57bcf7
extra : source : 3264c0cc0027b240b55bd3aebf27263b1e1d1cc0
2018-05-15 01:14:03 -04:00