Commit graph

786 commits

Author SHA1 Message Date
Greg Tatum
3bd6018cb4 Bug 1759504 - Prototype a menu button click demo for text recognition r=fluent-reviewers,emilio,nordzilla,flod
Co-Authored-By: Emilio Cobos Álvarez <emilio@crisal.io>
Co-Authored-By: Greg Tatum <tatum.creative@gmail.com>

Depends on D140874

Differential Revision: https://phabricator.services.mozilla.com/D140875
2022-06-02 14:31:41 +00:00
Niklas Baumgardner
1ec54ee02b Bug 1770390 - Check if take screenshot should show on frame. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D147545
2022-06-02 14:30:31 +00:00
Calixte
93528759ed Bug 1766030 - Add an optional source URL when saving an URL. r=Gijs
In pdf.js, files are saved thanks to a blob but the original URL is lost.
Consequently, the download panel doesn't contain any information about the
origins of a saved pdf.
The saveURL, internalSave and nsITransfer.init functions has now a parameter for this originalURL.

Differential Revision: https://phabricator.services.mozilla.com/D147651
2022-05-31 17:25:29 +00:00
Scott
fc018ca0e8 Bug 1538464 - Ensure Pocket context menu items work as expected in sidebar extension or other windows. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D143539
2022-04-20 13:22:38 +00:00
gliu20
511747128f Bug 875614 - Add context menu entry for tel: links. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D141289
2022-03-24 11:32:30 +00:00
Sergey Galich
2924bdb35f Bug 1653486 - Replace all non-user-facing references to "master" password. r=dimi,tgiles,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D138113
2022-02-17 17:29:57 +00:00
Emilio Cobos Álvarez
ab63e715e1 Bug 1753836 - Fix context menus to deal with Event.screen* returning page CSS coordinates. r=Gijs
If the page is zoomed, its devicePixelRatio will differ from the browser
chrome's. Account for this by converting to device pixels before starting to
scroll.

Depends on D138036

Differential Revision: https://phabricator.services.mozilla.com/D138037
2022-02-16 12:18:11 +00:00
smolnar
33c038ec0d Backed out 6 changesets (bug 1753836) for causing mochitest failures in test_event_screenXY_with_zoom. CLOSED TREE
Backed out changeset a572cbc0fac2 (bug 1753836)
Backed out changeset 371a495ff728 (bug 1753836)
Backed out changeset 774af76be463 (bug 1753836)
Backed out changeset faa8a8f2d40f (bug 1753836)
Backed out changeset 9209832ecffe (bug 1753836)
Backed out changeset db443ce0406d (bug 1753836)
2022-02-16 01:47:51 +02:00
Emilio Cobos Álvarez
9b5b35c3f1 Bug 1753836 - Fix context menus to deal with Event.screen* returning page CSS coordinates. r=Gijs
If the page is zoomed, its devicePixelRatio will differ from the browser
chrome's. Account for this by converting to device pixels before starting to
scroll.

Depends on D138036

Differential Revision: https://phabricator.services.mozilla.com/D138037
2022-02-15 22:25:04 +00:00
Emilio Cobos Álvarez
45784a7335 Bug 1743047 - Split reveal-password and button and context-menu prefs. r=Gijs
The reveal password button might or might not be web-compatible, but it
might be worth having a separate pref for the context-menu entry.

Depends on D136086

Differential Revision: https://phabricator.services.mozilla.com/D136087
2022-01-17 14:18:52 +00:00
Emilio Cobos Álvarez
8ce808ebbd Bug 1743047 - Use "reveal" rather than show terminology consistently for the reveal password button. r=Gijs,fluent-reviewers
The pseudo-class and nsContextMenu context attribute were using reveal,
the pseudo-element and webidl attribute were using "show".

Use reveal consistently and update the accesskey so that there aren't
conflicts with existing commands. Also enable the feature in
browser_contextmenu_input.js so that this change is tested.

Differential Revision: https://phabricator.services.mozilla.com/D136086
2022-01-17 14:18:51 +00:00
Rob Wu
825d308bd0 Bug 1746494 - Account for invalid linkUrls in context menus r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D134918
2022-01-03 13:10:23 +00:00
Emilio Cobos Álvarez
2dca36cb25 Bug 502258 - Add a Show Password button to <input type=password> controls. r=Gijs
It's controlled by the pref:
layout.forms.input-type-show-password-button.enabled

