Commit Graph

585 Commits

Author SHA1 Message Date
Michael Kaply
e45d30657d Bug 158968 - Implement kiosk mode. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D41848
2019-10-04 19:47:56 +00:00
monikamaheshwari
edb30ffaec Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45629
2019-09-14 09:39:26 +00:00
Emma Malysz
0f77267a12 Bug 1569738, make PageInfo fission compatible r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D42978
2019-08-29 20:31:19 +00:00
Thomas Nguyen
8e749464d6 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
2019-08-30 18:38:38 +00:00
Mark Banner
cd474a61e5 Bug 1562929 - Use the default private search engine in the context menu. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D43771
2019-08-29 14:43:43 +00:00
Sam Foster
f20a6fca78 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
2019-08-21 22:01:26 +00:00
Matthew Noorenberghe
a252f33a45 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
2019-07-31 19:21:52 +00:00
Matthew Noorenberghe
2673e1cf10 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
2019-07-31 04:36:39 +00:00
Gijs Kruitbosch
d2756288b0 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
2019-07-23 22:04:40 +00:00
Tim Nguyen
242fc0b873 Bug 1566533 - Disable generated passwords feature on private windows. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D38235
2019-07-21 22:17:19 +00:00
Thomas Nguyen
ee02fbe71a 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
2019-07-16 17:59:28 +00:00
Gijs Kruitbosch
2dff81ee69 Bug 1417238 - hide 'open link in container' menu when there are no containers, r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D37439
2019-07-09 16:20:06 +00:00
Victor Porof
a3641f184a Bug 1561435 - Format browser/base/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36041
2019-07-05 09:48:57 +02:00
Sam Foster
4a4e649f93 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
2019-06-28 22:03:57 +00:00
Abdoulaye O. Ly
db0dedb958 Bug 1559234 - Add frame process ID to 'This Frame' submenu in context-menu. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D35673
2019-06-26 16:33:57 +00:00
Ehsan Akhgari
5f57b1b6e4 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
2019-06-12 23:05:36 +00:00
Gurzau Raul
ae3b8b1e09 Merge inbound to mozilla-central. a=merge 2019-06-12 00:34:32 +03:00
Neil Deakin
c1eb92539d Bug 1533948, change BrowserTabChild to inherit from JSWindowActor, r=mconley 2019-06-11 09:05:33 -04:00
Boris Zbarsky
95de682140 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196
2019-06-11 15:51:51 +00:00
Mike Conley
93bbd7c5a8 Bug 1505909 - Make basic context menu actions Fission-compatible. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32876
2019-06-08 01:09:46 +00:00
Mike Conley
2ab5e28dc4 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
2019-06-08 01:09:29 +00:00
Mike Conley
890b11ac87 Bug 1505909 - Merge remote and non-remote context menu handlers. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32757
2019-06-08 01:09:10 +00:00
Noemi Erli
7401f1586b 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
b59d1d89cb Bug 1505909 - Make basic context menu actions Fission-compatible. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32876
2019-06-07 14:28:59 +00:00
Mike Conley
9ce5056eb1 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
2019-06-07 14:28:47 +00:00
Mike Conley
32a0246427 Bug 1505909 - Merge remote and non-remote context menu handlers. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32757
2019-06-07 14:28:33 +00:00
Bogdan Tara
ea3799bc30 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
a992b9f621 Bug 1505909 - Make basic context menu actions Fission-compatible. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32876
2019-06-06 20:32:50 +00:00
Mike Conley
eb2f920ba4 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
2019-06-06 20:32:30 +00:00
Mike Conley
f532c80744 Bug 1505909 - Merge remote and non-remote context menu handlers. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32757
2019-06-06 20:32:11 +00:00
Thomas Nguyen
5a46d126ce 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
2019-06-06 07:23:37 +00:00
Sam Foster
3f524f76dc 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
2019-05-15 23:24:28 +00:00
Thomas Nguyen
0e2522567c Bug 1532318 - Part 3 : update js code related to the change of nsIHttpChannel r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D22787
2019-05-02 12:34:06 +00:00
Mike Conley
714b9e8be6 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
2019-04-18 03:26:14 +00:00
Gurzau Raul
d21d19f78d Backed out 4 changesets (bug 1527925, bug 1545168, bug 1539567) for failing at /actions/test_media.html on a CLOSED TREE.
Backed out changeset a55e5c83e32e (bug 1527925)
Backed out changeset 45d19d0692b2 (bug 1539567)
Backed out changeset d418d95454eb (bug 1527925)
Backed out changeset a37009048470 (bug 1545168)
2019-04-18 05:09:03 +03:00
Mike Conley
63c3beb760 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
2019-04-17 19:25:28 +00:00
Christoph Kerschbaumer
2ccc12bb79 Bug 1524970: Update more frontend code to explicitly pass a csp. r=Gijs,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D24959
2019-03-27 16:38:01 +00:00
Mike Conley
6b55acf78b Bug 1535748 - Remove NIGHTLY_BUILD build-time switches for Picture-in-Picture. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D23948
2019-03-21 13:58:17 +00:00
Mike Conley
e1861e9502 Bug 1535760 - Update strings and controls for toggling Picture-in-Picture from the context menu. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D23947
2019-03-21 13:58:05 +00:00
Brindusan Cristian
917cc42234 Backed out 2 changesets (bug 1535760, bug 1535748) for ESlint failure at browser_contextMenu.js:66:11. CLOSED TREE
Backed out changeset 8ab3c856b9c2 (bug 1535748)
Backed out changeset a9a01b1c9e3a (bug 1535760)
2019-03-21 04:35:52 +02:00
Mike Conley
c0ecfee7d5 Bug 1535748 - Remove NIGHTLY_BUILD build-time switches for Picture-in-Picture. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D23948
2019-03-20 21:24:15 +00:00
Mike Conley
efa687c2d9 Bug 1535760 - Update strings and controls for toggling Picture-in-Picture from the context menu. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D23947
2019-03-20 21:24:37 +00:00
Dhyey Thakore
b1279b35cf Bug 1444133 - Have an option to have view-source open in a separate (browser) window, not separate tab, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D18071
2019-03-19 11:17:18 +00:00
Thomas Nguyen
e5f8eebf98 Bug 1528695 - Part 2 : Use referrerInfo in openWindow, contextmenu and openLinkIn r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21911
2019-03-15 05:10:17 +00:00
Gijs Kruitbosch
3fd33256a0 Bug 1529901 - saving resources behind http auth should work, r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D21842
2019-03-04 15:26:46 +00:00
Jonathan Kingston
8397774fdf Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881
2019-02-27 23:42:27 +00:00
Jonathan Kingston
1d7c7a19d3 Bug 1525319 - Changing js to remove context from onStartRequest and onStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20771
2019-02-27 23:41:54 +00:00
Christoph Kerschbaumer
3dd19b31a3 Bug 1518454: Part 2, frontend changes, add CSP to loadURIOptions dictionary and pass CSP explicitly from frontend to docshell. r=gijs 2019-02-22 09:19:26 +01:00
Matthew Noorenberghe
a1bfb3543b Bug 1304001 - Update comments related to gEnabled/rememberSignons. r=sfoster
Fixes some stales comments and identation.

Differential Revision: https://phabricator.services.mozilla.com/D20392
2019-02-22 15:40:43 +00:00
Bogdan Tara
ac5cadbd8c Backed out 5 changesets (bug 1304001) for dom/html/test/test_bug430351.html failures CLOSED TREE
Backed out changeset 275c3744e059 (bug 1304001)
Backed out changeset c9628639b5e1 (bug 1304001)
Backed out changeset 7d8f97779a35 (bug 1304001)
Backed out changeset a5644de3c2f5 (bug 1304001)
Backed out changeset e23ef4dbbc7f (bug 1304001)
2019-02-22 05:05:56 +02:00