Commit graph

764 commits

Author SHA1 Message Date
Mark Banner
8d1ebcb9d6 Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Alexandre Poirot
6781eae59e Bug 1791832 - [devtools] Convert devtools/startup JSM to ES Modules. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157911
2022-09-26 10:48:05 +00:00
Calixte
b1d93fac78 Bug 1790039 - Update pdf.js to new version a274f63d50ebcd25efe4973283ded17fa1428fd4 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D156975
2022-09-09 19:07:34 +00:00
Greg Tatum
ea43fc0c85 Bug 1783261 - Add telemetry text recognition API timing; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D154893
2022-08-29 13:30:38 +00:00
Mark Banner
ef27351558 Bug 1786899 - Remove unused BrowserSearch.loadAddEngines and remove formatURL. r=jteow,preferences-reviewers
formatURL is only used in one other place - nsContextMenu.js, so we don't really need that when we can call the necessary function direct.

Also moves `searchEnginesURL` into SearchUIUtils, as that seems a reasonable place to start storing things like that.

Differential Revision: https://phabricator.services.mozilla.com/D155496
2022-08-26 07:55:44 +00:00
Greg Tatum
905a369a06 Bug 1782981 - Only show the macOS context menu if it is supported; r=nordzilla
This code path gets executed by existing tests, and I don't believe
there is a way to execute this behavior using our CI, since it's a macOS
version check.

Differential Revision: https://phabricator.services.mozilla.com/D154172
2022-08-17 15:41:12 +00:00
Daisuke Akatsuka
8d5f46c77b Bug 1784242: Make opening in new tab by context menu on tile target for inheritance of sponsored session. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D154487
2022-08-16 04:38:46 +00:00
Daisuke Akatsuka
9a83490432 Bug 1784369: Make opening in new window target for inheritance of sponsored sessions. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D154483
2022-08-16 00:41:01 +00:00
Norisz Fay
b1df28edbf Backed out 3 changesets (bug 1784369, bug 1784242) for causing node newtab failures CLOSED TREE
Backed out changeset f19a8a76a85b (bug 1784242)
Backed out changeset 0722fc4bb4fa (bug 1784242)
Backed out changeset 2d4131b0ca28 (bug 1784369)
2022-08-16 03:19:32 +03:00
Daisuke Akatsuka
35dd3391c2 Bug 1784242: Make opening in new tab by context menu on tile target for inheritance of sponsored session. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D154487
2022-08-15 23:45:33 +00:00
Daisuke Akatsuka
05112fc891 Bug 1784369: Make opening in new window target for inheritance of sponsored sessions. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D154483
2022-08-15 23:45:32 +00:00
Shane Hughes
f0a33c9d81 Bug 1783207 - Add ellipsis to some menu label strings. r=flod
The copy guidance recommends adding an ellipsis to the end of labels for
controls that require an additional step to complete the action
specified by the label. We have some menuitems and panel buttons that
open a bookmark dialog or the edit bookmark panel that don't have an
ellipsis, so add that. Also, the form "Bookmark this x" has been changed
to "Bookmark x" in menuitems. Also, there's a "Print Selection" menuitem
that needed an ellipsis. Thanks for the review!

Differential Revision: https://phabricator.services.mozilla.com/D154320
2022-08-11 17:48:11 +00:00
Greg Tatum
9e7bde31d8 Bug 1782578 - Build out the text recognition modal r=nordzilla,fluent-reviewers,Jamie,flod
This patch contains the bulk of the implementation of the modal. Most of
it is UI work and wiring together the various components. There is a bit
of complexity in the clustering algorithm, as I implemented the DBSCAN
algorithm to help cluster the text recognition results.

I filed Bug 1782586 to improve the DBSCAN algorithm, but currently it
works the same as the algorithm is described on Wikipedia.

Note that the tests are in the following patch in order to keep the line
count small for this patch.

Differential Revision: https://phabricator.services.mozilla.com/D153396
2022-08-10 19:38:45 +00:00
Norisz Fay
8bc30afa79 Backed out 6 changesets (bug 1782578, bug 1782579) for causing mochitest failures on browser_parsable_css.js CLOSED TREE
Backed out changeset bdb42cfe6213 (bug 1782579)
Backed out changeset 5f17ee4cc4df (bug 1782578)
Backed out changeset 4f969d46dd37 (bug 1782578)
Backed out changeset b4c51d1ffa99 (bug 1782578)
Backed out changeset 98d0d6bcd37b (bug 1782578)
Backed out changeset 8332d678079e (bug 1782578)
2022-08-10 20:19:31 +03:00
Greg Tatum
b218d4bcca Bug 1782578 - Build out the text recognition modal r=nordzilla,fluent-reviewers,Jamie,flod
This patch contains the bulk of the implementation of the modal. Most of
it is UI work and wiring together the various components. There is a bit
of complexity in the clustering algorithm, as I implemented the DBSCAN
algorithm to help cluster the text recognition results.