Differential Revision: https://phabricator.services.mozilla.com/D130407
2021-11-25 20:12:05 +00:00
Rob Wu
a653b67cdd Bug 1659155 - Use pre-redirect URL as srcUrl in contextMenus API r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D127786
2021-10-07 10:34:24 +00:00
Emma Malysz
08da538533 Bug 1725430: disable screenshot shortcut for extension when screenshots.browser.component.enabled is true. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D125850
2021-09-28 20:01:35 +00:00
criss
c036c2f5c2 Backed out changeset ec019c0205a9 (bug 1725430) for causing failures on dbg-toggling-tools.js 2021-09-28 00:42:30 +03:00
Emma Malysz
53a01f5fb9 Bug 1725430: disable screenshot shortcut for extension when screenshots.browser.component.enabled is true. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D125850
2021-09-27 17:30:35 +00:00
Dão Gottwald
a1585362ad Bug 1719203 - Let "Copy Image Link" use the original URL before redirects. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D125849
2021-09-22 16:54:53 +00:00
Narcis Beleuzu
033a7edbff Backed out changeset ceaaed353b66 (bug 1725430) for assertion failure on ErrorResult.h . CLOSED TREE 2021-09-22 01:09:22 +03:00
Emma Malysz
6fede10fc1 Bug 1725430: disable screenshot shortcut for extension when screenshots.browser.component.enabled is true. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D125850
2021-09-21 20:37:48 +00:00
Makoto Kato
390a066dd0 Bug 1725599 - Fix typo of member value by bug 1719110. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D124057
2021-09-06 01:10:25 +00:00
Niklas Baumgardner
99f9824eef Bug 1635548 - Migrated browser-context.inc to Fluent. r=emalysz,flod
Differential Revision: https://phabricator.services.mozilla.com/D123233
2021-08-24 19:48:32 +00:00
Csoregi Natalia
39a0f07a9d Backed out changeset 4d19ea5594d2 (bug 1635548) for assertion failures on ErrorResult.h. CLOSED TREE 2021-08-23 22:26:31 +03:00
Niklas Baumgardner
78f3c52e0b Bug 1635548 - Migrated browser-context.inc to Fluent. r=emalysz,flod
Differential Revision: https://phabricator.services.mozilla.com/D123233
2021-08-23 18:46:11 +00:00
Makoto Kato
49cc605308 Bug 1719110 - Don't use sync IPC to show suggestion by spellchecker. r=Gijs
CheckCurrentWord on content process causes sync IPC, so I would like to remove
this call on content process. New nsIEditorSpellChecker.suggest method can
avoid it.

Differential Revision: https://phabricator.services.mozilla.com/D119937
2021-08-10 03:55:25 +00:00
Kajal Sah
2bf658dd41 Bug 1718713 - Creates dummy custom element in new screenshot. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D119209
2021-07-19 16:47:34 +00:00
Sandor Molnar
e1f7148a90 Backed out 2 changesets (bug 1717486, bug 1718713) for causng eslint failures. CLOSED TREE
Backed out changeset 57c50b132961 (bug 1718713)
Backed out changeset 00b064dbf950 (bug 1717486)
2021-07-15 22:07:54 +03:00
Kajal Sah
ddbe972bac Bug 1718713 - Creates dummy custom element in new screenshot. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D119209
2021-07-15 18:40:43 +00:00
Kajal Sah
2549c209de Bug 1718269 Renamed event that opens screenshots UI from the extension.r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D118855
2021-06-30 03:35:40 +00:00
Kajal Sah
371a34a387 Bug 1715838 - Creates preference for new screenshot components. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D117654
2021-06-21 15:07:47 +00:00
Dimi Lee
bb8bb066b1 Bug 1708455 - P3. Support showing password manager items in context menu for username fields that are in a username-only form. r=sfoster,tgiles
Before the patch, we don't show password manager items when there is no password fields found in a form.

In this patch, we do two things to support a username-only form in the context menu:
1. Add "other" category to fieldname hints. "other" is used for fields that are
   in a form but are neither "current-password", "new-password", nor "username".
   With the change, the "username" hint is now only used for fields that are considered a username field by the password manager.

2. When there is no password field in a form, ContextMenu also treat a
   form as a login form when the active field is a username field, which means it is a username-only form.

Depends on D113796

