Commit Graph

5816 Commits

Author SHA1 Message Date
Sean Feng
28b60a5bda Bug 1846714 - Make the newtab button to not handle click event if the menu is open r=Gijs
If the menu is opened, the corresponding `mouseup` event that generates
this `click` event will be handled by the menuitem, so we don't
need to handle this `click` event.

Differential Revision: https://phabricator.services.mozilla.com/D185465
2023-08-11 15:29:47 +00:00
Eemeli Aro
9bef605113 Bug 1834305 - Remove intl/locale/PluralForm.sys.mjs as unused. r=nordzilla,devtools-reviewers
This library is now completely unused in m-c.

Differential Revision: https://phabricator.services.mozilla.com/D185699
2023-08-10 20:39:20 +00:00
Gijs Kruitbosch
4aef5fd2de Bug 1842252 - use correct destruction callback and improve handling of hiding the sidebar, r=jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D185310
2023-08-05 16:12:02 +00:00
Stanca Serban
b8c2426c52 Backed out 3 changesets (bug 1842252) for causing mochitests failures in browser_shopping_urlbar.js.
Backed out changeset a39a276eba75 (bug 1842252)
Backed out changeset a9ddfdc1aeb0 (bug 1842252)
Backed out changeset 0974a625881c (bug 1842252)
2023-08-05 14:43:35 +03:00
Gijs Kruitbosch
cce2ce2fc9 Bug 1842252 - use correct destruction callback and improve handling of hiding the sidebar, r=jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D185310
2023-08-05 10:30:26 +00:00
Noemi Erli
4073f5cb3e Backed out 3 changesets (bug 1842252) for causing failures in browser_shopping_integration.js CLOSED TREE
Backed out changeset bf3153aac104 (bug 1842252)
Backed out changeset 2fbeb8b11917 (bug 1842252)
Backed out changeset 5b3d1da13031 (bug 1842252)
2023-08-04 17:16:39 +03:00
Fred Chasen
6b34194f99 Bug 1846750 - Only enable ShoppingSidebarManager on Nighly builds r=shopping-reviewers,Gijs
Updates ShoppingSidebarManager init, uninit and onLocationChange to only be called when AppConstants.NIGHTLY_BUILD is true.

Differential Revision: https://phabricator.services.mozilla.com/D185369
2023-08-04 13:01:09 +00:00
Gijs Kruitbosch
0590f4e7fb Bug 1842252 - use correct destruction callback and improve handling of hiding the sidebar, r=jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D185310
2023-08-04 10:18:44 +00:00
Gregory Pappas
37dc90e72c Bug 1846845 - Remove some unneeded isPlatformAndVersionAtLeast checks r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D185221
2023-08-02 22:30:37 +00:00
Gregory Pappas
a57c4f9405 Bug 1845311 - [Part 2] Use ChromeUtils.defineLazyGetter in more places r=arai,webcompat-reviewers,necko-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sync-reviewers,anti-tracking-reviewers,tabbrowser-reviewers,bytesized,twisniewski,sgalich,mak,kershaw,sclements,pbz,robwu,geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D184623
2023-08-01 23:01:02 +00:00
Fred Chasen
a51c5cc0a6 Bug 1840156 - Shopping urlbar button r=shopping-reviewers,fluent-reviewers,desktop-theme-reviewers,Gijs,flod,jhirsch
- Adds a urlbar button to toggle shopping sidebars and show sidebar state
- ShoppingSidebarParent.toggleAllSidebars() method to open and close sidebars
- Adds `browser.shopping.experience2023.active` pref to store the state of all sidebars
- Sidebars open and close based on state of the active pref

Differential Revision: https://phabricator.services.mozilla.com/D183394
2023-08-01 22:11:15 +00:00
Jared Hirsch
7bfd0c2540 Bug 1840518 - Disable shopping experience if users opt out via settings r=shopping-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184252
2023-07-26 15:33:40 +00:00
Jared Hirsch
16d2d53d34 Bug 1842913 - Update parent window code to check optedIn pref r=shopping-reviewers,Gijs
Also fixes bug 1844106, "Update shopping container to display onboarding
based on optedIn pref".

