Commit Graph

217 Commits

Author SHA1 Message Date
Abdoulaye Oumar Ly
7742d38850 Bug 1590138 - Handle the case where the actor is already destroyed during fullscreen exit so that chrome UI is fully restored. r=smaug,NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D51339

--HG--
extra : moz-landing-system : lando
2019-11-05 23:29:26 +00:00
Julian Descottes
cf665518e8 Bug 1591140 - Allow chrome privileged documents to preventDefault contextmenu events regardless of dom.event.contextmenu.enabled r=gl,nika,mconley
@gl can you take a look at the DevTools test added here?
@nika @mconley I used this.browsingContext.docShell.isContent here to rule out chrome-privileged documents. Do you know if there is better way to check if the current document is chrome-privileged or not?

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

--HG--
extra : moz-landing-system : lando
2019-11-04 08:20:02 +00:00
Neil Deakin
d12fb42226 Bug 1592157, convert LinkHandlerChild.jsm to JSWindowActor to support fission, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D51026

--HG--
extra : moz-landing-system : lando
2019-11-04 14:48:04 +00:00
Mike Conley
62940db419 Bug 1592729 - Hide the Picture-in-Picture context menu item for MediaStream videos. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D51157

--HG--
extra : moz-landing-system : lando
2019-10-31 14:36:30 +00:00
Neil Deakin
0d839af744 Bug 1590752, convert ContentMetaHandler.jsm into JSWindowActors, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D50584

--HG--
rename : browser/modules/ContentMetaHandler.jsm => browser/actors/ContentMetaChild.jsm
extra : moz-landing-system : lando
2019-10-31 10:11:40 +00:00
layely
6aafff5d69 Bug 1588386 - Restore toolbars when fullscreen mode exits due to a tab close. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49368

--HG--
extra : moz-landing-system : lando
2019-10-30 16:15:49 +00:00
Julian Descottes
c72c1dcdcc Bug 1588773 - Use ContentDOMReference for context menu Inspect Element r=mconley,pbro
Depends on D49941

Using ContentDOMReference instead of creating an array of selectors makes inspect element more stable in case the page is modified between after the contextmenu opens.
It will also make the feature easier to make fission compatible

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

--HG--
extra : moz-landing-system : lando
2019-10-28 09:10:29 +00:00
prathiksha
770ea8cdd6 Bug 1563355 - Handle exceptionDialogButton click on certerror pages in AboutNetErrorhandler.jsm. r=johannh
Depends on D46438

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:39:16 +00:00
prathiksha
f23a25ca16 Bug 1563355 - Remove AboutNetErrorResetPreferences and use RPM in aboutNetError.js to communicate with AboutNetErrorHandler. r=johannh
Depends on D46154

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:39:01 +00:00
prathiksha
f70c312dac Bug 1563355 - Remove AboutNetErrorSetAutomatic and use RPM in aboutNetError.js to communicate with AboutNetErrorHandler.jsm. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D46154

--HG--
extra : moz-landing-system : lando
2019-10-28 20:38:45 +00:00
James Jahns
8a6c8f36ef Bug 1576918 - Port PageStyle actor to JSWindowActors for Fission compatibility. r=mconley,Gijs
These actors handle implementation of alternative stylesheets functionality.
 r=mconley,Gijs

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

--HG--
extra : moz-landing-system : lando
2019-10-27 18:08:02 +00:00
Csoregi Natalia
7a9af1e313 Backed out changeset 530bcc00246e (bug 1576918) for browser-chrome failures on browser_dismissFooter.js. CLOSED TREE 2019-10-24 23:51:59 +03:00
James Jahns
cb5acc50ed Bug 1576918 - Port PageStyle actor, which handles alternative stylesheets, to JSWindowActors for Fission compatibility. r=mconley,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D46861

--HG--
extra : moz-landing-system : lando
2019-10-24 19:53:42 +00:00
Neil Deakin
7cbc074da1 Bug 1567175, rename LoginManagerContent to LoginManagerChild, r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D47824

--HG--
rename : toolkit/components/passwordmgr/LoginManagerContent.jsm => toolkit/components/passwordmgr/LoginManagerChild.jsm
extra : moz-landing-system : lando
2019-10-21 18:17:50 +00:00
Neil Deakin
3302428083 Bug 1567175, make LoginManagerContent and LoginManagerParent JS classes,r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D47823

--HG--
extra : moz-landing-system : lando
2019-10-21 18:17:43 +00:00
thomasmo
fe82b4a4db Bug 1587521 - Enable FullScreen in FxR for Desktop r=mconley,Gijs
Bug 1587521 - Enable FullScreen in FxR for Desktop

This change enables Fullscreen functionality in the UI for Firefox Reality for Desktop. On Fullscreen, the window (rather than the desktop) is taken over, and it is up to the host to render the contents as fullscreen.

To mitigate the impact on Desktop's implementation, browser-fullScreenAndPointerLock.js is forked and removes the dependencies on browser.js. These two files will be rationalized at a later time.

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