Differential Revision: https://phabricator.services.mozilla.com/D113797
2021-06-11 11:56:02 +00:00
Gijs Kruitbosch
84a607d2f1 Bug 1706487 - honour browser.tabs.loadInBackground for 'Open Image/Video/Audio in New Tab', r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D115545
2021-05-21 17:58:05 +00:00
Alexandru Michis
570499486c Backed out changeset 3ef9ef49563a (bug 1706487) for causing bc failures in browser_bug734076.js
CLOSED TREE
2021-05-21 15:11:49 +03:00
Gijs Kruitbosch
95c4984de5 Bug 1706487 - honour browser.tabs.loadInBackground for 'Open Image/Video/Audio in New Tab', r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D115545
2021-05-21 10:13:47 +00:00
Ava Katushka
78e863a680 Bug 789550 - Avoid using document title while saving data URIs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D111857
2021-04-22 16:14:02 +00:00
Noemi Erli
830e82b14c Backed out changeset 714e6e7b8eef (bug 789550) for causing failures in browser_default_audio_filename.js CLOSED TREE 2021-04-21 01:17:20 +03:00
Ava Katushka
cf9b398613 Bug 789550 - Avoid using document title while saving data URIs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D111857
2021-04-20 21:34:41 +00:00
Anshul Sahai
0e2b21dd0b Bug 1702013 - Re-introduce "view image info" in the image context menu in an about:config pref and enable that pref by default in devedition. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D111931
2021-04-15 16:00:01 +00:00
Emilio Cobos Álvarez
3e0cb7c68b Bug 1703289 - Make mixed content blocker use a session-persistent permission rather than ad-hoc code. r=ckerschb,smaug
This is more fission-compatible, and a lot simpler.

Differential Revision: https://phabricator.services.mozilla.com/D111480
2021-04-12 18:04:12 +00:00
David Parks
b399e44146 Bug 1682030 - Remove NPAPI overlay from JS Plugin actors r=Gijs
Removes NPAPI support from JS plugin actors, most of which was CTP-and-fallback overlay related, leaving them to only do GMP crash handling.

Differential Revision: https://phabricator.services.mozilla.com/D107157
2021-04-06 19:28:18 +00:00
Michael Kohler
6a65e369eb Bug 1700984 - Remove excessive separators in Page context menu r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D110859
2021-04-06 15:50:07 +00:00
Csoregi Natalia
d68661e2cc Backed out 24 changesets (bug 1682030) for bustage on ProcessHangMonitor.cpp and nsCOMPtr.h. CLOSED TREE
Backed out changeset 5b1644096477 (bug 1682030)
Backed out changeset 35ae60eea3c7 (bug 1682030)
Backed out changeset 3eca76a6d639 (bug 1682030)
Backed out changeset 259c45447ad9 (bug 1682030)
Backed out changeset de9222dc8c31 (bug 1682030)
Backed out changeset 2986c7e14349 (bug 1682030)
Backed out changeset 6af3410bdb93 (bug 1682030)
Backed out changeset 42b0621c2927 (bug 1682030)
Backed out changeset 366e3e371858 (bug 1682030)
Backed out changeset 9adb2865adea (bug 1682030)
Backed out changeset 6af6af3bc03a (bug 1682030)
Backed out changeset da94a91b35ae (bug 1682030)
Backed out changeset 9143da258d0e (bug 1682030)
Backed out changeset 5e20d06952ba (bug 1682030)
Backed out changeset 6253d7e1ce7d (bug 1682030)
Backed out changeset 0e06ddeea3e2 (bug 1682030)
Backed out changeset 9c58d57c9e44 (bug 1682030)
Backed out changeset e90edd89430e (bug 1682030)
Backed out changeset 5861b8166b10 (bug 1682030)
Backed out changeset b4b88cdc7993 (bug 1682030)
Backed out changeset b80054e9805c (bug 1682030)
Backed out changeset 580d857674c0 (bug 1682030)
Backed out changeset a9cdf93c2662 (bug 1682030)
Backed out changeset 9c9c8b4998e2 (bug 1682030)
2021-04-06 03:54:12 +03:00
David Parks
f7c49caeef Bug 1682030 - Remove NPAPI overlay from JS Plugin actors r=Gijs
Removes NPAPI support from JS plugin actors, most of which was CTP-and-fallback overlay related, leaving them to only do GMP crash handling.