I filed Bug 1782586 to improve the DBSCAN algorithm, but currently it
works the same as the algorithm is described on Wikipedia.

Note that the tests are in the following patch in order to keep the line
count small for this patch.

Differential Revision: https://phabricator.services.mozilla.com/D153396
2022-08-10 16:08:45 +00:00
Gijs Kruitbosch
5a8ff2c0b4 Bug 923514 - add plaintext paste (paste without formatting) item to page context menu for richtext / contenteditable inputs, r=bgrins,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D153457
2022-08-08 18:33:45 +00:00
Daisuke Akatsuka
fe1785170f Bug 1776609: Record source and triggeringPlaceId for sponsored tile on newtab. r=mak,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D150729
2022-08-01 00:27:50 +00:00
Butkovits Atila
665e518c7f Backed out 2 changesets (bug 1776609) for causing failures at browser_topsites_annotation.js. CLOSED TREE
Backed out changeset cac795fd16d2 (bug 1776609)
Backed out changeset 88ec1cca8540 (bug 1776609)
2022-08-01 00:52:35 +03:00
Daisuke Akatsuka
971ff4bfb6 Bug 1776609: Record source and triggeringPlaceId for sponsored tile on newtab. r=mak,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D150729
2022-07-31 20:26:30 +00:00
Butkovits Atila
900cbd85bd Backed out 2 changesets (bug 1776609) for causing gtest failures. CLOSED TREE
Backed out changeset 7630fea97777 (bug 1776609)
Backed out changeset 426cbe0fac73 (bug 1776609)
2022-07-29 13:42:33 +03:00
Daisuke Akatsuka
7c02dae76f Bug 1776609: Record source and triggeringPlaceId for sponsored tile on newtab. r=mak,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D150729
2022-07-29 09:24:28 +00:00
Calixte
981db3428b Bug 1777695 - Add some entries in the context menu when editing a PDF r=mconley
It adds the entries Undo, Redo, Cut, Copy, Paste, Delete and Select all,
only when the pdf editing mode is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D151122
2022-07-08 08:27:18 +00:00
Emilio Cobos Álvarez
bd09497378 Bug 1372276 - Remove HTML menuitem. r=smaug,mconley,agi
This removes HTMLMenuItemElement and all the code and tests preffed off
by dom.menuitem.enabled.

The HTML parser changes are the result of applying the previous patch.

Differential Revision: https://phabricator.services.mozilla.com/D149979
2022-06-22 22:31:42 +00:00
Tom Schuster
f2caf19094 Bug 1738694 - Pass around hasValidUserGestureActivation and fromExternal when opening links from the UI or command-line. r=Gijs,edgar
Differential Revision: https://phabricator.services.mozilla.com/D147515
2022-06-15 19:01:02 +00:00
Greg Tatum
8387447504 Bug 1759504 - Put the text recognition UI behind an experimental feature r=emilio,nordzilla,fluent-reviewers,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D146829
2022-06-03 16:01:34 +00:00
Greg Tatum
eb3e44ad22 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-03 16:01:32 +00:00
criss
6362d2b06a Backed out 7 changesets (bug 1759504) for causing Android build bustages on NodeListBinding.cpp
Backed out changeset d1f1173aecfc (bug 1759504)
Backed out changeset a14a874c57b0 (bug 1759504)
Backed out changeset b9beaecf9708 (bug 1759504)
Backed out changeset dc1be2f0e0b6 (bug 1759504)
Backed out changeset a0b089fb747b (bug 1759504)
Backed out changeset b5f762f1f22e (bug 1759504)
Backed out changeset a21b8153ca2a (bug 1759504)
2022-06-02 19:52:05 +03:00
Greg Tatum
d3d55f9e6b Bug 1759504 - Put the text recognition UI behind an experimental feature r=emilio,nordzilla,fluent-reviewers,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D146829
2022-06-02 14:31:43 +00:00
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