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

84334 Коммитов

Автор SHA1 Сообщение Дата
Mihai Alexandru Michis 68f8760568 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-06-05 12:56:49 +03:00
Mihai Alexandru Michis 153172de0c Merge inbound to mozilla-central. a=merge 2019-06-05 12:51:25 +03:00
Narcis Beleuzu 83a9f3a6b3 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-06-05 00:52:43 +03:00
Narcis Beleuzu 790ffc99ca Merge inbound to mozilla-central. a=merge 2019-06-05 00:43:34 +03:00
Dorel Luca bdd441ea2d Backed out changeset 350091c5dde1 (bug 1552571) for mda failures in /builds/worker/workspace/build/src/dom/media/MediaManager.cpp 2019-06-05 05:14:15 +03:00
Daniel Varga 3bc762bcf1 Backed out changeset d64cb52ebf88 (bug 1543812) for xpcshell failure at parser/xml/test/unit/test_sanitizer.js. On a CLOSED TREE 2019-06-05 03:50:16 +03:00
Chris Pearce 0ebe8e14ac Bug 1552145 - Change HLS seek to seek before seek target and drop frames until next keyframe. r=jya
The Java ExoPlayer that we use for HLS support on Android does an accurate
seek, that is, it seeks to the frame at the seek target. This may not be a
keyframe, which we can start decoding at. So change the HLS seek to seek 2
seconds behind the seek target, and drop all frames up to the next keyframe.
This means that after a seek the HLSDemuxer will output a keyframe, and
hopefully (but we can't guarantee of course) it will lie behind the actual seek
target.

We also need to purge the GeckoHlsVideoRenderer's queue of frames which it
is holding onto in order to determine their durations, otherwise after a seek,
we'll get output from this queue of frames. That is, after a seek we would still
get a few frames from the old playback position.

This seek case is particularly problematic as we aggressively shutdown decoders
when the media is paused, including right after the load reaches
loadedmetadata, and we need to seek in order to recover from going dormant.

Differential Revision: https://phabricator.services.mozilla.com/D33254

--HG--
extra : moz-landing-system : lando
2019-06-04 22:20:49 +00:00
Ehsan Akhgari 8349684af8 Bug 1556093 - Use the storage principal when constructing a PBackgroundLocalStorageCache actor; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D33557

--HG--
extra : moz-landing-system : lando
2019-06-04 17:02:21 +00:00
Jim Porter f665b313f3 Bug 1552017 - Expand the kinds of URLs that can cancel content JS when navigating; r=smaug
This patch makes several changes to the kinds of URLs where we can cancel
content JS when navigating between them:

 1) When navigating directly to a URL (e.g. by typing something into the
    location bar and hitting Enter), we allow canceling content JS if the URLs
    differ in any way *except* their ref ("#"). To help with this, we also
    attempt to fix up the URL (e.g. by prepending "http://" to it).

 2) When navigating through history, we allow canceling content JS if the
    `prePath` part of the URLs differ. Most notably, this allows canceling
    content JS when one of the URLs is an `about:` page (e.g. when hitting the
    Home button).

 3) We explicitly disallow cancelling content JS if the currently-running JS
    is trusted or if the page being navigated away from is anything but
    http(s): or file:.

 4) We also disallow cancelling content JS for windows that are still being
    created (e.g. when creating a new tab or window via `window.open`). For
    more background on this, see the comments about `mCreatingWindow` in
    dom/ipc/BrowserParent.h.

 5) We ensure that, when attempting to cancel JS, the tab ID of the
    currently-running script matches the original tab that requested the
    cancellation. This avoids a race condition in which a particular JSContext
    has already moved on to executing another tab's JS by the time we hit our
    interrupt callback.

Differential Revision: https://phabricator.services.mozilla.com/D31875

--HG--
extra : moz-landing-system : lando
2019-06-04 16:19:27 +00:00
Bogdan Tara ae2ef98e40 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-06-04 19:08:56 +03:00
Bogdan Tara 0152d321a5 Merge inbound to mozilla-central. a=merge 2019-06-04 19:05:52 +03:00
Jan Varga 4ccc2c149c Bug 1556730 - QM: Add IsShuttingDown checks to temporary storage initialization; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D33636
2019-06-04 15:44:11 +02:00
Bogdan Tara af987b940c Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-06-04 19:10:28 +03:00
Jan-Ivar Bruaroey 612f805223 Bug 1552571: Optimize GetUserMediaWindowListener's source listener iteration and ownership. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D31687

--HG--
extra : moz-landing-system : lando
2019-06-04 22:39:14 +00:00
Emilio Cobos Álvarez 1e7b303431 Bug 1539469 - Make all input elements display: inline-block, for compat with other UAs. r=mats
See https://github.com/whatwg/html/issues/4082 for the data and some comments
from Boris and David.

I didn't look into fixing the font-inflation reftests, see bug 1540176 for that.

Differential Revision: https://phabricator.services.mozilla.com/D25566

