Commit Graph

585 Commits

Author SHA1 Message Date
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
Sam Foster
64ab169acc Bug 1819675 - Introduce a feature pref to toggle the recently-closed tabs from all windows behavior.r=sclements,dao,extension-reviewers,fxview-reviewers,robwu,sessionstore-reviewers
* Add a default-true pref to provide an escape hatch allowing us to revert to previous behavior
* in which recently-closed tabs are per-window,
* and undoing closed tabs restores them to the window they were closed from.
* Ensure we set the pref for tests which depend on its value
* Add some spot-checks in tests with the pref off

Differential Revision: https://phabricator.services.mozilla.com/D179574
2023-07-06 22:49:52 +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
Kelly Cochrane
5cae4bfb7f Bug 1824826 - Implement view of History and sticky header/navigation in next iteration of Firefox View r=mkaply,fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,flod,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D180135
2023-06-29 19:12:25 +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
Stanca Serban
f3fb3a7f56 Backed out changeset 33c08027f6aa (bug 1824826) for causing mochitests failures in test_history.html. CLOSED TREE 2023-06-29 07:04:25 +03:00
Kelly Cochrane
d4cf122cb1 Bug 1824826 - Implement view of History and sticky header/navigation in next iteration of Firefox View r=mkaply,fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,flod,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D180135
2023-06-28 20:14:59 +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
Iulian Moraru
392b675aa4 Backed out changeset a4e3a2f3ce1b (bug 1824826) for causing bc failures on browser_all_files_referenced.js. 2023-06-27 22:26:39 +03:00
Kelly Cochrane
808b4fa383 Bug 1824826 - Implement view of History and sticky header/navigation in next iteration of Firefox View r=mkaply,fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,flod,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D180135
2023-06-27 15:59:37 +00:00
Jonathan Sudiaman
3aa99839f2 Bug 1831118 - Open tabs additional functionality r=kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D181644
2023-06-23 11:59:45 +00:00
Jonathan Sudiaman
c207b32a1e Bug 1826600 - Add Open Tabs page r=fluent-reviewers,flod,dao
Initial open tabs implementation in Firefox View Next. Note that this only lists out the open tabs. It does not yet provide the ability to switch to an open tab or window. See bug description for a full list of expected behaviors.