Differential Revision: https://phabricator.services.mozilla.com/D107157
2021-04-05 23:48:42 +00:00
Markus Stange
a58afe49df Bug 1701108 - Create synthesized contextmenu event with button 2 ("eSecondary") to keep assertions happy. r=Gijs
We have a warning assertion that wants all contextmenu events to have button 2,
or be marked as a ctrl-click or triggered by the contextmenu keyboard key.
Fixing this avoids a warning in debug builds but is otherwise inconsequential.

Depends on D109825

Differential Revision: https://phabricator.services.mozilla.com/D109826
2021-03-26 02:06:53 +00:00
Jared Wein
7ba3580f2e Bug 1692669 - Replace icon group navigation on macOS page context menu with 'normal' menuitems. r=flod,mconley
Differential Revision: https://phabricator.services.mozilla.com/D108475
2021-03-22 14:43:32 +00:00
Emma Malysz
030b47279a Bug 1691464, remove screenshot feature from page action panel and move to dedicated widget r=fluent-reviewers,sfoster,flod
The widget is only added if screenshots are enabled (similar behavior to the fxa
toolbar button).
Button must take into account onLocationChange due to the fact that screenshots
extension is not available on about pages.
Adds a test for the disabled state, with more screenshot tests intended in the future

Differential Revision: https://phabricator.services.mozilla.com/D107727
2021-03-17 20:19:23 +00:00
Sam Foster
6ba985b5a8 Bug 1690567 - Hide some sync context menu items when not signed in. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D104746
2021-03-17 04:22:50 +00:00
Erica Wright
d8f60239ef Bug 1692666 - Move 'Search... for...' to a dedicated section. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D107255
2021-03-11 21:26:15 +00:00
Neil Deakin
37cd19a3dc Bug 1690030, change view image on context menu to default to open in a new tab, r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107336
2021-03-11 19:54:41 +00:00
Emma Malysz
4e362f6459 Bug 1690585, replace screenshot context menu item r=Gijs,fluent-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D106871
2021-03-10 16:12:02 +00:00
prathikshaprasadsuman
a0e4f2ba3c Bug 1692329 - Remove (No login suggestions) context menu item and hide the use saved login item where there are no matching saved logins. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106961
2021-03-09 14:56:59 +00:00
prathikshaprasadsuman
33e26d9b2c Bug 1692333 - Re-label password manager related context menu items. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106608
2021-03-09 10:10:53 +00:00
Neil Deakin
af1fcf5634 Bug 1686931, merge view image and view background image commands on context menu, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103775
2021-03-04 08:50:30 +00:00
Neil Deakin
0a6f2c6e96 Bug 1691860, move code that hides separators in the content area context menu into a single place that just hides duplicates, r=Gijs,robwu
Differential Revision: https://phabricator.services.mozilla.com/D104615
2021-03-04 00:16:16 +00:00
prathiksha
3a5b3ae9ff Bug 1692322 - Move view saved logins context menu item to the top level and rename to manage logins. r=sfoster,fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106470
2021-03-03 11:53:51 +00:00
Emilio Cobos Álvarez
915f02d25c Bug 1694951 - Remove printing.trigger telemetry. r=jwatt,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106465
2021-03-01 11:36:43 +00:00
Gijs Kruitbosch
109ba19200 Bug 1686929 - only show the inspect a11y properties menuitem for devtools users, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D105086
2021-03-01 10:28:01 +00:00
Michelle Goossens
0dcdff469a Bug 1692339 - Add a "Redo" option underneath "Undo" in context menu for form fields r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D106565
2021-02-27 01:19:38 +00:00
Butkovits Atila
961b11bc3b Backed out changeset a2091ee84e0e (bug 1692339) for causing failures at browser_contextmenu_keyword.js. CLOSED TREE 2021-02-27 01:23:52 +02:00
Michelle Goossens
78395cc0e6 Bug 1692339 - Add a "Redo" option underneath "Undo" in context menu for form fields r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D106565
2021-02-26 20:04:29 +00:00
Jared Wein
8f326f38b5 Bug 1692330 - Hide the 'Add a keyword for this search' when inside of a login form. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106314
2021-02-25 12:15:23 +00:00
Michelle Goossens
46dd0460da Bug 1692670 - Remove separator between delete and "select all" in the content context menu r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D105992
2021-02-24 17:54:03 +00:00
Michelle Goossens
23fb719f61 Bug 1692553 - Remove "View page info" from page context menu r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D105987
2021-02-23 16:09:43 +00:00
Kagami Sascha Rosylight
3e3b0dc948 Bug 1691755 - Move view-source context menu items to nsContextMenu r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D104956
2021-02-16 15:42:48 +00:00
Narcis Beleuzu
9a0c3c6009 Backed out changeset b472dea7eb0c (bug 1691755) for bc failures on browser_viewsourceprefs.js . CLOSED TREE 2021-02-16 13:53:17 +02:00
Kagami Sascha Rosylight
104874c6e2 Bug 1691755 - Move view-source context menu items to nsContextMenu r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D104956
2021-02-16 09:49:32 +00:00
james
16060f0cc4 Bug 1691274 - Use DOM hidden property methods instead of attribute methods in browser/ directory. r=ntim,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D104552
2021-02-13 23:33:51 +00:00
Narcis Beleuzu
ed6880e281 Backed out changeset b3fcb4fcea64 (bug 1691274) for bc failures on browser_pointerlock_warning.js . CLOSED TREE 2021-02-13 21:46:51 +02:00
james
8069ab6165 Bug 1691274 - Use DOM hidden property methods instead of attribute methods in browser/ directory. r=ntim,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D104552
2021-02-13 18:11:18 +00:00
Mihai Alexandru Michis
0a98aa9782 Backed out changeset d8095eaef5dc (bug 1691755) for causing bc failures in browser_viewsourceprefs.js
CLOSED TREE
2021-02-12 21:19:56 +02:00
Kagami Sascha Rosylight
b97e032178 Bug 1691755 - Move view-source context menu items to nsContextMenu r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D104956
2021-02-12 18:31:47 +00:00
Neil Deakin
12b53e11e9 Bug 1690029, move image related context menu commands into a single section and remove view image info command, r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D103774
2021-02-03 17:56:25 +00:00
Chris Peterson
e25d5cd7d9 Bug 1685779 - Add Alt/Command + Left Arrow keyboard shortcut to Back button tooltip. r=Gijs,masayuki,fluent-reviewers,flod
We disabled Backspace as a keyboard shortcut to go back one page (bug 1041377). We can use the Back and Forward buttons' tooltips to advertise the other shortcuts users can use instead of Backspace (like we do on the Reload button's tooltip).