Differential Revision: https://phabricator.services.mozilla.com/D184129
2023-07-26 15:01:07 +00:00
Stanca Serban
99c6dd0599 Backed out changeset c2a7f1a6f481 (bug 1842913) as requested by dev for eventually failing the linter. CLOSED TREE 2023-07-26 17:11:08 +03:00
Jared Hirsch
267e129e2f Bug 1842913 - Update parent window code to check optedIn pref r=shopping-reviewers,Gijs
Also fixes bug 1844106, "Update shopping container to display onboarding
based on optedIn pref".

Differential Revision: https://phabricator.services.mozilla.com/D184129
2023-07-26 13:41:55 +00:00
Mathew Hodson
28aa899942 Bug 1564391 - Rename internal uses of mozInputSource. r=emilio,pip-reviewers,tabbrowser-reviewers,dao,kpatenio
This allows us to deprecate `mozInputSource` for the Web while
avoiding console warnings for internal uses, which now use the
ChromeOnly `inputSource` attribute.

Differential Revision: https://phabricator.services.mozilla.com/D183643
2023-07-26 09:27:45 +00:00
Jared Hirsch
7ebd1ba5ee Bug 1840847 - Switch shopping sidebar to use Actors for product URL messaging. r=Gijs
Also closes bug 1844101 and bug 1844097.

Differential Revision: https://phabricator.services.mozilla.com/D184048
2023-07-25 13:29:58 +00:00
Calixte
a618a7cc5d Bug 1844530 - Add an option to filter pdf files in the file chooser r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D184092
2023-07-21 06:59:05 +00:00
Emilio Cobos Álvarez
3b3b822f77 Bug 1844242 - Clean-up windows titlebar set-up now that buttons are always non-native. r=dao,handyman
Differential Revision: https://phabricator.services.mozilla.com/D183986
2023-07-20 13:33:19 +00:00
Gijs Kruitbosch
6ff71185f9 Bug 1842215 - handle pushState navigations between shopping pages, r=shopping-reviewers,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D184006
2023-07-20 12:20:45 +00:00
Sarah Clements
a64e5d3f38 Bug 1820660 - Persist recently closed tabs between sessions r=dao,sfoster,extension-reviewers,sessionstore-reviewers,robwu
* For cases where a user does not have automatic session restore enabled, recently closed
tabs will persist between sessions and previously open tabs will be added to the recently closed tabs
list; upon manual session restore, the previously open tabs will reopen and be removed from the closed tabs list

* Add marionette test and fix test bustages due to these changes.

Differential Revision: https://phabricator.services.mozilla.com/D178521
2023-07-18 10:40:00 +00:00
Dão Gottwald
bbec0cb63b Bug 1705215 - Stop resizing all background browsers when showing the bookmarks toolbar only on the new tab page. r=Gijs,tabbrowser-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D183493
2023-07-17 15:59:59 +00:00
Jared Hirsch
23a69be0e9 Bug 1838635 - Disable shopping experience in private browsing mode. r=shopping-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D183043
2023-07-12 14:25:00 +00:00
Sam Foster
b23b17ffa1 Bug 1819675 - Include tabs from all windows in all views of recently-closed tabs and re-open them into the current window. r=dao,sclements,fxview-reviewers,fluent-reviewers,flod,robwu,sessionstore-reviewers,tabbrowser-reviewers
* Menu Bar History menu recently-closed tab items includes closed tabs from all currently-open windows
* Toolbar/Appmenu history menu recently-closed tabs list includes closed tabs from all currently-open windows
* Firefox view recently-closed tab list includes closed tabs from all currently-open windows
* All recently-closed tab menu/items re-open in the current window
* Re-open all tabs menu item re-opens all tabs into the current window

