Commit graph

766 commits

Author SHA1 Message Date
Shane Hughes
5202428d2e Bug 1842366 - Part 2: Allow rendering Feature Callout in panels. r=jprickett,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D183074
2023-08-31 03:29:05 +00:00
Mike Kaply
0689b04be0 Bug 1846243 - Private windows should only have their own tabs in open tabs. r=jsudiaman,fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D186370
2023-08-30 20:52:54 +00:00
Mike Kaply
4b933c99cd Bug 1850365 - Cleanup UX for empty states. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D186980
2023-08-29 21:15:53 +00:00
Sarah Clements
20f8ed3dce Bug 1847981 - Flip pref to make firefoxview-next the default r=fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D186849
2023-08-29 15:21:41 +00:00
Stuart Colville
e123b3d99b Bug 1844600 - Fix heading and card alignment r=sclements,desktop-theme-reviewers,fxview-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D186876
2023-08-29 14:42:03 +00:00
Kelly Cochrane
c5ca126b8e Bug 1845356 - Update Firefox View toolbarbutton icon and label/tooltip r=fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,flod,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D184970
2023-08-29 12:40:52 +00:00
Cristian Tuns
d0d03369a4 Backed out changeset c35a3bb94b22 (bug 1845356) for causing bc failures in browser_feature_callout_position.js CLOSED TREE 2023-08-28 17:53:19 -04:00
Kelly Cochrane
750fa918eb Bug 1845356 - Update Firefox View toolbarbutton icon and label/tooltip r=fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,flod,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D184970
2023-08-28 19:52:09 +00:00
Sandor Molnar
1d305e9817 Backed out changeset a91b29868240 (bug 1845356) for causing bc failures in browser/components/firefoxview/tests/browser/browser_feature_callout.js CLOSED TREE 2023-08-28 21:48:52 +03:00
Kelly Cochrane
3c494ef8b2 Bug 1845356 - Update Firefox View toolbarbutton icon and label/tooltip r=fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,flod,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D184970
2023-08-28 15:04:58 +00:00
Mike Kaply
a5b69e26ce Bug 1847983 - Add outer container so we can align images. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D186384
2023-08-28 14:56:30 +00:00
Jonathan Sudiaman
60177d1345 Bug 1849219 - Multi-second parent process hangs in 'places::NotifyTitleObservers' calling into 'maybeCacheBaseUrlForVisit' r=mkaply,places-reviewers,mak
Effectively, this undoes a lot of the work in Bug 1828669, and thus we will have to reopen that bug. This does preserve the de-duping for //exact// URL matches, but not base url + title.

One thing I noticed is that the `page-title-changed` handler operates at O(n) complexity, which probably explains the hangs that Daniel was seeing. We will have to rethink this in terms of de-duping, but for now, I have improved this complexity by maintaining a cache of url -> visit.

