Commit graph

601 commits

Author SHA1 Message Date
Matthew Noorenberghe
cb2556b19d Bug 1595915 - Move the password generation context menu item to the top-level. r=sfoster,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D60640

--HG--
extra : moz-landing-system : lando
2020-01-23 20:19:17 +00:00
Gijs Kruitbosch
0606b71ddb Bug 1526731 - pass content policy to webbrowserpersist to improve image request headers, r=smaug,johannh
Differential Revision: https://phabricator.services.mozilla.com/D60567

--HG--
extra : moz-landing-system : lando
2020-01-23 08:36:00 +00:00
Ciure Andrei
d35aa07785 Backed out 2 changesets (bug 1595915) for causing browser_contextmenuFillLogins.js perma fails CLOSED TREE
Backed out changeset 5675d8e0f9f5 (bug 1595915)
Backed out changeset 9ef66fee0f47 (bug 1595915)
2020-01-23 06:49:47 +02:00
Matthew Noorenberghe
3248d7392d Bug 1595915 - Move the password generation context menu item to the top-level. r=sfoster,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D60640

--HG--
extra : moz-landing-system : lando
2020-01-23 03:43:40 +00:00
Neil Deakin
3d7ffd608a Bug 1603020, allow sendMessageToActor to send the message to all descendants, not just process roots, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D58990

--HG--
extra : moz-landing-system : lando
2020-01-20 15:14:31 +00:00
Emma Malysz
57215abe07 Bug 1601094, rename the remaining .xul files in browser/ to .xhtml r=marionette-reviewers,whimboo,mossop
Differential Revision: https://phabricator.services.mozilla.com/D55751

--HG--
rename : browser/base/content/aboutDialog.xul => browser/base/content/aboutDialog.xhtml
rename : browser/base/content/newInstall.xul => browser/base/content/newInstall.xhtml
rename : browser/base/content/pageinfo/pageInfo.xul => browser/base/content/pageinfo/pageInfo.xhtml
rename : browser/base/content/safeMode.xul => browser/base/content/safeMode.xhtml
rename : browser/base/content/sanitize.xul => browser/base/content/sanitize.xhtml
rename : browser/base/content/titlebar-items.inc.xul => browser/base/content/titlebar-items.inc.xhtml
rename : browser/base/content/webext-panels.xul => browser/base/content/webext-panels.xhtml
rename : browser/base/content/webrtcIndicator.xul => browser/base/content/webrtcIndicator.xhtml
rename : browser/components/downloads/content/contentAreaDownloadsView.xul => browser/components/downloads/content/contentAreaDownloadsView.xhtml
rename : browser/components/migration/content/migration.xul => browser/components/migration/content/migration.xhtml
rename : browser/components/places/content/bookmarkProperties.xul => browser/components/places/content/bookmarkProperties.xhtml
rename : browser/components/places/content/bookmarksSidebar.xul => browser/components/places/content/bookmarksSidebar.xhtml
rename : browser/components/places/content/historySidebar.xul => browser/components/places/content/historySidebar.xhtml
rename : browser/components/places/content/places.xul => browser/components/places/content/places.xhtml
rename : browser/components/shell/content/setDesktopBackground.xul => browser/components/shell/content/setDesktopBackground.xhtml
extra : moz-landing-system : lando
2019-12-11 00:27:19 +00:00
Jonathan Watt
8b155d8f62 Bug 1602561. Make PrintUtils.printWindow() act on a BrowsingContext. r=Gijs
Factored out from patches to make printing work with Fission enabled.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 21:59:02 +00:00
Matthew Noorenberghe
7dca7daa86 Bug 1599752 - Partial back out of changeset c72321ba48b8 to remove subdomain suggestions in the context menu.
Differential Revision: https://phabricator.services.mozilla.com/D54937

--HG--
extra : moz-landing-system : lando
2019-11-27 14:25:19 +00:00
Mike Conley
e819bd0638 Bug 1597787 - Send principals directly across JSWindowActors rather than serializing / deserializing them. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D53867

--HG--
extra : moz-landing-system : lando
2019-11-23 00:53:52 +00:00
Matthew Noorenberghe
66f2568013 Bug 1566536 - Support password generation in private windows. r=sfoster
* Inform users in autocomplete that using a generated password will cause it to be automatically saved.
* Don't fill generated passwords from the context menu directly, that menu item (renamed) should simply force the generation UI to appear in autocomplete.

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

--HG--
extra : moz-landing-system : lando
2019-11-23 03:26:03 +00:00
Matthew Noorenberghe
5899ac5cb2 Bug 1200472 - Include subdomain login fill suggestions in the context menu. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D51354

--HG--
extra : moz-landing-system : lando
2019-11-15 01:03:48 +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
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
Dão Gottwald
eda4c79a87 Bug 1589328 - Remove global-scope pollution from nsContextMenu.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D49583