--HG--
extra : moz-landing-system : lando
2019-06-04 15:39:47 +00:00
Valentin Gosu 3eed61b8a1 Bug 1548306 - Do not allow the ^ character to appear in the hostname r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D32895

--HG--
extra : moz-landing-system : lando
2019-06-04 13:35:47 +00:00
Jan Varga fe813f031d Bug 1534431 - Part 2: Disallow LS requests with undefined client id; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D33595
2019-06-03 15:32:59 +02:00
Jan Varga e84d1ebb62 Bug 1534431 - Part 1: Verify LS request parameters as part of LS request state machine; r=asuth
LS Request parameters are now verified as part of the state machine so an actor
is always created. Before this patch, we were doing verification prior to actor
creation. If the verification failed, we didn't create an actor and content
was endlessly waiting for a reply.
2019-06-03 15:32:50 +02:00
Valentin Gosu 7d213246fb Bug 1555302 - Ensure that nsStandardURL::Resolve() doesn't parse URLs with a different scheme as relative r=mayhemer
Normally, this method will return the entire in string if it has a scheme.
However, mParser->ParseURL may fail, leading to the scheme to be cleared,
and the result will be the same HTTP URL with the input appended to the
path. This triggers the assertion in NS_NewURI that the scheme should not
change.

As a fix, we bail out of nsStandardURL::Resolve() if the parsed scheme of
the input is different than the base URIs current scheme. This condition
is necessary, because we still need to support a deprecated form of relative
URLs like http:file or http:/path/file

Differential Revision: https://phabricator.services.mozilla.com/D33003

--HG--
extra : moz-landing-system : lando
2019-06-04 13:42:37 +00:00
Boris Zbarsky 34522cf0c8 Bug 1555085. Don't assume that objects whose DOMObjectType is eInterface have a DOMIfaceAndProtoJSClass JSClass. r=peterv
Named constructors are eInterface but are plain Function objects, without a
DOMIfaceAndProtoJSClass class.

Differential Revision: https://phabricator.services.mozilla.com/D32941

--HG--
extra : moz-landing-system : lando
2019-06-04 09:49:24 +00:00
Andreea Pavel d9bbc00de6 Bug 1527055 - disabled test_bug574663.html on win not debug r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D33441

--HG--
extra : moz-landing-system : lando
2019-06-04 12:49:19 +00:00
Edgar Chen 1ea67058f6 Bug 1525554 - Enable promise rejection event and update tests result; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D31734

--HG--
extra : moz-landing-system : lando
2019-06-04 12:55:57 +00:00
Dale Harvey 6066384ce3 Bug 1543812 - Add ability to block all autoplay. r=johannh,alwu,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D30135

--HG--
extra : moz-landing-system : lando
2019-06-04 17:33:06 +00:00
Narcis Beleuzu 3c50127358 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-06-05 00:51:07 +03:00
Nihanth Subramanya 203396c6e0 Bug 1555562 - Make sure LocalStorageManager::PrecacheStorage() passes in the real storage principal. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33559