This also addresses some of the review comments left by @Standard8 on the [[ https://phabricator.services.mozilla.com/D185315 | original patch ]].

Differential Revision: https://phabricator.services.mozilla.com/D186580
2023-08-23 20:14:02 +00:00
Sam Foster
7075d4e4c8 Bug 1845836 - Include closed tabs from closed windows in fxview-next's recently closed tabs list. r=kcochrane,dao,fxview-reviewers,sessionstore-reviewers,sclements
* Add a browser.sessionstore.closedTabsFromClosedWindows pref and consult it when building recently-closed tab lists in firefoxview-next
* Add a _resolveClosedDataSource to SessionStore which allows us to find the window state and _closedTabs given a DOMWindow, a window closedId, or a window session store Id.
* Carry window closedId and source window Id into tab items when building recently-closed tab lists in firefoxview-next. This gives us the necessary context when we need to undoClose or forget a tab item in the list.
* Add a getClosed TabCount and TabData for Closed Windows method to SessionStore
* Modify undoCloseTab and forgetClosedTab to accept source params we can resolve to window state data using _resolveClosedDataSource

Differential Revision: https://phabricator.services.mozilla.com/D185108
2023-08-22 20:42:57 +00:00
Mike Kaply
7d98e65195 Bug 1849195 - Use max-width/height to prevent extra scrollbars. r=dholbert,fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D186503
2023-08-19 16:46:40 +00:00
Mike Kaply
6718d67ce7 Bug 1848928 - Update class for sort by site. r=jsudiaman DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D186545
2023-08-18 20:58:11 +00:00
Kelly Cochrane
93d1e7e4c7 Bug 1842616 - Add telemetry for Recently Closed tabs r=mkaply,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D186190
2023-08-18 16:06:33 +00:00
Kelly Cochrane
0e6cfc7f80 Bug 1846572 - Adding role='application' to fix keyboard navigation in Firefox View with NVDA on Windows r=mkaply,fluent-reviewers,ayeddi,flod
Differential Revision: https://phabricator.services.mozilla.com/D185339
2023-08-17 16:22:30 +00:00
Mike Kaply
3576f7e659 Bug 1848707 - Use repeat insted of map so fluent IDs work correctly. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D186179
2023-08-16 21:08:31 +00:00
Cristina Horotan
9afcad675b Backed out changeset 7d891879797e (bug 1846572) for causing bc failures at browser_firefoxview_next.js CLOSED TREE 2023-08-16 02:55:34 +03:00
Kelly Cochrane
720c51f48d Bug 1846572 - Adding role='application' to fix keyboard navigation in Firefox View with NVDA on Windows r=mkaply,fluent-reviewers,ayeddi,flod
Differential Revision: https://phabricator.services.mozilla.com/D185339
2023-08-15 21:52:20 +00:00
Mike Kaply
31685a07c3 Bug 1848719 - Allow device names to overflow to next column. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D186183
2023-08-15 13:38:08 +00:00
Mike Kaply
f942640d37 Bug 1845470 - Prevent the mousewheel from scrolling outside of tab list. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185953
2023-08-15 13:37:05 +00:00
Jonathan Sudiaman
c764e564b8 Bug 1828669 - Dedupe URLs in the history view r=mkaply
In Firefox View, remove duplicate history visits per container. When sorting by date, a container is a single day. When sorting by site, a container is a single host (which, in this case, effectively means that //every// single visit listed must have a unique URL).

We want to get a bit smarter about determining which visits are "duplicates". This is a bit more involved than simply comparing exact URLs. [This doc](https://docs.google.com/document/d/1t13dAW6yMyxKys2Emthe0tZE1Q9j-CTsjRb2fa-LNL0/edit?usp=sharing) explains in further detail, but the summary is that visits should be considered duplicates **if multiple documents have the same title, but have the same base URL (URL possibly without query (?) or fragment (#))**.

SQL is leveraged a bit to handle the straightforward case, i.e. matching exact URL. Frontend is used to further dedupe by "Base URL" + document title.

Some of the caching in `FirefoxViewPlacesQuery` was replaced in favor of getters which utilize existing caches from the base class. Perhaps there's no need for this extension class, will consider refactoring in the future.

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

Differential Revision: https://phabricator.services.mozilla.com/D185315
2023-08-14 22:27:26 +00:00
Mike Kaply
d06bcbd086 Bug 1846302 - Remove unnecessary code to fix CSP error and add a null check. r=jsudiaman,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D185929
2023-08-14 18:07:33 +00:00
Sarah Clements
624c9599b0 Bug 1831141 - Add more menu to open tabs r=fxview-reviewers,fluent-reviewers,flod,kcochrane
* Add more menu with a subset of menu items, more to come
* Change fluent strings to include url on hover

Differential Revision: https://phabricator.services.mozilla.com/D184612
2023-08-14 13:50:17 +00:00
Mike Kaply
1b238acfd1 Bug 1845476 - Add a minimum width for content in view. r=jsudiaman,desktop-theme-reviewers,dao,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185956
2023-08-14 12:39:46 +00:00
Mike Kaply
1981bb9d4c Bug 1846597 - Use proper semantic styling for headers in view. r=jsudiaman,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185612
2023-08-11 14:03:36 +00:00
Kelly Cochrane
d7740874a5 Bug 1846545 - Update card-container to use 'pageName' and 'showViewAll' properties r=mkaply,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D185852
2023-08-10 17:00:16 +00:00
Mike Kaply
cef99d2172 Bug 1845471 - Switch Show All History link to a button. r=jsudiaman,desktop-theme-reviewers,fxview-reviewers,kcochrane,dao
Differential Revision: https://phabricator.services.mozilla.com/D185597
2023-08-10 13:10:49 +00:00
Mike Kaply
bdf722e77c Bug 1845468 - Don't use linear gradients if colors are forced (HCM). r=kcochrane,desktop-theme-reviewers,fxview-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D185575
2023-08-09 15:55:19 +00:00
Shane Hughes
f28489d5ae Bug 1784343 - Disable browser_feature_callout_position test on linux. r=fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D185698
2023-08-08 21:28:48 +00:00
Kelly Cochrane
f4db08de2f Bug 1846607 - Update hover text for context menu buttons in Firefox View r=jsudiaman,fluent-reviewers,fxview-reviewers,flod,sclements
Differential Revision: https://phabricator.services.mozilla.com/D185596
2023-08-08 16:37:12 +00:00
Kelly Cochrane
6975f47aba Bug 1845709 - Add a cards-container in synced tabs to fix scrolling issues. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185590
2023-08-08 14:11:13 +00:00
Narcis Beleuzu
c3d6f0e8dc Backed out changeset 2d7623e5cb0e (bug 1845709) for bc failure on browser_syncedtabs_errors_firefoxview_next.js . CLOSED TREE 2023-08-08 00:03:10 +03:00
Mike Kaply
3465b20eca Bug 1845709 - Add a cards-container in synced tabs to fix scrolling issues. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185590
2023-08-07 20:06:53 +00:00
Mike Kaply
6fd9eee519 Bug 1845489 - Don't set errorState if there isn't one. r=jsudiaman,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185565
2023-08-07 19:49:24 +00:00
Mike Kaply
c11e51678a Bug 1845909 - Hide button from accessibility since it's handled by the outer category. r=kcochrane,fxview-reviewers,ayeddi
Differential Revision: https://phabricator.services.mozilla.com/D185440
2023-08-07 19:48:20 +00:00
Mike Kaply
aa9bfa1c41 Bug 1847242 - Show backup icon if we don't have one. r=sclements,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185447
2023-08-05 12:04:29 +00:00
Sandor Molnar
4ae21ba61a Backed out changeset ea1a5147d972 (bug 1847242) for causing failures in skin/extensions/defaultFavicon.svg CLOSED TREE 2023-08-04 21:26:34 +03:00
Mike Kaply
bbdab18f17 Bug 1847242 - Show backup icon if we don't have one. r=sclements,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185447
2023-08-04 18:00:47 +00:00
Mike Kaply
200da5a0ec Bug 1847270 - Show pointer cursor when hovering over category items. r=jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D185459
2023-08-04 18:00:32 +00:00
Kelly Cochrane
eb6d67c739 Bug 1845475 - Add title/hover text to expand/collapse buttons for cards in Firefox View r=jsudiaman,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D185345
2023-08-04 13:29:32 +00:00
Mike Kaply
ae0fa36393 Bug 1828673 - Add support for overview page in synced tabs. r=desktop-theme-reviewers,fxview-reviewers,jsudiaman,dao,sfoster,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D184414
2023-08-03 18:46:32 +00:00
Kelly Cochrane
8c758fdfe6 Bug 1846393 - Fix for browser_history_firefoxview_next.js test failures r=fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D185080
2023-08-02 14:18:53 +00:00
Kelly Cochrane
015cdb39bb Bug 1843408 - Remove 'View more browsing history' link from Recently closed tabs page in Fx View r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D184949
2023-08-02 14:18:22 +00:00
Gregory Pappas
8a35d5cf5f 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
Iulian Moraru
0408b02043 Bug 1846393 - disable browser_history_firefoxview_next.js for permanent test failure which started with new month
The new month triggered a new card for July

Differential Revision: https://phabricator.services.mozilla.com/D184993
2023-08-01 15:10:54 +00:00
Mike Kaply
b06bfd1fb6 Bug 1845122 - Use ID for indexing devices to properly handle duplicates. r=sfoster,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184764
2023-08-01 11:49:09 +00:00
Butkovits Atila
a73ecfdb1f Backed out changeset 02777f9d9ba2 (bug 1828673) for causing failures at test_fxview_tab_list.html. CLOSED TREE 2023-08-01 01:17:16 +03:00
Mike Kaply
7c83cbccb3 Bug 1828673 - Add support for overview page in synced tabs. r=desktop-theme-reviewers,fxview-reviewers,jsudiaman,dao,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D184414
2023-07-31 19:45:28 +00:00
Mike Kaply
9a2cd8f311 Bug 1845485 - Update how we navigate between view pages. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184951
2023-07-31 19:44:22 +00:00
Mike Kaply
e911d9a8a7 Bug 1845218 - Pass -1 as maxTabsLength so all tabs are displayed. r=fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D184952
2023-07-31 19:38:52 +00:00
Sam Foster
6e8f34b18c Bug 1842610 - Add SessionStore.forgetClosedWindowById and forgetClosedTabById and update RecentlyClosedTabsInView to use the new forget and aggregated getClosedTabData methods. r=kcochrane,fxview-reviewers,sessionstore-reviewers,dao,sclements
* We already make use of the closedId in RecentlyClosedTabsInView to re-open the tab via SS.undoCloseById so it made sense to do the same for forgetting a closed tab
* In the test setup, one of tabs is opened and closed in a different window. This gives us coverage both for the closed tab list rendering, as well as re-opening and forgeting tabs with different source windows
* Both the forget-by-closed-id methods match undoClosedById's behavior and throw if the closedId doesnt match a closed window or tab

Differential Revision: https://phabricator.services.mozilla.com/D184192
2023-07-31 18:54:43 +00:00
Mike Kaply
83b6c564d2 Bug 1846064 - Don't use getImageURL for icons. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184854
2023-07-29 09:40:44 +00:00
Shane Hughes
77982b54f5 Bug 1845862 - Support primary buttons in Feature Callout. r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D184788
2023-07-28 20:51:17 +00:00
Shane Hughes
cd5230991d Bug 1845419 - Allow Feature Callout page_event_listeners to set timers and hook callout lifecycle events. r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D184536
2023-07-27 16:26:26 +00:00
Gregory Pappas
3eac12bbd7 Bug 1845311 - Use ChromeUtils.defineLazyGetter in more places r=arai,webdriver-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,joschmidt,robwu,issammani,bytesized,owlish,dao
Differential Revision: https://phabricator.services.mozilla.com/D184481
2023-07-26 16:28:11 +00:00
Mike Kaply
234e2a6e70 Bug 1845138 - Use correct syntax for descriptionLink. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184438
2023-07-25 18:58:40 +00:00
Mark Banner
6fe765f7ca Bug 1845079 - Update more consumers to import ES modules directly. r=arai,settings-reviewers,credential-management-reviewers,sync-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D184371
2023-07-24 15:32:45 +00:00
Mike Kaply
98be406dc0 Bug 1844672 - No need to look for current device, it's not in the tab array. r=fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D184169
2023-07-23 16:02:54 +00:00
Shane Hughes
0b55b868c1 Bug 1838295 - Feature Callout fallback anchor system. r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D184067
2023-07-23 02:57:02 +00:00
Cristian Tuns
da2a846435 Backed out changeset 6f0a2e1e42f5 (bug 1838295) for causing bc failures in browser_feature_callout_in_chrome.js CLOSED TREE 2023-07-22 01:40:06 -04:00
Shane Hughes
672ca0d15d Bug 1838295 - Feature Callout fallback anchor system. r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D184067
2023-07-22 03:47:34 +00:00
Mike Kaply
b1542a32f9 Bug 1833664 - Add three-dot menu to tabs on other devices. r=jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D184237
2023-07-21 19:45:53 +00:00
Kelly Cochrane
ab56102a83 Bug 1844616 - Check for allHistoryItems map size in order to display 'Show all history' link in about:firefoxview-next#history r=jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D184126
2023-07-21 19:33:16 +00:00
Kelly Cochrane
054443b221 Bug 1842903 - Correct improper use of span elements in about:firefoxview-next#history r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D184125
2023-07-21 18:35:38 +00:00
Mike Kaply
60c90ecd1e Bug 1833673 - Add menu for history items. r=sclements,fxview-reviewers,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D183899
2023-07-20 17:38:56 +00:00
Kelly Cochrane
7fcd18f892 Bug 1841795 - Add Recently Closed empty states in about:firefoxview-next r=mkaply,fluent-reviewers,fxview-reviewers,flod,sclements
Differential Revision: https://phabricator.services.mozilla.com/D184029
2023-07-20 15:46:51 +00:00
Jonathan Sudiaman
60d4538215 Bug 1836261 - Add additional options to PlacesQuery#getHistory() r=mak,kcochrane,fxview-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D182922
2023-07-20 01:57:06 +00:00
Tooru Fujisawa
d8c21fafdb Bug 1843789 - Part 3: Rewrite testing/mochitest/BrowserTestUtils/BrowserTestUtils.sys.mjs consumers in html/xhtml to use ChromeUtils.importESModule. r=ahal,fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D183659
2023-07-18 23:06:30 +00:00
Tooru Fujisawa
b4106e3f4f Bug 1843788 - Part 2: Rewrite testing/modules/TestUtils.sys.mjs consumers in html/xhtml to use ChromeUtils.importESModule. r=ahal,credential-management-reviewers,fxview-reviewers,sgalich,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D183656
2023-07-18 23:06:29 +00:00
Mike Kaply
93da01a7c0 Bug 1842896 - Add ID so clicking label works. r=jsudiaman DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D183900
2023-07-18 21:10:43 +00:00
Mike Kaply
134b5be624 Bug 1826608 - Implement open tabs from other device in new Firefox View. r=sclements,kcochrane,fluent-reviewers,fxview-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D180836
2023-07-18 19:08:04 +00:00
Kelly Cochrane
f23df33f05 Bug 1826604 - Add History empty states and banner in about:firefoxview-next r=mkaply,fxview-reviewers,sclements,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D183197
2023-07-18 13:42:11 +00:00
Sarah Clements
84ec9ebeeb Bug 1843587 - Change getClosedTabData param to default to non-private window object r=sfoster,fxview-reviewers,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D183739
2023-07-18 11:11:21 +00:00
Mike Kaply
28d178f05e Bug 1843603 - Update category icons for View. r=sfoster,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D183602
2023-07-17 11:58:47 +00:00
Shane Hughes
9c7a1ae2e1 Bug 1821826 - Refactor FeatureCallout to support generic triggers. r=omc-reviewers,fxview-reviewers,tabbrowser-reviewers,dao,jprickett,sclements
Also disable the Firefox View feature tour to avoid any risk of
regressions. The feature tour code will be removed in a later patch.
It's still present for now for testing purposes.

Differential Revision: https://phabricator.services.mozilla.com/D180927
2023-07-11 16:00:40 +00:00
Kelly Cochrane
a407f9b1b0 Bug 1828606 - Implement Recently Closed component in next iteration of Firefox View r=sfoster,fluent-reviewers,fxview-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D182600
2023-07-10 19:46:10 +00:00
Cristina Horotan
af6dd949dd Backed out changeset 00270dd961d6 (bug 1828606) for causing leaked window related bc failures 2023-07-10 17:29:20 +03:00
Kelly Cochrane
9fa485a162 Bug 1828606 - Implement Recently Closed component in next iteration of Firefox View r=sfoster,fluent-reviewers,fxview-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D182600
2023-07-10 13:46:53 +00:00
Sam Foster
224b568ae4 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
a24c7b1d6b 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
f16c094fd9 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
a4876c8eb5 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
39d8ed9ddf 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
Jonathan Sudiaman
4d1bc316d4 Bug 1842056 - Add a pref to limit the number of rows shown in History r=mkaply,fxview-reviewers,kcochrane
https://treeherder.mozilla.org/jobs?repo=try&revision=da5fd70d227be30325c71b2af80e98275130b26b

Differential Revision: https://phabricator.services.mozilla.com/D182923
2023-07-06 20:08:35 +00:00
Kelly Cochrane
0910cc5ba9 Bug 1841149 - Fix sorting for History in about:firefoxview-next r=mkaply,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D182568
2023-07-06 13:46:41 +00:00
Kelly Cochrane
a253f7e7f1 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
fbfbdd7470 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
fabab5d108 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
2b807cde68 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
de6d96441f 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
2fafae3744 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
c7ac902e0c 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
9c4465339a 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
Kelly Cochrane
b9ff8580a5 Bug 1840377 - Add reusable empty state component for Firefox View r=mkaply,desktop-theme-reviewers,fxview-reviewers,dao,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D182010
2023-06-26 19:12:19 +00:00
Jonathan Sudiaman
d87c046ac4 Bug 1831118 - Open tabs additional functionality r=kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D181644
2023-06-23 11:59:45 +00:00
Katherine Patenio
130ce23c4c 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
110cfccc1f 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
a73f6ec769 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
Jonathan Sudiaman
e1208b882a 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
Itiel
cf26dda371 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
Iulian Moraru
3260deb1ae 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
80813356d3 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
Iulian Moraru
1a03d0ff0d 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
d6ff8a9975 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
Cristina Horotan
d8c5478bd7 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
91fee18b36 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
Kelly Cochrane
19abba01c7 Bug 1832668 - Add new side navigation component to Firefox View Next page r=fxview-reviewers,fluent-reviewers,flod,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D179215
2023-06-02 12:39:50 +00:00
Katherine Patenio
0c1a6fdd6a 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
a3004a21be 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
d00c87c432 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
383cfa857f 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
871bb363af Backed out changeset b9da43bde2c9 (bug 1833218) for card_container related failures. CLOSED TREE 2023-05-24 22:13:02 +03:00
Kelly Cochrane
4eccf49f26 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
2a53076d43 Bug 1826063 - Automatic fixes for enabling Prettier on production xhtml and html files. r=mossop,webdriver-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,fxview-reviewers,sgalich,nalexander,devtools-reviewers,sclements,denschub,robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177938
2023-05-20 12:26:56 +00:00
Mark Banner
130a655906 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
8219a5c503 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
Jonathan Sudiaman
fbb3ab6cce Bug 1833406 - Firefox view recently closed section items are not visible at hover when using high contrast r=fxview-reviewers,kcochrane
Simple styling adjustment.

Differential Revision: https://phabricator.services.mozilla.com/D178442
2023-05-19 13:54:08 +00:00
Iulian Moraru
170aaf5bb7 Backed out changeset bbb3bbd9b6af (bug 1830679) for causing dt failures on browser_storage_cache_delete.js. CLOSED TREE 2023-05-18 22:09:25 +03:00
Itiel
076aaf6671 Bug 1830679 - Convert element.setAttribute(data-l10n-{id,args}) uses in the codebase to document.l10n.setAttributes(element, id, args) r=eemeli,willdurand,extension-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,mconley,Standard8,jdescottes,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D176791
2023-05-18 17:19:45 +00:00
Kelly Cochrane
7e0b29e0b9 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
Mike Kaply
62b989c003 Bug 1824438 - Implement a module system for Firefox View. r=kcochrane,jsudiaman,fxview-reviewers,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D175794
2023-05-12 18:39:12 +00:00
Jonathan Sudiaman
beffbf20b6 Bug 1829847 - Move Synced Tabs error handling into its own component r=fxview-reviewers,sfoster
Add a new component which handles managing the error states for synced tabs. Refactor `tab-pickup-container.js` and `firefox-view-tabs-setup-manager.js` to utilize the new component.

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

Differential Revision: https://phabricator.services.mozilla.com/D177551
2023-05-12 15:31:22 +00:00
Stanca Serban
c4c8369901 Backed out changeset 41155ff2690b (bug 1824438) for Firefox View related build bustages. CLOSED TREE 2023-05-12 18:26:47 +03:00
Mike Kaply
d2cd8386c1 Bug 1824438 - Implement a module system for Firefox View. r=kcochrane,jsudiaman,fxview-reviewers,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D175794
2023-05-12 15:06:37 +00:00
Cosmin Sabou
79659c7736 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
ecba5585e8 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
Gijs Kruitbosch
ad4bc55e54 Bug 1508369 - clean up browser CSS to pass basic stylelint rules, r=desktop-theme-reviewers,webcompat-reviewers,extension-reviewers,devtools-reviewers,nchevobbe,denschub,dao
Differential Revision: https://phabricator.services.mozilla.com/D177476
2023-05-09 17:12:50 +00:00
Noemi Erli
68ea2b47d4 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
7c4ee19fa7 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
151a24a000 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
7855b93730 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
2a5ef1f5ec 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
be7e0b20ea 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
bec67e027c 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
958006bb59 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
Mike Kaply
447b995bc5 Bug 1824436 - Add blank page for new view development. r=sfoster,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174922
2023-04-12 16:03:39 +00:00
Francesco Lodolo (:flod)
01af1e915d Bug 1826755 - Move Firefox account Fluent term to toolkit, r=fluent-reviewers,settings-reviewers,credential-management-reviewers,fxview-reviewers,mconley,sclements,sgalich,eemeli
Differential Revision: https://phabricator.services.mozilla.com/D175097
2023-04-12 15:51:42 +00:00
Ebilite Uchenna
8c931cb313 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
f93cffb785 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
78935b829e 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
91709586ba 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
5d946f3d90 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
948fdb0dfb 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
effb48b0f5 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
84eb43dddf 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
2a3e4f2928 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
b85af4ce11 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
c2c44baa20 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
bd217ea8bc 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
d0b9714f92 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
Francesco Lodolo (:flod)
962126e608 Bug 1822388 - Move brandings.ftl from browser to toolkit, r=eemeli,settings-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sgalich,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D172643
2023-03-15 17:00:48 +00:00
Mark Banner
80295c5a70 Bug 1812098 - Fix ESLint raised issues with no-shadow of builtinGlobals in browser .mjs files. r=Gijs,credential-management-reviewers,sgalich,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D169463
2023-03-14 09:13:48 +00:00
Kelly Cochrane
2320072da0 Bug 1822089 - [Fx View] Switch recently closed items back from role='link' to role='button' r=sclements,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D172436
2023-03-13 18:06:16 +00:00
Butkovits Atila
fdef81b168 Backed out changeset 649252a67839 (bug 1809661) for causing failures complaining about _createRecentTabsList . CLOSED TREE 2023-03-08 21:12:35 +02:00
Sam Foster
67e77c6bad 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

Differential Revision: https://phabricator.services.mozilla.com/D170526
2023-03-08 17:21:11 +00:00
Sammy Khamis
6f260cff5b Bug 1791478 - SyncedTabs should check if pp is locked before syncing r=markh,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D157874
2023-03-08 04:21:56 +00:00
Shane Hughes
1e98966c72 Bug 1820053 - Alphabetize Firefox View browser test manifest. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D171516
2023-03-07 21:47:44 +00:00
Dão Gottwald
3c21bc3bef Bug 1820475 - Remove colorways-card.mjs and related code. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D171696
2023-03-07 12:35:52 +00:00
Csoregi Natalia
422f2645bd Backed out changeset d59fe9707337 (bug 1820475) for failures on browser_multistage_spotlight.js. CLOSED TREE 2023-03-07 12:35:33 +02:00
Dão Gottwald
438ea15da5 Bug 1820475 - Remove colorways-card.mjs and related code. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D171696
2023-03-07 09:24:21 +00:00
Oriol Brufau
74dc189d04 Bug 1808787 - Optimize drag-and-drop into tabbar with lots of tabs. r=dao,Gijs
When called with isLink=true, _getDragTargetTab returns null if the
pointer is around the edges of the tab. This is useful to decide whether
drag-and-drop should create a new tab, or reuse an existing one.

The problem was that _getDropIndex, used when creating a new tab, would
therefore always get a null tab on dragover events, and then fall back
to iterating all tabs sequentially until it would find the right index,
with an expensive getBoundingClientRect() for each tab.

So this patch:
 - Renames unclear isLink to a more meaningful ignoreTabSides
 - Makes _getDragTargetTab use the native Element#closest instead of
   iterating the ancestors manually in JS.
 - Makes _getDropIndex always pass ignoreTabSides=false
 - Refactors _getDropIndex to never iterate tabs.
 - Adds .tab-drop-indicator{pointer-events:none}. This is needed so that
   the indicator doesn't become the event target, we want to get the tab
   behind it.

Differential Revision: https://phabricator.services.mozilla.com/D166125
2023-03-01 13:59:48 +00:00
Csoregi Natalia
2663a62047 Backed out changeset d609e38d7305 (bug 1809661) for failures on browser_tab_pickup_device_added_telemetry.js. CLOSED TREE 2023-02-27 23:21:07 +02:00
Sam Foster
8e9a796f8a 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

Differential Revision: https://phabricator.services.mozilla.com/D170526
2023-02-27 20:06:25 +00:00
Kelly Cochrane
976c5c450b Bug 1801204 - Update recently-closed-tabs.mjs to be template-driven r=sfoster,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D169010
2023-02-24 21:32:25 +00:00
Mark Banner
7a655466af Bug 1817183 - Update consumers of services/fxaccounts to import ES modules directly. r=markh,settings-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D170062
2023-02-17 16:34:43 +00:00
Cristian Tuns
b3bf09cc0d Backed out 6 changesets (bug 1816934, bug 1817182, bug 1817179, bug 1817183) for causing dt failures in browser_jsterm_autocomplete_null.js CLOSED TREE
Backed out changeset 17d4c013ed92 (bug 1817183)
Backed out changeset cfed8d9c23f3 (bug 1817183)
Backed out changeset 62fe2f589efe (bug 1817182)
Backed out changeset 557bd773fb85 (bug 1817179)
Backed out changeset 7f8a7865868b (bug 1816934)
Backed out changeset d6c1d4c0d2a0 (bug 1816934)
2023-02-17 10:51:33 -05:00
Mark Banner
0ba34b9422 Bug 1817183 - Update consumers of services/fxaccounts to import ES modules directly. r=markh,settings-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D170062
2023-02-17 09:01:45 +00:00
Jason Prickett
9a757757ea Bug 1788996 - Add telemetry call when feature callout parent doesn't exist r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D157750
2023-02-15 02:23:54 +00:00
Marian-Vasile Laza
4a61d97608 Backed out changeset 2ca3d042a78d (bug 1801204) for causing multiple bc failures. 2023-02-14 00:19:16 +02:00
Kelly Cochrane
324e9bc05f Bug 1801204 - Update recently-closed-tabs.mjs to be template-driven r=sfoster,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D169010
2023-02-13 20:56:56 +00:00
Mark Banner
cdf8548a04 Bug 1814931 - Convert services/sync imports to direct ES imports. r=markh,settings-reviewers,credential-management-reviewers,mconley,dimi
Differential Revision: https://phabricator.services.mozilla.com/D168837
2023-02-13 11:44:29 +00:00
Kelly Cochrane
01c8fb2cc8 Bug 1781829 - Update contentTheme.js to set attributes and CSS variables on :root instead of body r=dao,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D167869
2023-02-06 14:25:39 +00:00
Kelly Cochrane
831445ae97 Bug 1791089 - Only update Tab Pickup nodes when necessary r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D167607
2023-02-02 22:18:22 +00:00
Shane Hughes
5272e82bf7 Bug 1805177 - Make Escape key dismiss Feature Callouts. r=mviar
Set up event handlers so that pressing Escape dismisses Feature
Callouts. If an interactive element outside of the Callout is focused,
then the Escape key will not be consumed. Also consolidate all the event
handlers into a single switch statement so we won't need to continue
adding more callback bindings (they were only necessary before
encapsulation was implemented). Also change the names of a couple
formerly pseudo-private methods that we're now referencing externally.

Differential Revision: https://phabricator.services.mozilla.com/D168307
2023-02-01 17:52:12 +00:00
Gijs Kruitbosch
efef52fc92 Bug 1795255 - autofix duplicate imports in tests under browser/, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D166179
2023-01-31 11:48:41 +00:00
Sam Foster
f98ddeb374 Bug 1782556 - Make sure lastTabFetch is actually changing when we update it in the notification dot tests. r=niklas
* And synthesize clicks on the fxview button to ensure we're getting the correct window focus and  visibility while asserting on the state
* Ensure the lastTabFetch pref is reset at the top of the tests, and in each test

Differential Revision: https://phabricator.services.mozilla.com/D167623
2023-01-26 20:25:35 +00:00
Stanca Serban
d008113094 Backed out changeset a544e102fa0e (bug 1781829) for causing mochitests failures in browser_ext_themes_ntp_colors.js. CLOSED TREE 2023-01-26 20:24:58 +02:00
Kelly Cochrane
8cc2e24547 Bug 1781829 - Update contentTheme.js to set attributes and CSS variables on :root instead of body r=dao
Differential Revision: https://phabricator.services.mozilla.com/D167869
2023-01-26 16:14:31 +00:00
Sam Foster
b93fcda801 Bug 1784979 - Move some firefoxview test helpers to a shareable module. r=sclements,aminomancer
* Create a sharable module for the core Firefox-View test helpers
* Adjust firefoxview's tests (head.js) to use the helper module
* Adjust messaging-system tests to use the helper module  where these helpers were temporarily duplicated
* Adjust newtab tests to use the helper module

Differential Revision: https://phabricator.services.mozilla.com/D167589
2023-01-24 22:40:44 +00:00
Kelly Cochrane
69725bd383 Bug 1792017 - Prevent ability to multiselect hidden tabs such as Fx View r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D167306
2023-01-23 14:44:23 +00:00
Meg Viar
a3e99a2057 Bug 1806425 - Make value of source in Feature Callout and page in its telementry more consistent r=jprickett,aminomancer
Unify the values of "source" and "page" as used in FeatureCallout.sys.mjs:
- Explicitly pass in a value for "page" when instantiating a Feature Callout and use this for the value of "page" when sending Feature Callout telemetry and as the "source" when making calls to `sendTriggerMessage`. This avoids the risk of including non-about: page URLs or PDF file extensions in our telemetry.
- Set the value of "page" in an HTML data attribute that can be accessed for use in about:welcome telemetry for Spotlight and Feature Callouts.
- Update references to the page value previously used as the page/source for telemetry from `about:firefoxview` Feature Callouts from "firefoxview"  to "about:firefoxview"
- Pass the token "chrome" when creating a callout from the browser chrome and update references to the source in PDF.js messages' targeting
- Update the page value expected in automated tests as needed

Differential Revision: https://phabricator.services.mozilla.com/D165910
2023-01-20 16:53:30 +00:00
Kelly Cochrane
4f996eda52 Bug 1796409 - Don't display synced tabs with duplicate URLs unless it's the most recently accessed instance r=sclements,markh
Differential Revision: https://phabricator.services.mozilla.com/D166579
2023-01-20 16:37:14 +00:00
Gijs Kruitbosch
9946c4fcbb Bug 1810995 - update BrowserTestUtils.loadURI consumers to use loadURIString (automated) - browser - r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D167153
2023-01-19 20:16:42 +00:00
Shane Hughes
b079a2b921 Bug 1810653 - Update feature callout position tests. r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D166979
2023-01-18 11:22:19 +00:00
Bernard Igiri
a5575bb205 Bug 1785268 - Prevent FxView subtitles from being announced as clickable by VO r=Gijs
Changed the the section subtitles to heading tags so that VO will recognize them as part of the heading and not a separate clickable element.

Differential Revision: https://phabricator.services.mozilla.com/D165217
2023-01-17 15:03:55 +00:00
Cosmin Sabou
1b3e1f7e4e Bug 1784343 - disable browser_feature_callout_position and browser_firefoxview_feature_callout_a11y because of permafailures. a=test-only 2023-01-17 04:55:57 +02:00
Kelly Cochrane
16717fca72 Bug 1804244 - Remove existing tabs in Recently Closed tabs list in Fx View if not found in latest closed tabs data r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D166208
2023-01-12 20:20:55 +00:00
Norisz Fay
35d1b4e66c Backed out changeset 2acf2ea39486 (bug 1804244) for causing failures on browser_recently_closed_tabs.js CLOSED TREE 2023-01-12 21:17:15 +02:00
Kelly Cochrane
80b45093f8 Bug 1804244 - Remove existing tabs in Recently Closed tabs list in Fx View if not found in latest closed tabs data r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D166208
2023-01-12 18:35:15 +00:00
Kelly Cochrane
ab69f71cbb Bug 1801976 - Increase margin between Tab Pickup header and setup card to be consistent with Recently Closed section in Fx View r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D166217
2023-01-10 20:34:47 +00:00
Kelly Cochrane
ee5be13d7b Bug 1802889 - Resolve Fx View mobile promo message being incorrectly shown when signing out of current FxA device r=Gijs
There are two things I've added here:
  - The observers for when FxA devices are connected/disconnected were not added/removed as part of this update: https://phabricator.services.mozilla.com/D153069.
  - When a mobile device is the only synced device beyond the current one (desktop) and you remove the current device (desktop), then sign back in from Fx View Tab Pickup banner, `fxAccounts.device.recentDeviceList` only returns the mobile device for some reason (possibly due to device cache). This causes our checks for a secondary device to fail (as we now only have access to the mobile device from `recentDeviceList`, and we're assuming the one device we DO have access to is our current device - which is not the case). This is why Tab Pickup was incorrectly displaying the "Connect a mobile device" message. I've added a check at the start of `refreshDevices()` to manually refresh the device list (ignoring device cache) if the `recentDeviceList` doesn't contain a device with `isCurrentDevice` set to `true`. This is really a workaround for the caching stuff going on behind the scenes, but this does seem to fix things from our end.

Differential Revision: https://phabricator.services.mozilla.com/D165960
2023-01-06 13:11:01 +00:00
Meg Viar
ac7a56423c Bug 1807850 - Firefox View feature reminder messages should not show within 24 hours of skipping feature tour r=aminomancer
Depends on D164824

Differential Revision: https://phabricator.services.mozilla.com/D165629
2022-12-30 20:41:44 +00:00
Jason Prickett
207a4bf65f Bug 1805413 - Implement relative position for feature callout positioning overrides r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D164628
2022-12-29 20:50:48 +00:00
Meg Viar
90822c532c Bug 1805930 - Change featureCallout.mjs to featureCallout.sys.mjs and update all references to filename r=barret,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D164824
2022-12-29 14:27:02 +00:00
Mark Banner
8730eec697 Bug 1806359 - Convert telemetry imports to direct ES imports. r=necko-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,janerik,mconley,sgalich,bytesized,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165002
2022-12-23 12:37:07 +00:00
Cristian Tuns
f5fbaa9482 Backed out 2 changesets (bug 1805413, bug 1805385) for causing mochitest failures CLOSED TREE
Backed out changeset 9010e3c9421e (bug 1805385)
Backed out changeset c168847136ae (bug 1805413)
2022-12-21 21:47:33 -05:00
Jason Prickett
89d094837d Bug 1805385 - Flip direction of absolutely positioned feature callout in RTL layouts r=mviar
Depends on D164628

Differential Revision: https://phabricator.services.mozilla.com/D164592
2022-12-22 01:53:49 +00:00
Jason Prickett
e2a7662474 Bug 1805413 - Implement relative position for feature callout positioning overrides r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D164628
2022-12-22 01:53:49 +00:00