[[ https://bugzilla.mozilla.org/attachment.cgi?id=9324749&action=diff | This patch ]] from @mkaply was used as a starting point.

https://treeherder.mozilla.org/jobs?repo=try&revision=789cd12b31cc76c4f9532560fd10727af6b264d5

Differential Revision: https://phabricator.services.mozilla.com/D178970
2023-06-14 17:39:06 +00:00
Iulian Moraru
7725c61610 Backed out changeset 11d0cb525f1d (bug 1835212) for causing bc failures on browser_feature_callout.js. CLOSED TREE 2023-06-13 00:34:23 +03:00
hanna alemu
6890b0f07f Bug 1835212 - Create method to set custom time limits for feature-callout to close after N seconds r=omc-reviewers,negin
Differential Revision: https://phabricator.services.mozilla.com/D179839
2023-06-12 20:24:08 +00:00
Cristina Horotan
00b07ba633 Backed out changeset a79a0225de72 (bug 1835212) for causing bc failures at browser_feature_callout.js on a CLOSED TREE 2023-06-09 01:31:13 +03:00
hanna alemu
bdfd7be5bc Bug 1835212 - Create method to set custom time limits for feature-callout to close after N seconds r=omc-reviewers,negin
Differential Revision: https://phabricator.services.mozilla.com/D179839
2023-06-08 19:33:29 +00:00
Katherine Patenio
a408bb9d46 Bug 1834115 - migrate newtab/lib JSMs that do not import modules to ESMs r=Standard8,fxview-reviewers,omc-reviewers,aminomancer,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D178568
2023-05-30 22:44:42 +00:00
Sam Foster
ffc79712f2 Bug 1819675 - rename SessionStore.getClosedTabCount and getClosedTabData to getClosedTabCountForWindow and getClosedTabDataForWindow. r=dao,fxview-reviewers,kcochrane
- As closed tabs will change to mean closed tabs from all windows, rename these functions to make
  changes in later patches clearer when we mean closed tabs from this window specifically, or closed
  tabs for all private/non-private windows

Differential Revision: https://phabricator.services.mozilla.com/D177849
2023-05-30 18:54:12 +00:00
Kelly Cochrane
5de3b991ac Bug 1818310 - Create reusable category navigation component r=mstriemer,sfoster,Jamie,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D177530
2023-05-25 13:42:47 +00:00
Kelly Cochrane
f5b163db5c Bug 1833218 - Create card container component to be used in Firefox View r=sclements
Creating new revision as a workaround for bug 1834868. The original revision was already R+ed here: https://phabricator.services.mozilla.com/D178473

Differential Revision: https://phabricator.services.mozilla.com/D179073
2023-05-25 13:14:18 +00:00
Stanca Serban
83d3ffb685 Backed out changeset b9da43bde2c9 (bug 1833218) for card_container related failures. CLOSED TREE 2023-05-24 22:13:02 +03:00
Kelly Cochrane
e98e708f30 Bug 1833218 - Create card container component to be used in Firefox View r=ayeddi,fluent-reviewers,fxview-reviewers,flod,sclements
Differential Revision: https://phabricator.services.mozilla.com/D178473
2023-05-24 17:19:46 +00:00
Mark Banner
0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Kelly Cochrane
3fcc979ce4 Bug 1833228 - Update naming for new TabList reusable component files to be domain-specific r=mstriemer,fluent-reviewers,fxview-reviewers,flod,sclements
Differential Revision: https://phabricator.services.mozilla.com/D178191
2023-05-17 14:35:53 +00:00
Cosmin Sabou
0844d392ee Bug 1824273 - Disable browser_tab_pickup_list.js for frequent failures until a fix in place. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D177797
2023-05-11 17:18:48 +00:00
Mike Kaply
1e64806384 Bug 1831601 - Switch view chrome URLS to have a firefoxview specific path. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D177283
2023-05-09 18:09:17 +00:00
Noemi Erli
ed26d7ff89 Backed out changeset 9e894095a614 (bug 1831601) for causing failures in browser_all_files_referenced.js CLOSED TREE 2023-05-08 18:15:12 +03:00
Mike Kaply
489564949e Bug 1831601 - Switch view chrome URLS to have a firefoxview specific path. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D177283
2023-05-08 14:11:12 +00:00
Kelly Cochrane
55d4ad1d4e Bug 1818322 - Create MozTabList and MozTabRow reusable components r=mstriemer,fluent-reviewers,fxview-reviewers,sfoster,Jamie,flod
Differential Revision: https://phabricator.services.mozilla.com/D171879
2023-05-04 15:26:10 +00:00
Norisz Fay
20f8f4ccab Backed out changeset 08ee4eba4c40 (bug 1818322) for causing bc failures on browser_parsable_css.js CLOSED TREE 2023-05-04 18:10:29 +03:00
Kelly Cochrane
26ce3f8d6b Bug 1818322 - Create MozTabList and MozTabRow reusable components r=mstriemer,fluent-reviewers,fxview-reviewers,sfoster,Jamie,flod
Differential Revision: https://phabricator.services.mozilla.com/D171879
2023-05-04 14:17:11 +00:00
Cristian Tuns
2a26c0ea21 Backed out changeset 437a2458db3c (bug 1818322) for causing bc failures in moz-tab-list.mjs CLOSED TREE 2023-05-04 09:43:58 -04:00
Kelly Cochrane
588f55bfdf Bug 1818322 - Create MozTabList and MozTabRow reusable components r=mstriemer,fluent-reviewers,fxview-reviewers,sfoster,Jamie,flod
Differential Revision: https://phabricator.services.mozilla.com/D171879
2023-05-04 12:44:24 +00:00
Jonathan Sudiaman
e5c848d3db Bug 1828736 - Change recently closed list items into links that support context clicking r=fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D175823
2023-04-20 12:51:58 +00:00
Ebilite Uchenna
ed5dc481d8 Bug 1824611 - Convert consumers of toolkit/components/passwordmgr to import ES modules directly. r=Standard8,credential-management-reviewers,settings-reviewers,fxview-reviewers,sclements,sgalich,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D174446
2023-04-11 19:06:24 +00:00
Russell Chan
b653cce8ee Bug 1825063 - Add ability to hide the arrow from the feature callout r=fxview-reviewers,omc-reviewers,aminomancer,sclements
Differential Revision: https://phabricator.services.mozilla.com/D174342
2023-04-11 14:01:03 +00:00
Shane Hughes
ca232ede40 Bug 1813716 - Encapsulate aboutwelcome container and make its ID more unique. r=omc-reviewers,fxview-reviewers,sfoster,jprickett
Differential Revision: https://phabricator.services.mozilla.com/D172493
2023-03-29 21:51:09 +00:00
CanadaHonk
de0de3489c Bug 1801379 - Migrate Sinon.jsm to an ES module r=extension-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,fxview-reviewers,devtools-reviewers,Standard8,nchevobbe,sclements,dimi,mconley,bytesized,robwu
Migrated `testing/modules/Sinon.sys.mjs` to an ES module.

`testing` should now be 100% ESM 🎉

Differential Revision: https://phabricator.services.mozilla.com/D173643
2023-03-29 07:34:10 +00:00
Shane Hughes
7cf9a86c67 Bug 1818829 - Implement Feature Callout theme configuration. r=jprickett,omc-reviewers,fxview-reviewers,sfoster
Add logic to apply theme colors to Feature Callout based on where it's
going to show. We can use in-content CSS properties for Firefox View and
other themed system pages, but not for PDF.js, nor for any callouts we
might show in the browser chrome in the future. For the browser chrome
in general, we can use the lightweight theme properties directly, in the
same way the chrome frontend does. But PDF.js is a special case, since
although it exists in the chrome, it's meant to appear like it's in the
PDF.js viewer. And the PDF.js viewer has its own theme totally
independent of everything else. So this dynamically applies themes from
different sources.

This also fixes the bug where the PDF.js color scheme could mismatch the
PDF.js viewer if the browser theme and system color scheme don't match,
e.g. where system color scheme is light but a dark theme is installed,
or vice versa. For PDF.js specifically, we can use the
-moz-content-prefers-color-scheme media query to follow the color scheme
as it exists in the PDF.js viewer page instead of the color scheme in
the chrome window where the Feature Callout actually exists.

It also adds or modifies some colors that were previously missing or
different from the prototype, fixes the illegibility of buttons in HCM
and forced colors mode, and makes some other minor color changes.

Differential Revision: https://phabricator.services.mozilla.com/D173088
2023-03-28 00:38:42 +00:00
Cosmin Sabou
c31085cb42 Backed out changeset fecef27ba1fa (bug 1818829) for causing newtab failures on _feature-callout-theme.scss. CLOSED TREE 2023-03-28 02:46:44 +03:00
Shane Hughes
43bb7f08b0 Bug 1818829 - Implement Feature Callout theme configuration. r=jprickett,omc-reviewers,fxview-reviewers,sfoster
Add logic to apply theme colors to Feature Callout based on where it's
going to show. We can use in-content CSS properties for Firefox View and
other themed system pages, but not for PDF.js, nor for any callouts we
might show in the browser chrome in the future. For the browser chrome
in general, we can use the lightweight theme properties directly, in the
same way the chrome frontend does. But PDF.js is a special case, since
although it exists in the chrome, it's meant to appear like it's in the
PDF.js viewer. And the PDF.js viewer has its own theme totally
independent of everything else. So this dynamically applies themes from
different sources.

This also fixes the bug where the PDF.js color scheme could mismatch the
PDF.js viewer if the browser theme and system color scheme don't match,
e.g. where system color scheme is light but a dark theme is installed,
or vice versa. For PDF.js specifically, we can use the
-moz-content-prefers-color-scheme media query to follow the color scheme
as it exists in the PDF.js viewer page instead of the color scheme in
the chrome window where the Feature Callout actually exists.

It also adds or modifies some colors that were previously missing or
different from the prototype, fixes the illegibility of buttons in HCM
and forced colors mode, and makes some other minor color changes.

Differential Revision: https://phabricator.services.mozilla.com/D173088
2023-03-27 23:07:45 +00:00
Kelly Cochrane
9f600e8dfc Bug 1824358 - Don't update textContent for elements in Recently Closed tabs in Fx View to prevent Lit errors r=mstriemer,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D173547
2023-03-27 16:04:54 +00:00
Sam Foster
290810a04a Bug 1809661 - Keep track of time spent with 0 tabs after a new device is added, and record a telemetry event with the time elapsed until new tabs are shown. r=kcochrane
* Keep track of the tab-pickup-container views in TabsSetupFlowManager and their visibility
* Fix visibilitychange handling in tab-pickup-container and add some tests
* Capture a timestamp when a device has been added and there are 0 tabs to show, with at least one visible tab-pickup-container view
* Record telemetry when there are > 0 tabs in these conditions
* Small change to rename the `_waitingForTabs` internal tracking property to  `_waitingForNextTabSync` to better clarify its use and meaning
* Use a consistent pattern in some of the existing tests with how we mock SyncedTabs.getRecentTabs

Differential Revision: https://phabricator.services.mozilla.com/D170526
2023-03-23 23:55:49 +00:00
Russell Chan
9b99372418 Bug 1791072 - Add focus to primary button in feature callout r=omc-reviewers,emcminn,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D172725
2023-03-23 16:21:41 +00:00
Sam Foster
ce23bda9d6 Bug 1794435 - Make updateTime a noop when the updateTimeMs pref is 0. r=fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D173225
2023-03-22 18:36:54 +00:00
Jonathan Sudiaman
e5ab92bd73 Bug 1801734 - Change withFirefoxView helper so it doesn't open a new window by default r=fxview-reviewers,sfoster
Updates `withFirefoxView()` signature to accept a boolean flag indicating whether a new window should be opened, rather than having to pass in a `Window` object or opening a new window by default. The new default behavior is to use the global `window` by default. Update tests to only use this setting if it is needed to pass.

https://treeherder.mozilla.org/jobs?revision=f49e65c14c5eacdaedfb86c81d61450e3274a7c5&repo=try

Differential Revision: https://phabricator.services.mozilla.com/D173014
2023-03-21 19:04:22 +00:00
Abhishek Tiwari
496a43cc06 Bug 1821624 - Convert toolkit/components/messaging-system to ES modules r=Standard8,fxview-reviewers,omc-reviewers,aminomancer,sclements
Differential Revision: https://phabricator.services.mozilla.com/D172406
2023-03-15 18:44:02 +00:00