--HG--
rename : browser/base/content/browser-fullScreenAndPointerLock.js => browser/fxr/content/fxr-fullScreen.js
extra : moz-landing-system : lando
2019-10-18 00:15:08 +00:00
Abdoulaye Oumar Ly
85311b3039 Bug 1588883 - Restore fullscreen transition message. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D49373

--HG--
extra : moz-landing-system : lando
2019-10-17 15:25:51 +00:00
Abdoulaye Oumar Ly
c558bed276 Bug 1505916 - [Fission] Part 2: Make the fullscreen code work with oop iframes. r=NeilDeakin,smaug
e10s scenario:
1. An DOM element request fulscreen mode.
2. The request is redirected to the parent.
3. Parent enters fullscreen.
4. Parent notifies child that it has finished entering fullscreen.
5. Child goes fullscreen.
6. Then, child notifies parent that it has finished transitioning to fullscreen.
4. Finally, parent notify observers that fullscreen paint has finished.

Let's go into the details of how step 5 works in the above scenario.
5.a The element that made the request is set to fullscreen.
5.b Then, the document where that element lives is set to fullscreen as well as all of its ancestors until we reach the top level document. (see Document::ApplyFulscreen method)

Now in Fission world, we may have a request comming from an oop iframe. And it that case since we won't have  to ancestor documents living in different content process(es), we will first notiy those content processes (one after another from bottom to top) to go fullscreen. Once they all do, the content process where the request originated will be told to enter fullscreen.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 14:30:28 +00:00
Abdoulaye Oumar Ly
a0898dc653 Bug 1505916 - [Fission] Part 1: Make the fullscreen code work with JSWindowActors. r=NeilDeakin,dao,smaug
At this point, fullscreen is not regressed but it doesn't work with oop iframes yet.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 14:30:28 +00:00
Sebastian Hengst
0af4fd28ee Bug 1587836 - update permissions related Bugzilla components stored in moz.build files. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D48869

--HG--
extra : moz-landing-system : lando
2019-10-11 08:44:00 +00:00
Nika Layzell
c8a8f0a350 Bug 1581925 - Part 3: Remove ContextMenuSpecialProcessChild.jsm, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D48093

--HG--
extra : moz-landing-system : lando
2019-10-07 19:35:06 +00:00
Gijs Kruitbosch
654bb994b4 Bug 1581664 - use unlimited session length permission for 'Allow Now' for plugins, r=mconley,handyman
Differential Revision: https://phabricator.services.mozilla.com/D46938

--HG--
extra : moz-landing-system : lando
2019-10-01 22:23:17 +00:00
Neil Deakin
f2fcce14e4 Bug 1553384, update letterboxing to be fission compatible now that findbar isn't using the message manager. Add a findbar open/close test for letterboxing, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D45757

--HG--
extra : moz-landing-system : lando
2019-09-18 09:33:52 +00:00
Timothy Nikkel
0b5b344a76 Bug 1581687. Check window.PopupNotifications exists before using it in PluginParent::showClickToPlayNotification. r=Gijs
The reftest harness hits this with tests with the test plugin.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 09:31:24 +00:00
Jonathan Kingston
6c5244b7a9 Bug 1579444 - Remove offline storage usage prompt r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D46075

--HG--
extra : moz-landing-system : lando
2019-09-17 16:21:45 +00:00
Bogdan Tara
7fd9d0c40e Backed out changeset d6a50efcae08 (bug 1579444) for ES lint failure on OfflineAppsChild.jsm CLOSED TREE 2019-09-17 18:42:36 +03:00
Jonathan Kingston
d2f8bed096 Bug 1579444 - Remove offline storage usage prompt r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D46075

--HG--
extra : moz-landing-system : lando
2019-09-17 13:31:40 +00:00
prathiksha
474ef9a0f2 Bug 1561443 - Move _getErrorMessageFromCode from NetErrorChild.jsm to aboutNetError.js. r=fluent-reviewers,flod,johannh
Differential Revision: https://phabricator.services.mozilla.com/D36542

--HG--
extra : moz-landing-system : lando
2019-09-17 09:49:59 +00:00
monikamaheshwari
9d60e0d578 Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45629

--HG--
extra : moz-landing-system : lando
2019-09-14 09:39:26 +00:00
Neil Deakin
c3bcfee4c1 Bug 1580506, fix incorrect pointerlock message names, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D45577

MANUAL PUSH: re-push with eslint bustage fix

--HG--
extra : rebase_source : 88e90063f4ae11170c7151f21deabe6675971323
extra : amend_source : 5895721851fe48ce4f57f6f33838b5b1885fee3b
extra : source : f779d14e3ab8bb8b31a29601e9391775babbc2da
2019-09-12 12:08:41 +00:00
Razvan Maries
3e9327e5b9 Backed out changeset f779d14e3ab8 (bug 1580506) for ES Lint failure on browser_pointerlock_warning.js. CLOSED TREE 2019-09-12 16:02:04 +03:00
Neil Deakin
f00a06829c Bug 1580506, fix incorrect pointerlock message names, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D45577

--HG--
extra : moz-landing-system : lando
2019-09-12 12:08:41 +00:00
Paul Zuehlcke
00119452fc Bug 1574480 - Updated browser.js and OfflineAppsChild.jsm to use PermissionManager principal methods. r=johannh,smaug
Differential Revision: https://phabricator.services.mozilla.com/D42620