Differential Revision: https://phabricator.services.mozilla.com/D102053
2021-02-01 06:44:45 +00:00
Csoregi Natalia
a7cb602561 Backed out changeset 73c1995ff098 (bug 1685779) for failures on browser_ext_menus_replace_menu.js. CLOSED TREE 2021-01-31 00:57:04 +02:00
Chris Peterson
119f424dc2 Bug 1685779 - Add Alt/Command + Left Arrow keyboard shortcut to Back button tooltip. r=Gijs,masayuki,fluent-reviewers,flod
We disabled Backspace as a keyboard shortcut to go back one page (bug 1041377). We can use the Back and Forward buttons' tooltips to advertise the other shortcuts users can use instead of Backspace (like we do on the Reload button's tooltip).

Differential Revision: https://phabricator.services.mozilla.com/D102053
2021-01-29 14:50:44 +00:00
Kris Maglione
86cc746c76 Bug 1685801: Part 9 - Move BrowserUtils.getSelectionDetails to a separate module. r=mccr8
It won't ever be used in most content processes.

Differential Revision: https://phabricator.services.mozilla.com/D101489
2021-01-28 20:58:36 +00:00
Mihai Alexandru Michis
040e2ea5d0 Backed out 12 changesets (bug 1685801) for causing bc failures in browser_ctrlTab.js
CLOSED TREE

Backed out changeset 021924b62f13 (bug 1685801)
Backed out changeset 38cc10101c1f (bug 1685801)
Backed out changeset 9ab9574ac72a (bug 1685801)
Backed out changeset 1a7f259cc2ec (bug 1685801)
Backed out changeset b267b19a7f6e (bug 1685801)
Backed out changeset 7dfcf0257487 (bug 1685801)
Backed out changeset ee0d0169b079 (bug 1685801)
Backed out changeset 0c358ee51951 (bug 1685801)
Backed out changeset 338ab91af557 (bug 1685801)
Backed out changeset a49415007aaf (bug 1685801)
Backed out changeset b91098299143 (bug 1685801)
Backed out changeset edf6209861a8 (bug 1685801)
2021-01-28 22:55:11 +02:00
Kris Maglione
61f953a36b Bug 1685801: Part 9 - Move BrowserUtils.getSelectionDetails to a separate module. r=mccr8
It won't ever be used in most content processes.