* Ensure we filter out tabs without any useful state in firefox-view
* Add a target window argument to undoCloseTab and undoCloseById
* undoCloseTab will remove the tab data from the source window collection and re-open the tab into the target window
* Add an options argument to SessionStore.getWindows to get all private or non-private windows
* Add a getWindowForTabClosedId method on SessionStore, allowing look-up of the window associated with a closed tab
* Ensure recently-closed tab lists only include tabs from non-private windows when attached (i.e. opened from) a non-private window. And vice-versa.
* Update the sessionstore closed tab tests to assert on the new behavior

* Update the browser.sessions.restore implementation to always find and pass the source window when restoring a closed tab
* sessions.restore should always restore closed tabs to the source window as there's no implicit top or current window in the API context

Differential Revision: https://phabricator.services.mozilla.com/D174501
2023-07-06 22:49:52 +00:00
Cosmin Sabou
a41e837bdf Backed out 2 changesets (bug 1819675) for causing a spike in wpt and browser-chrome failures.
Backed out changeset aa4368bfb81a (bug 1819675)
Backed out changeset e5be8edfd9cf (bug 1819675)
2023-07-08 13:44:40 +03:00
Jared Hirsch
338186d62d Bug 1840852 - Use shopping toolkit isProductURL check to decide whether to open the shopping sidebar. r=shopping-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D183014
2023-07-07 18:24:46 +00:00
Dão Gottwald
d5c2d8dccd Bug 713713 - Expand BrowserWindowTracker.openWindow to cover the use cases of OpenBrowserWindow, and remove BrowserUIUtils.openNewBrowserWindow. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D182557
2023-07-07 12:15:35 +00:00
Sam Foster
5ddefef54e Bug 1819675 - Include tabs from all windows in all views of recently-closed tabs and re-open them into the current window. r=dao,sclements,fxview-reviewers,fluent-reviewers,flod,robwu,sessionstore-reviewers,tabbrowser-reviewers
* Menu Bar History menu recently-closed tab items includes closed tabs from all currently-open windows
* Toolbar/Appmenu history menu recently-closed tabs list includes closed tabs from all currently-open windows
* Firefox view recently-closed tab list includes closed tabs from all currently-open windows
* All recently-closed tab menu/items re-open in the current window
* Re-open all tabs menu item re-opens all tabs into the current window

* Ensure we filter out tabs without any useful state in firefox-view
* Add a target window argument to undoCloseTab and undoCloseById
* undoCloseTab will remove the tab data from the source window collection and re-open the tab into the target window
* Add an options argument to SessionStore.getWindows to get all private or non-private windows
* Add a getWindowForTabClosedId method on SessionStore, allowing look-up of the window associated with a closed tab
* Ensure recently-closed tab lists only include tabs from non-private windows when attached (i.e. opened from) a non-private window. And vice-versa.
* Update the sessionstore closed tab tests to assert on the new behavior

* Update the browser.sessions.restore implementation to always find and pass the source window when restoring a closed tab
* sessions.restore should always restore closed tabs to the source window as there's no implicit top or current window in the API context