--HG--
extra : moz-landing-system : lando
2019-09-10 10:57:07 +00:00
prathiksha
2a39a566d7 Bug 1553342 - Have Browser:CertExceptionError message exchanges happen over RPM. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D34581

--HG--
extra : moz-landing-system : lando
2019-09-05 20:04:03 +00:00
Coroiu Cristina
9683a17a37 Backed out changeset d2867a062f45 (bug 1574480) for browser-chrome failures at browser/base/content/test/general/browser_offlineQuotaNotification.js on a CLOSED TREE 2019-09-05 18:38:42 +03:00
Paul Zuehlcke
99bfbf1328 Bug 1574480 - Updated browser.js and OfflineAppsChild.jsm to use PermissionManager principal methods. r=johannh,smaug
Differential Revision: https://phabricator.services.mozilla.com/D42620

--HG--
extra : moz-landing-system : lando
2019-09-05 13:37:55 +00:00
Emma Malysz
392fe89b3a Bug 1569738, make PageInfo fission compatible r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D42978

--HG--
extra : moz-landing-system : lando
2019-08-29 20:31:19 +00:00
Thomas Nguyen
c175f3d626 Bug 1576347 - Correct referrerInfo when saving media and add a test of "Go To Download Page" button r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D43749

--HG--
extra : moz-landing-system : lando
2019-08-30 18:38:38 +00:00
Andreas Farre
6e42fb98f8 Bug 1563619 - Handle subframe crashes in BrowserParent::ActorDestroy. r=mconley,kmag,peterv
Differential Revision: https://phabricator.services.mozilla.com/D40937

--HG--
extra : moz-landing-system : lando
2019-08-26 13:08:32 +00:00
Abdoulaye O. Ly
2071196eb3 Bug 1571080 - [Fission] Port form validation to JSWindowActor. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D40483

--HG--
rename : browser/modules/FormValidationHandler.jsm => browser/actors/FormValidationParent.jsm
extra : moz-landing-system : lando
2019-08-19 18:20:19 +00:00
Jared Wein
776e7c17fb Bug 1571567 - Fix no-fallthrough errors in /browser. r=MattN,k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D40745

--HG--
extra : moz-landing-system : lando
2019-08-08 15:18:49 +00:00
Bogdan Tara
844afcfb06 Backed out 10 changesets (bug 1571567) complementary backout after es lint failure on the patch CLOSED TREE
Backed out changeset ce83fa75ae32 (bug 1571567)
Backed out changeset 7aa97ba7cce9 (bug 1571567)
Backed out changeset 777d79076e99 (bug 1571567)
Backed out changeset fbdf6b75a484 (bug 1571567)
Backed out changeset e2ed4620f232 (bug 1571567)
Backed out changeset 2c67015f12c6 (bug 1571567)
Backed out changeset 7ec086bb5bd5 (bug 1571567)
Backed out changeset 42df735c8556 (bug 1571567)
Backed out changeset 7d5fc57b2809 (bug 1571567)
Backed out changeset 606bafb8211c (bug 1571567)
2019-08-08 18:13:54 +03:00
Jared Wein
bfdcad7ada Bug 1571567 - Fix no-fallthrough errors in /browser. r=MattN,k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D40745

--HG--
extra : moz-landing-system : lando
2019-08-08 01:38:50 +00:00
Mike Conley
b0452cabd0 Bug 1555711 - Port RemotePrompt to a JS Window Actor to be Fission-compatible. r=NeilDeakin,layely
Differential Revision: https://phabricator.services.mozilla.com/D38189

--HG--
rename : browser/modules/RemotePrompt.jsm => browser/actors/PromptParent.jsm
extra : moz-landing-system : lando
2019-07-31 15:32:15 +00:00
Boris Zbarsky
c411601264 Bug 1568884. Remove unnecessary QIs to nsIObjectLoadingContent. r=mossop
They're no-ops with Web IDL bindings.

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

--HG--
extra : moz-landing-system : lando
2019-07-25 15:27:39 +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
Julian Descottes
05ed6b64d3 Bug 1486717 - Do not emit contextmenu from parentprocess if target is the RDM iframe r=mconley,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D37691

--HG--
extra : moz-landing-system : lando
2019-07-18 16:46:59 +00:00
Thomas Nguyen
b0fa7cedfe Bug 1554947 - Update saveURL to use referrerInfo class instead of referrer and referrerr policy r=Gijs,snorp
Differential Revision: https://phabricator.services.mozilla.com/D33939

--HG--
extra : moz-landing-system : lando
2019-07-16 17:59:28 +00:00
Hamzah
8e1207721c Bug 1510351 - Remove unused code in PluginChild.jsm r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D36524

--HG--
extra : moz-landing-system : lando
2019-07-11 15:12:26 +00:00
Luca Greco
b41031dd54 Bug 1561970 - BrowserTabParent should ignore browser elements related to non-tab extension pages. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37051

--HG--
extra : moz-landing-system : lando
2019-07-09 20:58:51 +00:00