--HG--
extra : moz-landing-system : lando
2019-06-04 21:13:40 +00:00
Ehsan Akhgari b79f2aaa94 Bug 1556859 - Remove SessionStorage::Clone(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D33703

--HG--
extra : moz-landing-system : lando
2019-06-04 21:09:03 +00:00
Ehsan Akhgari 09c5ba934d Bug 1555980 - Move HTMLDocument colour properties to Document; r=farre
Differential Revision: https://phabricator.services.mozilla.com/D33286

--HG--
extra : moz-landing-system : lando
2019-06-04 07:30:59 +00:00
Jan Varga 67c1136dd9 Bug 1556217 - LSNG: Add a test for large items; r=asuth, smaug
Differential Revision: https://phabricator.services.mozilla.com/D33417
2019-06-02 08:00:25 +02:00
Andreas Pehrson f7fd39e39f Bug 1537986 - Remove dom:: prefixes in MediaManager. r=jib
Depends on D32965

Differential Revision: https://phabricator.services.mozilla.com/D33260

--HG--
extra : moz-landing-system : lando
2019-05-31 22:04:13 +00:00
Andreas Pehrson 19b125b016 Bug 1537986 - Add facingMode to MediaEngineRemoteVideoSource's settings. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D32965

--HG--
extra : moz-landing-system : lando
2019-06-03 10:40:02 +00:00
Andreas Pehrson d80077c20a Bug 1537986 - Add deviceId and groupId to all camera and microphone settings. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D32964

--HG--
extra : moz-landing-system : lando
2019-06-04 12:07:31 +00:00
Andreas Pehrson 612199b2c5 Bug 1537986 - Implement GetSettings for the tab source. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D32963

--HG--
extra : moz-landing-system : lando
2019-05-31 10:55:31 +00:00
Andreas Pehrson fccffd3cd8 Bug 1537986 - Implement GetSettings for audio capture. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D32962

--HG--
extra : moz-landing-system : lando
2019-05-31 14:47:47 +00:00
Andreas Pehrson c6cab7dc2e Bug 1537986 - Implement GetSettings for fake devices. r=jib
This will help our WPT stats.

Differential Revision: https://phabricator.services.mozilla.com/D32961

--HG--
extra : moz-landing-system : lando
2019-05-31 10:55:10 +00:00
Andreas Pehrson 4b297e5e1e Bug 1537986 - Make MediaSourceEngine::GetSettings mandatory. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D32960

--HG--
extra : moz-landing-system : lando
2019-05-31 10:54:56 +00:00
Masayuki Nakano d9e3ea7e57 Bug 1426709 - Make HTMLEditor update selection ancestor limit synchronously when editing host is changed to ancestor element r=smaug
`HTMLEditor` initializes selection ancestor limit when it receives `focus`
event.  If `Document.execCommand()` is called immediately after an
ancestor of active editing host becomes new editing host,
`HTMLEditor::GetActiveEditingHost()` returns the new one, but selection
ancestor limit is still the previous one.  This mismatch causes a lot of
bugs.  Therefore, this patch makes `nsGenericHTMLElement` notifies `HTMLEditor`
of an element becoming `contenteditable`, and makes `HTMLEditor` update
selection ancestor limit only when the new editing host is ancestor of
old selection ancestor limit.

Differential Revision: https://phabricator.services.mozilla.com/D32823

--HG--
extra : moz-landing-system : lando
2019-06-04 08:42:43 +00:00
Gurzau Raul 940758881d Backed out 2 changesets (bug 1484720) for assertion failures at RemoteDecoderManagerParent.cpp
Backed out changeset bc4c88c01a02 (bug 1484720)
Backed out changeset e1fee5983139 (bug 1484720)
2019-06-04 13:58:15 +03:00
Andrea Marchesini 176b3f8e39 Bug 1556419 - cookie path should not contain the last '/', r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33500

--HG--
extra : moz-landing-system : lando
2019-06-04 02:42:57 +00:00
Andrea Marchesini f4c9f068fa Bug 1554847 - Improve cross-origin checks in canvas API - consider intermediate redirects, r=jya
Differential Revision: https://phabricator.services.mozilla.com/D32792

--HG--
extra : moz-landing-system : lando
2019-06-04 06:32:37 +00:00
James Teh 5fd61516b3 Bug 1554831: For out-of-process iframe documents on Windows, send the a11y emulated window (if any) to the content process. r=eeejay
If window emulation is enabled, an out-of-process iframe document should use the same emulated window as its embedder.
Previously, we were setting this on DocAccessibleParent, but we weren't sending it to content to make it available on DocAccessibleChild.
This meant that accessibles in out-of-process iframe documents were reporting the wrong window handle.

Differential Revision: https://phabricator.services.mozilla.com/D32788

--HG--
extra : moz-landing-system : lando
2019-05-29 04:37:28 +00:00
Chris Peterson f75ea41c95 Bug 1484720 - Part 2: Remove always-false isSlowPlatform() test function. r=jya
isSlowPlatform() is always false because we no longer support Android 2.3 or B2G.

Also remove unused functions isWindows32() and isAndroid(). They were added in bug 1485875, but the callers were later removed in Windows bug 1475564 and Android bug 1368843.

Depends on D33423

Differential Revision: https://phabricator.services.mozilla.com/D33424

--HG--
extra : moz-landing-system : lando
2019-06-04 05:35:53 +00:00
Chris Peterson cdff856b72 Bug 1484720 - Part 1: Enable AV1-in-MP4 test on Win32. r=jya
AV1-in-MP4 support was disabled on Win32 in bug 1417050 and re-enabled in bug 1475564. This Win32 check should have been removed at that time to re-enable this AV1-in-MP4 test on Win32.

Differential Revision: https://phabricator.services.mozilla.com/D33423

--HG--
extra : moz-landing-system : lando
2019-06-04 05:35:15 +00:00
violet 03d196478e Bug 1556147 - SVGImageElement::BuildPath should never be called r=longsonr
SVGImageElement isn't really a SVGGeometryElement, we did that just for
better code sharing. BuildPath() won't be called for <image>.

Differential Revision: https://phabricator.services.mozilla.com/D33400

--HG--
extra : moz-landing-system : lando
2019-06-01 16:06:33 +00:00
Makoto Kato 10d8e97c57 Bug 1556330 - Turn on test_input_number_l10n.html and test_input_number_validation.html on Android. r=smaug
This tests are passed since ICU is already turned on Android.

Differential Revision: https://phabricator.services.mozilla.com/D33463

--HG--
extra : moz-landing-system : lando
2019-06-03 09:53:57 +00:00
James Teh 9e31e95a78 Bug 1553706: Fix IAccessible::accChild in the parent process for out-of-process iframes. r=eeejay
It must be possible to retrieve any accessible by calling IAccessible::accChild on the RootAccessible (in the parent process) with the unique id of the desired accessible.
Among other things, this is the way accessibility events are targeted on Windows.
Previously, this code only searched remote documents at the top level of the tree.
In order to support out-of-process iframes, it must now also search embedded documents at the top level of their content process.

As part of this, the MSAA id must be set for out-of-process iframe documents, just as it is for top level documents.
This was already being sent from the content process, but previously, we didn't store this in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D32417

--HG--
extra : moz-landing-system : lando
2019-06-03 06:03:10 +00:00
James Teh c0a638e74c Bug 1543313 part 3: For out-of-process iframes on Windows, send the embedder accessible COM proxy to be used as the parent of the embedded document. r=eeejay,yzen
Aside from the parent being needed by the client, this is also important because events from the embedded document are deferred until the parent COM proxy is received.

As part of this, we no longer try to send the parent COM proxy during construction of an OuterDocAccessible in the parent process.
This was previously a no-op anyway, as DocAccessibleParent::SendParentCOMProxy called DocAccessible::GetAccessible for the frame element, which would have returned null because the accessible isn't bound to the document until *after* it is constructed.
Changing this to directly pass the OuterDocAccessible was causing assertions in content processes, since it sometimes meant the parent COM proxy was sent twice, which is precisely what the assertion is protecting against.
Instead, the parent proxy is sent in Browserparent::RecvPDocAccessibleConstructor as it always was.

Differential Revision: https://phabricator.services.mozilla.com/D32284

--HG--
extra : moz-landing-system : lando
2019-06-03 14:29:37 +00:00
James Teh 86e3c8af49 Bug 1543313 part 1: Allow identification and retrieval of DocAccessibleParents at the top level of their content process. r=eeejay
DocAccessibleParent already has IsTopLevel(), which identifies a document at the top level of the hierarchy; i.e. it has no parents.
Now that we have out-of-process iframes, we need to be able to identify and retrieve documents at the top level of their content process, even if they are embedded by another remote document.
DocAccessibleParent::IsTopLevelInContentProcess() has been introduced to achieve this.
BrowserParent::GetTopLevelDocAccessible() now uses this instead of IsTopLevel(), since we want to be able to get the top DocAccessibleParent even for a BrowserParent for an out-of-process iframe.

Differential Revision: https://phabricator.services.mozilla.com/D32282

--HG--
extra : moz-landing-system : lando
2019-05-31 03:27:26 +00:00
Coroiu Cristina 73edc6621b Backed out 4 changesets (bug 1554847) for wpt failures at /service-workers/service-worker/fetch-canvas-tainting-video-cache.https.html
Backed out changeset 17e36d139ac2 (bug 1554847)
Backed out changeset 101bd1c2d688 (bug 1554847)
Backed out changeset 3ff9a221f3e5 (bug 1554847)
Backed out changeset 946e4d9420dd (bug 1554847)
2019-06-04 03:24:42 +03:00
Coroiu Cristina d075308d70 Backed out changeset 86e87b18a282 (bug 1451455) for mochitest failures at dom/html/test/test_ignoreuserfocus.html on a CLOSED TREE 2019-06-04 01:23:12 +03:00
Edgar Chen 27a615f9f1 Bug 1552644 - Ignore the result from filepicker if the input type is not file; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D33494

--HG--
extra : moz-landing-system : lando
2019-06-03 15:13:34 +00:00
Chris Manchester 399d530b9b Bug 1556185 - Ensure autoconf.mk is tracked as a dependency when preprocessing webidls. r=nalexander
webidlsrcs.mk is treated specially by the build system, and this entire
process should be supported better by moz.build, but in the meantime this
fixes the clobber bug caused by not re-building these targets when defines
are updated.

Differential Revision: https://phabricator.services.mozilla.com/D33415

--HG--
extra : moz-landing-system : lando
2019-06-03 20:33:36 +00:00
shindli 6b4074617b Backed out 2 changesets (bug 1555488) for ES lint failure in /builds/worker/checkouts/gecko/dom/tests/browser/browser_windowProxy_transplant.js CLOSED TREE
Backed out changeset bcc2d99534d1 (bug 1555488)
Backed out changeset 1bef4720c4ee (bug 1555488)
2019-06-03 23:41:46 +03:00
Nika Layzell f4d3fdbcdd Bug 1451455 - Fire the 'load' event on out-of-process iframes, r=rhunt
This is done by sending a message over PBrowser and PBrowserBridge when the
event would fire to fire it in the correct process.

Differential Revision: https://phabricator.services.mozilla.com/D33083

--HG--
extra : moz-landing-system : lando
2019-06-03 20:03:37 +00:00
Nika Layzell ad730a9ef9 Bug 1555488 - Part 2: Add initial tests for WindowProxy cache clearing, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D33545

--HG--
extra : moz-landing-system : lando
2019-06-03 20:06:46 +00:00
Nika Layzell ef32ea9269 Bug 1555382 - Force httpResponseProcessSelection on for browser_navigation_process_swap, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D33042

--HG--
extra : moz-landing-system : lando
2019-06-03 20:04:14 +00:00
Nika Layzell 21aaf2e331 Bug 1554785 - Part 2: Default to 1 process for unknown remote types, r=farre
This is the more logical behaviour than the previous, where an unknown process
would be given the full "dom.ipc.processCount" process limit, which could lead
to unintentionally allocating a large # of processes.

Differential Revision: https://phabricator.services.mozilla.com/D32763

--HG--
extra : moz-landing-system : lando
2019-06-03 20:04:07 +00:00
Nika Layzell 703600bfc8 Bug 1554785 - Part 1: Support dynamic remote types for GetMaxProcessCount, r=farre
This allows the # of processes to be specified for remote types like
"webIsolated", used by fission windows.

Differential Revision: https://phabricator.services.mozilla.com/D32762

--HG--
extra : moz-landing-system : lando
2019-06-03 20:04:00 +00:00
Emilio Cobos Álvarez b6728cedb7 Bug 1553769 - Have a single way of requesting window focus and switching to a tab. r=NeilDeakin,snorp
Right now there's some duplicated code with the focus manager and the
DOMWindowFocus event.

Android didn't handle the new framefocusrequested event, so the test-cases in
bug 416771 still didn't work there.

I think using the focus manager codepath everywhere is preferable. I confirmed
manually that the stuff that sent DOMWindowFocus events still works as expected
with this patch (i.e., switching to the right tab when you click on a
notification, etc.).

This fixes it so that it works in Fennec, and it sends the focus events right in
GeckoView Example (i.e., we get here[1] properly).

The snippet that Snorp provided on IRC to implement the "bring activity to
front" stuff (`startActivity(getIntent())`) didn't actually work for me, but I
confirmed that the right message is sent when the focus is requested, and that
we get there.

[1]: https://searchfox.org/mozilla-central/rev/952521e6164ddffa3f34bc8cfa5a81afc5b859c4/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java#503

Depends on D32353

Differential Revision: https://phabricator.services.mozilla.com/D32354

--HG--
extra : moz-landing-system : lando
2019-06-03 19:42:28 +00:00
Emilio Cobos Álvarez fe31845697 Bug 1545499 - Make whether to show focus-rings for all content by default a pref, and disable it on Android. r=NeilDeakin
This pref toggled gives me the desired behavior on Linux, and it should be
trivial to revert to the previous behavior if needed.

Depends on D33393

Differential Revision: https://phabricator.services.mozilla.com/D33394

--HG--
extra : moz-landing-system : lando
2019-06-03 15:12:24 +00:00
Emilio Cobos Álvarez d143aaa5f3 Bug 1545499 - Remove dead code for threading accelerator state. r=NeilDeakin
It's only moved around, but not actually used anywhere.

I have no idea what this was supposed to control in the past but it doesn't seem
useful to keep it around.

Differential Revision: https://phabricator.services.mozilla.com/D33393

--HG--
extra : moz-landing-system : lando
2019-06-03 15:29:06 +00:00
Cosmin Sabou bcd5ff3d98 Merge mozilla-central to autoland.
--HG--
extra : rebase_source : ec8335cc4fb4f7c2594b2b95cd6d5078af2be625
2019-06-03 19:24:20 +03:00
Tom Tung 04c511ffb3 Bug 944918 - Allow thumbs.db in the storage directory; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D33453

--HG--
rename : dom/quota/test/unit/test_whiteListFiles.js => dom/quota/test/unit/test_allowListFiles.js
extra : moz-landing-system : lando
2019-06-03 16:22:43 +00:00
Cosmin Sabou e13e0af55b Merge mozilla-inbound to mozilla-central. a=merge 2019-06-03 19:01:53 +03:00
Henri Sivonen ae34dc651a Bug 1543077 part 4 - Have only one item for Japanese in the Text Encoding menu. r=Gijs,emk.
Differential Revision: https://phabricator.services.mozilla.com/D28634
2019-06-03 15:30:41 +03:00
Shashank kaushik c329f1cc44 Bug 1532937 - Enable ESLint for dom/flex and dom/grid (manual changes). r=Standard8,smaug
Depends on D33345

Differential Revision: https://phabricator.services.mozilla.com/D33352

--HG--
extra : moz-landing-system : lando
2019-06-03 10:35:57 +00:00
Shashank kaushik 3ebe62f954 Bug 1532937 - Enable ESLint for dom/flex and dom/grid (automatic changes). r=Standard8,smaug
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D33345

--HG--
extra : moz-landing-system : lando
2019-06-03 10:42:12 +00:00
Christoph Kerschbaumer 7cdbee6cd7 Bug 1496418: Update Content Policy checks and allow CSP checks for system principal triggered loads. r=mccr8,baku
Differential Revision: https://phabricator.services.mozilla.com/D32217

--HG--
extra : moz-landing-system : lando
2019-06-03 06:04:25 +00:00
Andrea Marchesini 8df66534cf Bug 1554847 - Improve cross-origin checks in canvas API - consider intermediate redirects, r=jya
Differential Revision: https://phabricator.services.mozilla.com/D32792

--HG--
extra : moz-landing-system : lando
2019-06-03 09:54:43 +00:00
Edgar Chen 6c45f02a32 Bug 1553852 - Mark eCompositionChange as composed event; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D33387

--HG--
extra : moz-landing-system : lando
2019-06-03 09:18:47 +00:00
Zibi Braniecki 314d90ae91 Bug 1555340 - Check for pending mutations when Document creates PresShell. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D33378

--HG--
extra : moz-landing-system : lando
2019-06-03 10:00:47 +00:00
Ehsan Akhgari 3f0a5330d4 Bug 1555876 - Part 2: Use storage principal in IDBFactory::CreateForMainThreadJS(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D33243

--HG--
extra : moz-landing-system : lando
2019-05-31 19:31:04 +00:00
Jonathan Kingston a9be4620ee Bug 1508939 - cpp serialization r=ckerschb,mccr8,mikedeboer
Migrating to pure Cpp

Differential Revision: https://phabricator.services.mozilla.com/D29221

--HG--
extra : moz-landing-system : lando
2019-06-03 12:37:12 +00:00
Neil Deakin 302fa305ad Bug 1519948, remove XUL box objects, r=bzbarsky
--HG--
extra : rebase_source : 4af617fecf06512aed5882831e64e38d4e7e5e94
2019-06-04 12:45:55 -04:00
Jeff Gilbert d8e7b6cedb Bug 1515052 - Use WeakPtr for extension parent pointer. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D31942

--HG--
extra : moz-landing-system : lando
2019-05-24 12:04:12 +00:00
Boris Zbarsky c8d1053680 Bug 1552541. Consider document.domain when deciding on inner window reuse. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D31857

--HG--
extra : moz-landing-system : lando
2019-05-22 21:18:27 +00:00
Jan de Mooij 184ec53bf9 Bug 1556668 - Move Wasm's MapFile from SpiderMonkey to Gecko to eliminate an NSPR dependency. r=luke
Differential Revision: https://phabricator.services.mozilla.com/D33605

--HG--
extra : moz-landing-system : lando
2019-06-04 18:43:02 +00:00
David Major 59dad3d157 Bug 1556738 - Tighten up some clang-cl warning allowances r=nalexander
Remove a few no-longer-necessary `AllowCompilerWarnings()` before anything that depends upon them sneaks in.

Differential Revision: https://phabricator.services.mozilla.com/D33631

--HG--
extra : moz-landing-system : lando
2019-06-04 16:17:14 +00:00
Ehsan Akhgari adf073ce68 Bug 836176 - Part 3: Remove nsIHTMLDocument; r=farre
Differential Revision: https://phabricator.services.mozilla.com/D32925

--HG--
extra : moz-landing-system : lando
2019-06-04 17:27:43 +00:00
Ehsan Akhgari b952303dbe Bug 836176 - Part 2: Remove nsIHTMLDocument::SetIsXHTML(); r=farre
Differential Revision: https://phabricator.services.mozilla.com/D32924

--HG--
extra : moz-landing-system : lando
2019-06-04 17:27:41 +00:00
Ryan Hunt d6cbd07301 Bug 1519546, part 6 - Centralize the visibility logic in BrowserChild and use EffectsInfo. r=mattwoodrow
Currently, BrowserChild rendering is enabled and disabled by `RecvRenderLayers`, and this
method is called only by the tab switching code.

This commit does several things.
1. It factors out the code to enable/disable rendering to MakeVisible/MakeHidden so it can
   be used outside of `RecvRenderLayers`
2. We track the current value of RenderLayers and use it in conjunction with EffectsInfo to
   determine if we need to be rendering at any given moment
3. We only apply RenderLayers to the root OOP browser (not OOP-iframes)

These changes together make it so that BrowserChild will render IFF 'visible' || 'renderLayers',
and will only apply 'renderLayers' to the root browser.

Differential Revision: https://phabricator.services.mozilla.com/D31473

--HG--
extra : rebase_source : 12ad66f514cf1217899af42ca3891fe7b3f897dc
extra : intermediate-source : 3cb9ddccccf320b19f0deae88cd990982b703022
extra : source : e2197dd98aaeeb3d80b65c9892a82d41c4adc80d
2019-05-15 15:29:22 -05:00
Ryan Hunt c382491672 Bug 1519546, part 5 - Add mIsTopLevel flag for tracking the root PBrowser actor in a remote browser. r=farre
The root PBrowser actor needs special case visibility behavior to satisfy the async tab
switcher. This commit adds a flag to track whether a BrowserChild is part of the root
actor.

Differential Revision: https://phabricator.services.mozilla.com/D33046

--HG--
extra : rebase_source : 5f7cb11f77d41f3265d211e99713a1dad6ae2579
extra : intermediate-source : 49e4d0e4fc7ccfa7b2c58bb9b64534c2d569a881
extra : source : adcc870662770a99962e721bd3c5ff4c2616c21d
2019-05-29 11:35:37 -05:00
Ryan Hunt ea567d2cec Bug 1519546, part 4 - Wire up basic EffectsInfo updates in DOM IPC. r=farre
This commit adds RemoteBrowser::UpdateEffects for updating a remote browser's
EffectsInfo over IPC.

A following commit will actually use the EffectsInfo for
enabling/disabling rendering for a remote browser, and another
commit will actually use these IPDL methods.

Differential Revision: https://phabricator.services.mozilla.com/D31472

--HG--
extra : rebase_source : 304d843d2c4a35f468aa847ee66005a932bb7eb2
extra : intermediate-source : d31b7d33efc711fb8115663f4cfc5bc98fd58d73
extra : source : 5aea122dea2120efe107c639b17678e0464b1389
2019-05-15 15:26:25 -05:00
Ryan Hunt 40069aebf7 Bug 1519546, part 3 - Add EffectsInfo and store in BrowserChild. r=farre
This commits adds EffectsInfo for tracking graphical effects
that are applied to a remote browser's ancestors.

Differential Revision: https://phabricator.services.mozilla.com/D31471

--HG--
extra : rebase_source : 5c4cda4019095dbd00aa3bca2edff0dbd16e5ca8
extra : intermediate-source : b4d5865e33079a36f535501293f8aaec8b6bcf64
extra : source : e8e3d2d76d860c76ee351c8b10ed488fdac2d9fc
2019-05-24 09:25:34 -05:00
Ryan Hunt 3f6dcaffd1 Bug 1519546, part 2 - Make BrowserBridgeParent more robust. r=farre
This commit adds two small fixes to make the OOP-iframe code more robust.

The first fixes a crash during shutdown for a tab that has OOP-iframes. It's
possible for the BrowserBridgeParent's to be shutdown before the root
BrowserParent. In this case, SetOwnerElement will run for the root BrowserParent,
but the child BrowserBridgeParent's will not have BrowserParent actors.

The second hooks up the BrowserBridgeParent constructor to actually use
the result code of BrowserBridgeParent::Init.

Differential Revision: https://phabricator.services.mozilla.com/D31477

--HG--
extra : rebase_source : bbe098c5ce75bd0fd26682a3b98f9958df5a2fcf
extra : intermediate-source : 83576499bf77d37e31b5328c0117650e57a03447
extra : source : 8f865f1f199c3e74844559a89b0ff642905513bd
2019-05-16 09:32:34 -05:00
Dorel Luca f8b1143315 Merge mozilla-inbound to mozilla-central a=merge 2019-06-02 12:43:23 +03:00
Martin Stransky 75265c17b3 Bug 1555783 - [Wayland] Don't send XDisplay fd over IPC on Wayland, r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D33255

--HG--
extra : moz-landing-system : lando
2019-05-31 16:19:48 +00:00
Emilio Cobos Álvarez a14f58fefe Bug 1556095 - Make BindContext carry a bit more information. r=bzbarsky
This makes some callers a bit less awkward by not having, for example, to read
from the parent node or not depending on whether Element::BindToTree has been
called already or not.

Differential Revision: https://phabricator.services.mozilla.com/D33368

--HG--
extra : moz-landing-system : lando
2019-06-01 14:40:33 +00:00
Cameron McCormack faf479d778 Bug 1553731 - Part 1: Rename nsFrameIdList.h to FrameIdList.h. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D32603

--HG--
rename : layout/generic/nsFrameIdList.h => layout/generic/FrameIdList.h
extra : moz-landing-system : lando
2019-06-01 08:03:32 +00:00
Boris Zbarsky 768b65d83a Bug 1555374. Use StaticPrefs accessors for various prefs that moved to StaticPrefs recently. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D33060

--HG--
extra : moz-landing-system : lando
2019-06-01 02:29:26 +00:00
Cosmin Sabou b93ad0326f Backed out 3 changesets (bug 1553731) for build bustages on nsIFrame.h CLOSED TREE
Backed out changeset 90ed9808e1c0 (bug 1553731)
Backed out changeset b8669aa5a820 (bug 1553731)
Backed out changeset 0d0bf5d84a3c (bug 1553731)

--HG--
rename : layout/generic/FrameIdList.h => layout/generic/nsFrameIdList.h
2019-06-01 04:23:49 +03:00
Cameron McCormack c4adc9d346 Bug 1553731 - Part 1: Rename nsFrameIdList.h to FrameIdList.h. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D32603

--HG--
rename : layout/generic/nsFrameIdList.h => layout/generic/FrameIdList.h
extra : moz-landing-system : lando
2019-06-01 01:04:44 +00:00
Micah Tigley 387239448c Bug 1107456 - Part 1: While in RDM, scale the inner size values of the viewport using the device's full zoom to find its outer size. r=bradwerth,Ehsan
We want to ensure the RDM browser's outer window sizes are not affected as the page is zoomed in or out. In the context of RDM, the size of the browser window will be the same as the viewport so I believe it's safe to assume that the window's outer size will be equal to its inner size when the zoom level is set to 100%.

I found we can get this value by using the presentation context's `GetDeviceZullZoom` method and applying it to the inner sizes of the RDM viewport.

Differential Revision: https://phabricator.services.mozilla.com/D32778

--HG--
extra : moz-landing-system : lando
2019-05-30 23:37:14 +00:00
Emilio Cobos Álvarez 21d5c25734 Bug 1553769 - Make nsIWidget::SetFocus infallible, and make it take an enum class. r=NeilDeakin
Only gtk returns failure ever, and nobody checks the result anyway.

Use an enum class so that it's clear from the caller what it means.

Differential Revision: https://phabricator.services.mozilla.com/D32353

--HG--
extra : moz-landing-system : lando
2019-05-31 22:13:56 +00:00
Emilio Cobos Álvarez 80e62fe4db Bug 1555944 - Make nsIContent::GetBindingParent return an element. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D33308
2019-05-31 23:31:59 +02:00
Emilio Cobos Álvarez 6ada67c323 Bug 1555216 - Cache owner doc in the BindContext. r=bzbarsky
And use it to avoid some pointer chases per the review comments of D32949.

Differential Revision: https://phabricator.services.mozilla.com/D33288
2019-05-31 23:31:57 +02:00
Emilio Cobos Álvarez abecd6b5f9 Bug 1555216 - Make CharacterData::BindToTree and Element::BindToTree more parallel. r=bzbarsky
They're supposed to be, but they have diverged quite a bit...

This unifies them again.

Depends on D32949

Differential Revision: https://phabricator.services.mozilla.com/D32950
2019-05-31 23:31:55 +02:00
Emilio Cobos Álvarez 6917a38081 Bug 1555216 - Change the signature of BindToTree to be (BindContext&, nsINode& aParentNode). r=bzbarsky
BindContext was going to have way more information at first, but then I realized
that most of the things I wanted to know were basically a flag away using the
parent node.

Still I think it's worth it, now experimenting with BindToTree will only mean
adding a field to a struct that's included from a couple cpp files, instead of a
massive pain.

I also think this is clearer, and doing this highlights quite a few
inconsistencies in our code which I've left untouched, but commented with
FIXMEs.

Steps are:

$ for file in $(rg 'nsresult BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#nsresult BindToTree(Document\* aDocument, nsIContent\* aParent,#nsresult BindToTree(BindContext\&, nsINode\& aParent)#g' $file; done
$ for file in $(rg 'nsresult BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#                      nsIContent\* aBindingParent) override#override#g' $file; done
$ for file in $(rg '::BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#::BindToTree(Document\* aDocument, nsIContent\* aParent,#::BindToTree(BindContext\& aContext, nsINode\& aParent)#g' $file; done
$ for file in $(rg '::BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#nsIContent\* aBindingParent)##g' $file; done
$ for file in $(rg '::BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#::BindToTree(aDocument, aParent, aBindingParent)#::BindToTree(aContext, aParent)#g' $file; done
$ ./mach clang-format

Then manual fixups.

Depends on D32948

Differential Revision: https://phabricator.services.mozilla.com/D32949
2019-05-31 23:31:52 +02:00
Mark Striemer ce0c11236e Bug 1532724 - Part 1: Inline options browser for HTML about:addons details r=rpl,kmag
Differential Revision: https://phabricator.services.mozilla.com/D29787

--HG--
extra : moz-landing-system : lando
2019-05-31 14:05:53 +00:00
Boris Zbarsky 63b07e7115 Bug 1478037. Allow bookmarklets to run even on pages with a CSP. r=ckerschb
The removal of the second CSP check is fixing a regression introduced in bug
965637.  See https://github.com/whatwg/html/issues/4651#issuecomment-495050351
for details.  We may want to re-introduce that check depending on the outcome
of that issue, but if so we should do that only if the target document's
principal subsumes our triggering principal.

This commit will not allow bookmarklets to access subresources that
CSP blocks, but will at least allow them to run.

Differential Revision: https://phabricator.services.mozilla.com/D33047

--HG--
extra : moz-landing-system : lando
2019-05-31 19:21:31 +00:00
Nika Layzell 6e3bc45fd5 Bug 1555492 - Update DocumentURI for WindowGlobalParent in SetNewDocument, r=farre
It appears that in some cases we can have the wrong value for the
WindowGlobalParent::DocumentURI. This patch adds another case in SetNewDocument
which should ideally catch the case where the Document is replaced while
preserving the inner window.

Differential Revision: https://phabricator.services.mozilla.com/D33081

--HG--
extra : moz-landing-system : lando
2019-05-31 14:16:43 +00:00