Differential Revision: https://phabricator.services.mozilla.com/D174501
2023-07-06 22:49:52 +00:00
Mike Kaply
a8bbf7cabd Bug 1842075 - Account for fragment when deciding to reload view page. r=kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D182928
2023-07-06 20:10:31 +00:00
Jared Hirsch
532d29d161 Bug 1838438 - Insert shopping sidebar into the XUL DOM. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D181688
2023-07-06 17:32:03 +00:00
Sandor Molnar
0f440248de Backed out changeset a09e586f7b7f (bug 713713) for causing bc failures in browser/modules/test/browser/browser_BrowserWindowTracker.js CLOSED TREE 2023-07-06 17:54:01 +03:00
Dão Gottwald
9d2c1a9368 Bug 713713 - Expand BrowserWindowTracker.openWindow to cover the use cases of OpenBrowserWindow, and remove BrowserUIUtils.openNewBrowserWindow. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D182557
2023-07-06 13:39:15 +00:00
Cosmin Sabou
16a750f1fa Backed out changeset e9251e249c27 (bug 713713) for causing browser-chrome leaked windows. 2023-07-06 00:37:38 +03:00
Dão Gottwald
33ccddfb6a Bug 713713 - Expand BrowserWindowTracker.openWindow to cover the use cases of OpenBrowserWindow, and remove BrowserUIUtils.openNewBrowserWindow. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D182557
2023-07-05 18:41:16 +00:00
Cosmin Sabou
e6815bd188 Backed out changeset 27dfafd3d2a2 (bug 1838438) for causing nightlyasrelease browsertime failures. CLOSED TREE 2023-07-05 21:18:21 +03:00
Jared Hirsch
1289b5e30c Bug 1838438 - Insert shopping sidebar into the XUL DOM. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D181688
2023-07-05 14:06:24 +00:00
Mike Kaply
51714132d2 Bug 1837037 - Add a pref for enabling the new Firefox View. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D182087
2023-06-29 12:30:13 +00:00
Tom Schuster
44e5d260a6 Bug 1837976 - Expose ShouldResistFingerprinting to JS via ChromeUtils. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D181614
2023-06-28 17:02:39 +00:00
Natalia Csoregi
1b23dae9f7 Backed out changeset 7af0a23c7213 (bug 1837037) for causing multiple failures due to browser.xhtml. CLOSED TREE 2023-06-28 03:47:38 +03:00
Mike Kaply
c7392e4f30 Bug 1837037 - Add a pref for enabling the new Firefox View. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D182087
2023-06-27 18:47:49 +00:00
Greg Tatum
abee5ed92f Bug 1838665 - Automatically pop up the panel when a translation is available; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D181913
2023-06-27 18:43:03 +00:00
Dão Gottwald
760282cdb1 Bug 1777870 - Format the urlbar value after tab select and focus change, and avoid formatting multiple times when handling blur events. r=jteow
Differential Revision: https://phabricator.services.mozilla.com/D181888
2023-06-27 12:42:07 +00:00
Greg Tatum
4b4a4c7d04 Bug 1817084 - Remove old translations code; r=settings-reviewers,fluent-reviewers,nordzilla,mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D181700
2023-06-23 13:36:13 +00:00
Erik Nordin
d6f10b6de9 Bug 1835344 - Ensure translations panel respects engine support r=gregtatum
Ensures that the translations panel cannot be opened if the
translations engine is not supported.

Differential Revision: https://phabricator.services.mozilla.com/D181295
2023-06-23 00:11:14 +00:00
Katherine Patenio
ce9d8a5dad Bug 1834831 - update imports of browser/modules JSMs r=webdriver-reviewers,perftest-reviewers,zeid,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,whimboo,mhowell,sgalich,robwu,sparky,Standard8,mconley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D179169
2023-06-19 18:44:48 +00:00
Cristian Tuns
f826f1b621 Backed out 2 changesets (bug 1834831) for causing node failures with checkBundles CLOSED TREE
Backed out changeset 58b351a155c8 (bug 1834831)
Backed out changeset 1acbb5231d14 (bug 1834831)
2023-06-19 13:22:35 -04:00
Katherine Patenio
333197cd22 Bug 1834831 - update imports of browser/modules JSMs r=webdriver-reviewers,perftest-reviewers,zeid,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,whimboo,mhowell,sgalich,robwu,sparky,Standard8,mconley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D179169
2023-06-19 16:46:18 +00:00
Mike Conley
b86aa7f8ba Bug 1838871 - Fallback to previous behaviour of Ctrl-Shift-T if the in-memory undo actions list is empty. r=dao,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D181273
2023-06-16 20:22:46 +00:00
Butkovits Atila
7574ae6f18 Backed out changeset b8fcfbd2c5e9 (bug 1838871) for causing failures at browser_restoreLastClosedTabOrWindowOrSession.js. CLOSED TREE 2023-06-16 22:05:16 +03:00
Mike Conley
470fcfac2b Bug 1838871 - Fallback to previous behaviour of Ctrl-Shift-T if the in-memory undo actions list is empty. r=dao,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D181273
2023-06-16 17:57:23 +00:00