Differential Revision: https://phabricator.services.mozilla.com/D101489
2021-01-28 05:24:56 +00:00
Butkovits Atila
7decdccbdc Backed out 12 changesets (bug 1685801) for causing failures on browser_fission_maxOrigins.js. CLOSED TREE
Backed out changeset 0d7153110519 (bug 1685801)
Backed out changeset 5175062925c7 (bug 1685801)
Backed out changeset 2c1250e786f0 (bug 1685801)
Backed out changeset 0ce3c773ba74 (bug 1685801)
Backed out changeset 9d51c6e24dee (bug 1685801)
Backed out changeset 3f4dc6349441 (bug 1685801)
Backed out changeset a80de9abb9f8 (bug 1685801)
Backed out changeset 30786893a5e7 (bug 1685801)
Backed out changeset 8007b12d6e32 (bug 1685801)
Backed out changeset fa814f4b7125 (bug 1685801)
Backed out changeset 14e4e47ee99f (bug 1685801)
Backed out changeset d9f1feba9454 (bug 1685801)
2021-01-28 07:15:59 +02:00
Kris Maglione
6a91fbec71 Bug 1685801: Part 9 - Move BrowserUtils.getSelectionDetails to a separate module. r=mccr8
It won't ever be used in most content processes.

Differential Revision: https://phabricator.services.mozilla.com/D101489
2021-01-28 03:32:56 +00:00
Oliver Pope
8e6cb89585 Bug 1626600 - added check for readyState in nsContextMenu to see if PiP should display r=mtigley,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D102864
2021-01-24 15:32:16 +00:00
Emma Malysz
c04c6333bc Bug 1685184, print selected frame when selecting Print Frame from context menu r=marionette-reviewers,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D100842
2021-01-07 19:34:56 +00:00
Masatoshi Kimura
ef26928389 Bug 1681642 - Improve error messages when extensions blocked downloads. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D99592
2020-12-12 21:28:13 +00:00
Michael Kaply
6197f4c30c Bug 1680095 - Block Save Link As if site is blocked by policy. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D98527
2020-12-07 16:37:12 +00:00
Tim Huang
9fadef5261 Bug 1679325 - Part 1: Making contentAreaUtils.saveURL to accept cookieJarSettings. r=smaug
This patch makes the contentAreaUtils.saveURL to be aware of the
cookieJarSettings, and updates all callers.

This also updates the documentation of the persistArgs
'cookieJarSettings' for internalPersist().

Differential Revision: https://phabricator.services.mozilla.com/D98455
2020-12-03 20:10:36 +00:00
Emilio Cobos Álvarez
472511bebf Bug 1679050 - Backed out changeset 73181c2aa309 (bug 1455479) for having too many false positives. r=backout,a=NarcisB
MANUAL PUSH: Backout on a CLOSED TREE
2020-11-25 00:41:59 +01:00
Emilio Cobos Álvarez
e69e249773 Bug 1455479 - Show paste context menu item when there are paste event listeners. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D97751
2020-11-21 16:22:42 +00:00
Tim Huang
7ec26df273 Bug 1641270 - Part 6: Pass CookieJarSettings to nsIWebBrowserPersist.saveURI() and nsIWebBrowserPersist.savePrivacyAwareURI(). r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D95616
2020-11-11 18:19:27 +00:00
Tim Huang
c342ff2008 Bug 1641270 - Part 5: Send cookieJarSettings across processes for ContextMenu. r=smaug
This patch makes the ContextMenu to send cookieJarSettings from content
to the parent process via ContextMenuChild/Parent. The cookieJarSettings
will be used in 'Save ... As'.

Differential Revision: https://phabricator.services.mozilla.com/D95615
2020-11-11 11:14:09 +00:00
Mihai Alexandru Michis
4038013e6f Backed out 9 changesets (bug 1641270) for causing dt failures in browser_jsonview_save_json.js
CLOSED TREE

