Commit Graph

85382 Commits

Author SHA1 Message Date
Boris Zbarsky
a4d2c02692 Bug 1568281. Stop implementing JS-exposed QueryInterface on DOMParser. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D39070

--HG--
extra : moz-landing-system : lando
2019-07-24 08:08:30 +00:00
Jonathan Kingston
9cd90ac210 Bug 1301529 - Remove X-Frame-Options allow-from. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D38672

--HG--
extra : moz-landing-system : lando
2019-07-24 12:23:32 +00:00
Paul Adenot
e7113463d0 Bug 1562626 - Keep a reference to the graph on device change. r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D36580

--HG--
extra : moz-landing-system : lando
2019-07-23 18:49:45 +00:00
Christian Holler
e15fadb7af Bug 1561492 - Check samples per second prior to divide in ADTS. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D38626

--HG--
extra : moz-landing-system : lando
2019-07-23 00:55:50 +00:00
Christian Holler
7c82f0b4d9 Bug 1567441 - Check for invalid rate in FramesToTimeUnit. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D38648

--HG--
extra : moz-landing-system : lando
2019-07-23 00:57:27 +00:00
Alphan Chen
bb06ecd152 Bug 1567057 - TabListener is only for contentSessionStore on desktop r=peterv
Don't need TabListener on geckoview

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

--HG--
extra : moz-landing-system : lando
2019-07-24 08:05:55 +00:00
Christoph Kerschbaumer
e9b316e5e0 Bug 1567910: Remove the not IsXULDocument carveout when checking if about: page has a CSP.r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D38873

--HG--
extra : moz-landing-system : lando
2019-07-24 05:48:56 +00:00
Kagami Sascha Rosylight
cbdbeb0691 Bug 1565130 - Update parser/runtests.py for Python 3 r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D38813

--HG--
extra : moz-landing-system : lando
2019-07-23 22:14:23 +00:00
Narcis Beleuzu
2c7f6ec7b6 Backed out 3 changesets (bug 1567237) for ESlint and mochitest failures on test_scroll_space_no_range_overflow_scroll.html . CLOSED TREE
Backed out changeset 72699e27e033 (bug 1567237)
Backed out changeset 90048e3d6eb3 (bug 1567237)
Backed out changeset 5d602a56edc7 (bug 1567237)
2019-07-24 05:49:52 +03:00
Boris Zbarsky
94926598b4 Bug 1568310. Add a use counter for the named getter on HTMLDocument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D39096

--HG--
extra : moz-landing-system : lando
2019-07-24 01:22:39 +00:00
Jan-Ivar Bruaroey
4e2000dea5 Bug 1567951: Test implicit rollback in SRD(offer). r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D38890

--HG--
extra : moz-landing-system : lando
2019-07-23 20:36:11 +00:00
Jan-Ivar Bruaroey
e8e268ed95 Bug 1567951: Add implicit rollback in setRemoteDescription(offer). r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D38889

--HG--
extra : moz-landing-system : lando
2019-07-23 20:35:58 +00:00
Cameron McCormack
966044b6f6 Bug 1567808 - Remove unused HTMLInputElement::FlushFrames. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D38831

--HG--
extra : moz-landing-system : lando
2019-07-22 14:44:17 +00:00
Emilio Cobos Álvarez
eb563e1090 Bug 1567237 - Only use scroll range to select scrollable frames to scroll to, don't use scrollbar visibility. r=tnikkel
This is what other browsers do, and it does make sense to me, it's useless to
try to scroll a frame with no scroll range in a given direction.

I think all callers of this function should be treated like this, so this is
more like a RFC / feedback request than a patch per se.

The wheel handling code already checks scroll range, so there's no difference of
behavior in that case, if I'm reading the code right.

There are a few other functions that check the result of
GetPerceivedScrollingDirections(), but I think if we change this we should
change this consistently.

I also think that if we do this we should rename the method to something like
GetAvailableScrollingDirections() or such.