--HG--
extra : moz-landing-system : lando
2019-10-21 13:40:00 +00:00
Dão Gottwald
79806540d1 Bug 1588813 - Remove redundant imports and service getters from browser-fullScreenAndPointerLock.js and nsContextMenu.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D49298

--HG--
extra : moz-landing-system : lando
2019-10-15 15:06:22 +00:00
Mike de Boer
87107fa64b Bug 1563024 - Add a context menu item for the in-content popup to allow to perform a search in a new private window, using a private browsing mode default search engine. r=jaws,mak
Differential Revision: https://phabricator.services.mozilla.com/D48672

--HG--
extra : moz-landing-system : lando
2019-10-10 22:49:06 +00:00
Michael Kaply
d3547ee818 Bug 158968 - Implement kiosk mode. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D41848

--HG--
extra : moz-landing-system : lando
2019-10-04 19:47:56 +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
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
Mark Banner
511a7ababf Bug 1562929 - Use the default private search engine in the context menu. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D43771

--HG--
extra : moz-landing-system : lando
2019-08-29 14:43:43 +00:00
Sam Foster
f84227e740 Bug 1571700 - Don't show fill logins context menu item in about: pages. r=MattN
* Skip showing the password manager items in the context menu from an about: page

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

--HG--
extra : moz-landing-system : lando
2019-08-21 22:01:26 +00:00
Matthew Noorenberghe
a846d2015c Bug 1569093 - Don't offer pwgen via the context menu on sites where the user disabled pw saving. r=sfoster
Depends on D39937

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

--HG--
extra : moz-landing-system : lando
2019-07-31 19:21:52 +00:00
Matthew Noorenberghe
3fd578fde2 Bug 1569093 - Use getLoginOrigin instead of documentURI in LoginManagerContextMenu. r=jaws
This properly handles the userPass portion of the URI.

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

--HG--
extra : moz-landing-system : lando
2019-07-31 04:36: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
Tim Nguyen
f43b3a9376 Bug 1566533 - Disable generated passwords feature on private windows. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D38235

--HG--
extra : moz-landing-system : lando
2019-07-21 22:17:19 +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
Gijs Kruitbosch
9a5e853d3d Bug 1417238 - hide 'open link in container' menu when there are no containers, r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D37439

--HG--
extra : moz-landing-system : lando
2019-07-09 16:20:06 +00:00
Victor Porof
f9f5914039 Bug 1561435 - Format browser/base/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : 96b3895a3b2aa2fcb064c85ec5857b7216884556
2019-07-05 09:48:57 +02:00
Sam Foster
790aa6af69 Bug 1548391 - Add a contextmenu item to fill a password field with a generated password. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D35592

--HG--
extra : moz-landing-system : lando
2019-06-28 22:03:57 +00:00
Abdoulaye O. Ly
6c5fd5d7bc Bug 1559234 - Add frame process ID to 'This Frame' submenu in context-menu. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D35673

--HG--
extra : moz-landing-system : lando
2019-06-26 16:33:57 +00:00
Ehsan Akhgari
fc40494b9c Bug 1557887 - Part 5: Pass a storage principal argument through the browser loadURI()/addTab() APIs; r=baku,mconley
Differential Revision: https://phabricator.services.mozilla.com/D34459

--HG--
extra : moz-landing-system : lando
2019-06-12 23:05:36 +00:00
Gurzau Raul
227f5329f7 Merge inbound to mozilla-central. a=merge 2019-06-12 00:34:32 +03:00
Neil Deakin
e5fb1d5934 Bug 1533948, change BrowserTabChild to inherit from JSWindowActor, r=mconley
--HG--
extra : rebase_source : 5e88e30ac09c15e6747f6ef1019e9b27a793a898
2019-06-11 09:05:33 -04:00
Boris Zbarsky
9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
Mike Conley
d622bd6c52 Bug 1505909 - Make basic context menu actions Fission-compatible. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32876

--HG--
extra : moz-landing-system : lando
2019-06-08 01:09:46 +00:00
Mike Conley
638dd8fb19 Bug 1505909 - Stop sending a CPOW for the target element for context menu messages. r=MattN
This introduces a new toolkit module, ContentDOMReference, which can generate identifiers
for DOM elements that can be safely passed across the process boundary without having to
use the CPOW infrastructure.

The Password Manager code seemed to be the only thing using the original CPOW, so this
has been updated to use the ContentDOMReference identifier instead.

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

--HG--
extra : moz-landing-system : lando
2019-06-08 01:09:29 +00:00
Mike Conley
42b822a5ef Bug 1505909 - Merge remote and non-remote context menu handlers. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32757