Backed out changeset 89a6dab92f1a (bug 1641270)
Backed out changeset 5f9c5af66b77 (bug 1641270)
Backed out changeset dfeb879f4131 (bug 1641270)
Backed out changeset 143728b1b1ab (bug 1641270)
Backed out changeset 265ae2953416 (bug 1641270)
Backed out changeset 55ea7810c160 (bug 1641270)
Backed out changeset 7bef9112f296 (bug 1641270)
Backed out changeset 2663dc1e9a3e (bug 1641270)
Backed out changeset fcba6dba3649 (bug 1641270)
2020-11-11 13:10:11 +02:00
Tim Huang
29e828489a Bug 1641270 - Part 6: Pass CookieJarSettings to nsIWebBrowserPersist.saveURI() and nsIWebBrowserPersist.savePrivacyAwareURI(). r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D95616
2020-11-10 20:43:03 +00:00
Tim Huang
7a39439a68 Bug 1641270 - Part 5: Send cookieJarSettings across processes for ContextMenu. r=smaug
This patch makes the ContextMenu to send cookieJarSettings from content
to the parent process via ContextMenuChild/Parent. The cookieJarSettings
will be used in 'Save ... As'.

Differential Revision: https://phabricator.services.mozilla.com/D95615
2020-11-10 11:47:47 +00:00
Emilio Cobos Álvarez
9c21cb2c0d Bug 1672864 - Don't show the "print selection" context menu items when the focused selection is in a textarea / input. r=emalysz
This is a band-aid for now, because I don't know how to best deal with
it.

Probably we should just print the plaintext selection contents,
unstyled, though that's a totally different codepath than what we do for
regular document selection, so probably deserves its own bug. Meanwhile,
this should prevent easy printing failures.

View-selection-source also doesn't deal with it properly so do the same
there too for now.

Differential Revision: https://phabricator.services.mozilla.com/D94595
2020-10-24 11:46:43 +00:00
Emilio Cobos Álvarez
4e68e78542 Bug 1669925 - Add a printing.trigger keyed scalar to record what triggers a particular print dialog. r=jwatt,marionette-reviewers,maja_zf
In order to avoid over/under-counting, we need to treat window.print()
specially. The new UI was using aOpenWindowInfo.isForPrintPreview for
that, but that doesn't quite work for the old UI (because it will
trigger a regular print, not a preview).

But since isForPrintPreview was only really needed to distinguish
window.print(), just rename it and set it to true when the old UI is
triggered by window.print() as well.

Differential Revision: https://phabricator.services.mozilla.com/D92925
2020-10-09 14:59:46 +00:00
Reid Shinabarker
5a3e382de8 Bug 1653496 - Picture-in-Picture option not shown for VideoHTMLElement with VideoTrack from Twilio. r=mconley,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D91544
2020-10-09 10:52:18 +00:00
Emilio Cobos Álvarez
4b4935794b Bug 140718 - Add a "Print selection only" entry to the context menu. r=Gijs,jwatt,fluent-reviewers
This allows to use the feature from the context menu and is very
straight-forward.

This has the benefit of working with fission (as print from the focused
frame) and so on.

Making a checkbox on the UI on top of this is doable, but it is a lot
more complex (requires a bunch of both front-end and platform work)
because undoing this implies restoring the DOM which "print selection"
removes.

I think the context menu entry is very useful regardless of whether we
add a checkbox to undo it, and other browsers (with smaller context
menus) seem to agree.

Differential Revision: https://phabricator.services.mozilla.com/D92205
2020-10-07 20:45:08 +00:00
Narcis Beleuzu
93313c434d Backed out changeset 3722e6ee6ebd (bug 1653496) for bc failures on browser_mediaStreamVideos.js . CLOSED TREE 2020-10-06 00:05:00 +03:00
Reid Shinabarker
917e456342 Bug 1653496 - Picture-in-Picture option not shown for VideoHTMLElement with VideoTrack from Twilio. r=mconley,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D91544
2020-10-05 18:26:35 +00:00
Mark Banner
fcf7b37638 Bug 1567275 - Don't display the search related context items if the search service is not initialized yet. r=daleharvey.
This also moves gInitialised into SearchService, as it no longer needs to be separate, and it makes changing it for tests easier.

Depends on D88462

Differential Revision: https://phabricator.services.mozilla.com/D88622
2020-09-11 15:54:50 +00:00
Brendan Dahl
0d0bffa160 Bug 1661131 - Hide fill login context menu for PDF forms. r=Gijs
Having the fill logins context menu on PDF forms could lead to users
accidentally entering their login information into to a PDF form which
is probably not a desired or expected behavior.

Differential Revision: https://phabricator.services.mozilla.com/D88198
2020-08-26 21:21:20 +00:00