Anyhow, wdyt? I should also add a test for this if we go with this.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 22:04:31 +00:00
Gijs Kruitbosch
fffc7f0c58 Bug 1505913 - make plugin click-to-play and crash handling fission-compatible, r=mconley
At a high level, this change does the following:
- move the pluginchild actor to be a JSWindowActorChild
- move the parent handling from browser-plugins into a JSWindowActorParent
- move the crash handling from ContentCrashHandlers.jsm to the parent actor,
  using a `PluginManager` object. It needs to talk to the actors (and vice
  versa), so this seemed a better fit than spreading actor implementation
  details to other JSMs.
- switch to using plugin IDs to identify plugins cross-process, instead of
  combinations of names or other properties of the plugin tag. As part of that,
  ensured plugin IDs are unique between "fake" plugins and the other ones.
- drop support for having a notification for more than 1 plugin. We only support
  Flash, in practice, so there didn't seem to be much point in the added
  complexity of trying to support more than 1 thing.

Some notes:
- the previous implementation mixes runIDs (for NPAPI plugin process "runs")
  and GMP pluginIDs when doing crashreporting. AFAICT there is no guarantee
  these don't conflict, so I've split them out to avoid issues. There's a
  pluginCrashID object I pass around instead that has either a runID or
  pluginID. Happy to rename some more for clarity.
- the previous implementation used `pluginInfo` and `plugin` for a bunch of
  different types of variables. I've tried to be consistent, where:
  * `pluginElement` is a DOM element for a plugin
  * `activationInfo` is a JS object used to track click to play state for a plugin
  * `plugin` is a plugintag as returned by the pluginhost service
  * `pluginCrashID` is an identifier for a crashed plugin (see previous point).
- I'm still using broadcastAsyncMessage to tell the content processes about
  gmp plugin crashes and plugin crash submission updates, because there's no
  guarantee the actors are instantiated (for gmp plugins) nor can the parent
  easily find out which actors to talk to (for either gmp or npapi plugins).
  Open to suggestions there, too. I think our best bet might be moving that to
  IPDL-based IPC within the GMP code, but that feels like a separate bug.

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

--HG--
rename : browser/base/content/browser-plugins.js => browser/actors/PluginParent.jsm
extra : moz-landing-system : lando
2019-07-23 22:04:40 +00:00
Matthew Gregan
703bd02c00 Bug 1539225 - Pass cubeb backend name to AudioIPC server during init. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D37833

--HG--
extra : moz-landing-system : lando
2019-07-23 19:41:37 +00:00
Narcis Beleuzu
78f3381905 Backed out changeset f74c9d255293 (bug 1568055) for Assertion failures (MOZ_ASSERT_UNREACHABLE: leaking stream event). CLOSED TREE 2019-07-23 23:13:43 +03:00
Narcis Beleuzu
5f131d63bd Backed out 2 changesets (bug 1567951) for mda failures on test_peerConnection_setRemoteOfferInHaveLocalOffer.html . CLOSED TREE
Backed out changeset ca95add81105 (bug 1567951)
Backed out changeset 092e24332c39 (bug 1567951)

--HG--
extra : histedit_source : e2768cd60a59cd80528a92bab86d3fe24962cfe8
2019-07-23 23:02:54 +03:00
Emilio Cobos Álvarez
d1e4832ced Bug 1567105 - When cloning a document for printing, call SetCompatMode rather than silently copying over the compat mode. r=jwatt
So that the styleset and CSS loader react appropriately.

Bug 1535788 causes the styleset to be created earlier, so it stopped grabbing the
already-updated compat mode.

I think the CSS loader stuff could already cause some issues before bug 1535788,
for what is worth.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 19:22:33 +00:00
Jan-Ivar Bruaroey
5bce336f55 Bug 1567951: Add implicit rollback in setRemoteDescription(offer). r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D38889

--HG--
extra : moz-landing-system : lando
2019-07-23 18:07:18 +00:00
Daniel Holbert
dd66dfe12b Bug 1566991: Add some assertions to sanity-check that our mobile viewport zoom factors are positive. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D38419

