Commit Graph

5806 Commits

Author SHA1 Message Date
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
Dão Gottwald
2b648df481 Bug 1835890 - Make sidebar switcher panel a normal menupopup. r=Itiel,extension-reviewers,mconley,rpl
Differential Revision: https://phabricator.services.mozilla.com/D179877
2023-06-15 14:14:43 +00:00
Sarah Clements
a0b6ef95d9 Bug 1833416 - modify undoClosedTab keyboard shortcut r=mconley,sfoster,sessionstore-reviewers,dao
* This patch expands this keyboard shortcut to support whichever of the three
last actions were taken - last tab closed, last window closed or session restore.
* Existing test file was renamed and additional cases added.

Differential Revision: https://phabricator.services.mozilla.com/D178965
2023-06-15 13:28:26 +00:00
Itiel
213e2bd9a9 Bug 1830679 - Convert element.setAttribute(data-l10n-{id,args}) uses in the codebase to document.l10n.setAttributes(element, id, args) r=eemeli,Gijs,willdurand,extension-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,mconley,Standard8,jdescottes,kcochrane,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D176791
2023-06-14 17:16:39 +00:00
Greg Tatum
f12bc97604 Bug 1837078 - Simplify the isRestrictedPage to use the scheme; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D180473
2023-06-14 15:00:15 +00:00
Narcis Beleuzu
442a7aeab8 Backed out 19 changesets (bug 1837078, bug 1836505, bug 1835653) for bc failures on browser_test_mixed_content_download.js . CLOSED TREE
Backed out changeset 599b32019735 (bug 1836505)
Backed out changeset e7efea009a6c (bug 1837078)
Backed out changeset 72c0e162e5a8 (bug 1837078)
Backed out changeset c0776a2926de (bug 1837078)
Backed out changeset 464b57aa51cb (bug 1837078)
Backed out changeset 2d423bdf9b9a (bug 1837078)
Backed out changeset 47593c037f71 (bug 1837078)
Backed out changeset c30b954c1f48 (bug 1837078)
Backed out changeset 406ab7121048 (bug 1837078)
Backed out changeset b04e59be41cd (bug 1837078)
Backed out changeset 07dd77f0fa2b (bug 1837078)
Backed out changeset 847a4fccbb63 (bug 1837078)
Backed out changeset b698293af16a (bug 1837078)
Backed out changeset e2c376ce8337 (bug 1837078)
Backed out changeset 2c11cf745b67 (bug 1837078)
Backed out changeset 6dbd9581b622 (bug 1837078)
Backed out changeset 267c8b09163a (bug 1837078)
Backed out changeset e06f6601bd46 (bug 1837078)
Backed out changeset 744506cdcf2c (bug 1835653)
2023-06-14 05:20:20 +03:00
Greg Tatum
bd8faed522 Bug 1837078 - Simplify the isRestrictedPage to use the scheme; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D180473
2023-06-14 00:27:54 +00:00
Iulian Moraru
ff572127aa Backed out changeset 76c5afdda762 (bug 1830679) for causing xpcshell failures on test_VariablesView_filtering-without-controller.js. CLOSED TREE 2023-06-12 22:03:43 +03:00
Itiel
548aeccf66 Bug 1830679 - Convert element.setAttribute(data-l10n-{id,args}) uses in the codebase to document.l10n.setAttributes(element, id, args) r=eemeli,Gijs,willdurand,extension-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,mconley,Standard8,jdescottes,kcochrane,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D176791
2023-06-12 17:16:35 +00:00
M. Sirringhaus
63e161411a Bug 1832579 - Add prompt for invalid UV attempts r=fluent-reviewers,flod,keeler
Differential Revision: https://phabricator.services.mozilla.com/D177777
2023-06-12 16:39:13 +00:00
Mark Banner
40de601f11 Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-06-07 08:42:36 +00:00