--HG--
extra : moz-landing-system : lando
2019-06-08 01:09:10 +00:00
Noemi Erli
ea35f4b13b Backed out 6 changesets (bug 1505909) for failures in browser_ext_webNavigation_onCreatedNavigationTarget_contextmenu.js CLOSED TREE
Backed out changeset 57336967a6c7 (bug 1505909)
Backed out changeset 8adcacadd689 (bug 1505909)
Backed out changeset bcca6bb913ef (bug 1505909)
Backed out changeset afc11a5ebb6d (bug 1505909)
Backed out changeset 40f0a56ed3af (bug 1505909)
Backed out changeset 3e31f9726798 (bug 1505909)
2019-06-07 19:19:14 +03:00
Mike Conley
6d0f158a7d Bug 1505909 - Make basic context menu actions Fission-compatible. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32876

--HG--
extra : moz-landing-system : lando
2019-06-07 14:28:59 +00:00
Mike Conley
cf5863f79c Bug 1505909 - Stop sending a CPOW for the target element for context menu messages. r=MattN
This introduces a new toolkit module, ContentDOMReference, which can generate identifiers
for DOM elements that can be safely passed across the process boundary without having to
use the CPOW infrastructure.

The Password Manager code seemed to be the only thing using the original CPOW, so this
has been updated to use the ContentDOMReference identifier instead.

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

--HG--
extra : moz-landing-system : lando
2019-06-07 14:28:47 +00:00
Mike Conley
cef09f3647 Bug 1505909 - Merge remote and non-remote context menu handlers. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32757

--HG--
extra : moz-landing-system : lando
2019-06-07 14:28:33 +00:00
Bogdan Tara
4da63aeb53 Backed out 6 changesets (bug 1505909) for bc failures complaining about WebNavigationChild and browser_e10s_about_page_triggeringprincipal.js CLOSED TREE
Backed out changeset 56449fd37aee (bug 1505909)
Backed out changeset 3ff09b79821c (bug 1505909)
Backed out changeset a1a2a9efe22f (bug 1505909)
Backed out changeset 8aeb77291207 (bug 1505909)
Backed out changeset 4aa17e28ee54 (bug 1505909)
Backed out changeset dbe6803d979e (bug 1505909)
2019-06-07 06:15:16 +03:00
Mike Conley
261632c77d Bug 1505909 - Make basic context menu actions Fission-compatible. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32876

--HG--
extra : moz-landing-system : lando
2019-06-06 20:32:50 +00:00
Mike Conley
3d1ba6b08c Bug 1505909 - Stop sending a CPOW for the target element for context menu messages. r=MattN
This introduces a new toolkit module, ContentDOMReference, which can generate identifiers
for DOM elements that can be safely passed across the process boundary without having to
use the CPOW infrastructure.

The Password Manager code seemed to be the only thing using the original CPOW, so this
has been updated to use the ContentDOMReference identifier instead.

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

--HG--
extra : moz-landing-system : lando
2019-06-06 20:32:30 +00:00
Mike Conley
014fa7a924 Bug 1505909 - Merge remote and non-remote context menu handlers. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32757

--HG--
extra : moz-landing-system : lando
2019-06-06 20:32:11 +00:00
Thomas Nguyen
01ff0bf93f Bug 1534681 Use ReferrerInfo class in document r=ckerschb,baku,Gijs
Also, in many place, we use document uri as referrer. It is not right
for the case srdoc iframe. We should use the last non-srdoc parent
document's uri

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

--HG--
rename : testing/web-platform/tests/referrer-policy/generic/iframe-inheritance.html => testing/web-platform/tests/referrer-policy/generic/inheritance/iframe-inheritance-data.html
rename : testing/web-platform/tests/referrer-policy/generic/iframe-inheritance.html => testing/web-platform/tests/referrer-policy/generic/inheritance/iframe-inheritance-srcdoc.html
extra : moz-landing-system : lando
2019-06-06 07:23:37 +00:00
Sam Foster
2aa0106cdc Bug 1543499 - Record telemetry event when opening the password management UI. r=MattN
* Remove the PWMGR_MANAGE_OPENED histogram and references to it
* Add a new pwmgr event category, open_management method and objects for each of the entry points
* Expect an entryPoint key to be passed to LoginHelper.openPasswordManager so it can record the event
* Update all callers of LoginHelper.openPasswordManager to pass the correct entryPoint key
* Record the event in preferences when we open the password management UI as a subdialog
* Add test assertions to confirm the telemetry events are recorded, piggybacking on existing tests where practical to avoid duplicating helpers and boilerplate

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

--HG--
extra : moz-landing-system : lando
2019-05-15 23:24:28 +00:00
Thomas Nguyen
23f12685bd Bug 1532318 - Part 3 : update js code related to the change of nsIHttpChannel r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D22787

--HG--
extra : moz-landing-system : lando
2019-05-02 12:34:06 +00:00
Mike Conley
4854def475 Bug 1545168 - Picture-in-Picture context menu item should be disabled on broken videos. r=jaws
For videos that break after alreading being in Picture-in-Picture, we keep the toggle enabled so
that the user can exit Picture-in-Picture.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 03:26:14 +00:00