--HG--
extra : moz-landing-system : lando
2019-07-23 18:07:26 +00:00
Brindusan Cristian
3b6016ba17 Backed out changeset 58eb45e75568 (bug 1566991) for build bustages at MobileViewportManager.cpp:400:24. CLOSED TREE 2019-07-23 20:36:44 +03:00
Daniel Holbert
ac190f8813 Bug 1566991: Add some assertions to sanity-check that our mobile viewport zoom factors are positive. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D38419

--HG--
extra : moz-landing-system : lando
2019-07-22 17:16:23 +00:00
Cosmin Sabou
20d813093c Bug 1563597 - Fix lint errors. r=jdai
--HG--
extra : amend_source : 9ded5b32117f5d390d50b90d71e22d215d121f32
2019-07-23 19:50:19 +03:00
John Dai
5bed95bf3d Bug 1563597 - Support nsGlobalWindowOuter as observer notification's subject; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D39029

--HG--
extra : moz-landing-system : lando
2019-07-23 16:09:27 +00:00
Nika Layzell
454761339c Bug 1568055 - Part 2: Set embedder for BrowsingContext upon frame creation, r=farre
This should help ensure that the embedder is always set soon enough that we
don't run into the situation which caused the null deref fixed by bug 1565489.

This patch also adds an assertion earlier in WindowGlobalParent's lifecycle to
ensure that the condition is satisfied. This assertion will fail before the
changes in part 1.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 08:05:50 +00:00
Nika Layzell
d75c40bc90 Bug 1568055 - Part 1: SetDocument earlier in the clone operation for print, r=farre
This should ensure that the inner window for each document is set up correctly
before iframe elements are created in them during a static clone. Other,
non-static-clone cases are not affected because they cannot load subframes.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 12:26:31 +00:00
Tom Schuster
a207353360 Bug 1523706 - Consider strictly enforcing MIME checks for Worker scripts. r=ckerschb
No test changes yet.

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

--HG--
extra : moz-landing-system : lando
2019-07-16 20:40:03 +00:00
Christian Holler
92b529251c Bug 1567444 - Check start and end time validity in AudioTrimmer. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D38652

--HG--
extra : moz-landing-system : lando
2019-07-23 00:55:07 +00:00
Christian Holler
94a51cd279 Bug 1568037 - Check for successful Opus decoder creation. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D38936

--HG--
extra : moz-landing-system : lando
2019-07-23 00:56:44 +00:00
Ciure Andrei
c0756f3389 Backed out 10 changesets (bug 1523638) for causing high frequency Android 7.0 mochitests failures CLOSED TREE
Backed out changeset 644ceb2fe568 (bug 1523638)
Backed out changeset 27647ee7a927 (bug 1523638)
Backed out changeset 96f1ccb95570 (bug 1523638)
Backed out changeset b60a17ea716a (bug 1523638)
Backed out changeset 507e63186c5f (bug 1523638)
Backed out changeset 33255408ca61 (bug 1523638)
Backed out changeset d97b2d223616 (bug 1523638)
Backed out changeset eba2a0514cde (bug 1523638)
Backed out changeset d7065174c5c4 (bug 1523638)
Backed out changeset c21b361e175d (bug 1523638)
2019-07-23 05:13:32 +03:00
alwu
55e171e76b Bug 1563949 - part5 : return nullptr when time overflow. r=jya
If the result of expected dts/pts after added `fuzz` is overflow, we should return nullptr as if we reach to the end of the file.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 02:16:44 +00:00
alwu
441473d744 Bug 1563949 - part4 : prevent direct usage of 'AppendElement()' to append sample. r=jya
We should always append sample by using `AppendSample()` to assert whether a sample is valid, so making `mSamples` private can prevent a direct usage of the nsTarry's `AppendElement()`.
Also provide a method to return non-const mSamples which is only used for the move semantics.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 21:11:21 +00:00
alwu
44cfc7989a Bug 1563949 - part3 : handle invalid sample in demuxer. r=jya
Return demux error when we get a invalid sample. For mp4 demuxer, we use `MOZ_DIAGNOSTIC_ASSERT` instead because we are pretty sure that it won't happen.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 20:48:15 +00:00
alwu
424b48c982 Bug 1563949 - part2 : add 'AppendSample' to assert that a sample should always be valid r=jya
We don't want to have a sample with invalid time, duration, end time or end timecode, so add a diagnostic assertion to check. And will handle invalid sample for demuxers in next patch.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 20:16:26 +00:00
alwu
7cea87585a Bug 1563949 - part1 : add function 'GetEndTimeCode'. r=jya
We already have function `GetEndTime()`, so it's good to have a similar function `GetEndTimeCode()` so that we won't have to calculate end time code by ourselves.

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

--HG--
extra : moz-landing-system : lando
2019-07-18 11:03:28 +00:00
Nika Layzell
2a0d22e428 Bug 1523638 - Part 10: Implement WindowGlobalParent::GetRootFrameLoader in terms of Top()->GetEmbedderElement(), r=farre
Differential Revision: https://phabricator.services.mozilla.com/D38552

--HG--
extra : moz-landing-system : lando
2019-07-19 19:53:53 +00:00
Nika Layzell
83236ff0f4 Bug 1523638 - Part 9: Use provided 'WindowGlobalChild' actors to create the initial about:blank document, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37656

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:22 +00:00
Nika Layzell
d3369b5645 Bug 1523638 - Part 7: Transmit permissions for newly created WindowGlobalParent actors, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D37654

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:18 +00:00
Nika Layzell
d57e4902c0 Bug 1523638 - Part 6: Create an initial WindowGlobal actor for popup browser construction, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37653

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:16 +00:00
Nika Layzell
96156f34c3 Bug 1523638 - Part 5: Create a WindowGlobal actor during normal PBrowser construction, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37652

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:14 +00:00
Nika Layzell
5dc554280a Bug 1523638 - Part 4: Move NextWindowId logic into nsContentUtils, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37651

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:12 +00:00
Nika Layzell
b1f124f20a Bug 1523638 - Part 3: Construct WindowGlobal actors using ManagedEndpoint, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37650

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:10 +00:00
Nika Layzell
68e5c025a2 Bug 1523638 - Part 2: Store and expose URI and Principal on WindowGlobalChild, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37649

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:03 +00:00
Nika Layzell
29cceccb51 Bug 1523638 - Part 1: Remove mIPCClosed from PWindowGlobal, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37648

--HG--
extra : moz-landing-system : lando
2019-07-18 19:38:01 +00:00
Nika Layzell
2f4cd365ad Bug 1566806 - Check discarded status before forwarding WindowProxy messages between processes, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D38545

--HG--
extra : moz-landing-system : lando
2019-07-22 01:54:36 +00:00
Boris Zbarsky
0f70d08ec8 Bug 1566595. Stop using [array] in nsIBinaryOutputStream. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D38387

--HG--
extra : moz-landing-system : lando
2019-07-22 20:27:39 +00:00
Ciure Andrei
24c0d0e47d Backed out 2 changesets (bug 1506219) for causing test_presentation_datachannel_sessiontransport.html to perma fail CLOSED TREE
Backed out changeset 7e39db6e12a5 (bug 1506219)
Backed out changeset ab31fbc14a00 (bug 1506219)
2019-07-22 23:54:45 +03:00
Bobby Holley
de399107e1 Bug 1566839 - Use NS_WARNING rather than NS_ERROR when child process initialization fails. r=jld
Differential Revision: https://phabricator.services.mozilla.com/D38908

--HG--
extra : moz-landing-system : lando
2019-07-22 19:14:45 +00:00
Emilio Cobos Álvarez
8d47bdf9ba Bug 1566684 - Make sure to unlink rule declarations before unlinking css::Rule. r=smaug,emilio
Rules and their declarations are a single object as far as the CC is concerned.  They have a single nsCycleCollectionISupports and they are represented by a single node in the CC graph.  That single object has two nsWrapperCache instances in it that point to different JS objects, and we need to make sure that the ordering of the unlink operations for those nsWrapperCache instances is handled correctly.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 18:33:29 +00:00