Commit Graph

585 Commits

Author SHA1 Message Date
Kelly Cochrane
ddc240c8c3 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
ef7cdd4868 Backed out changeset 649252a67839 (bug 1809661) for causing failures complaining about _createRecentTabsList . CLOSED TREE 2023-03-08 21:12:35 +02:00
Sam Foster
e99667d462 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
90d92c83b3 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
4ed597ef90 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
1057069b47 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
0350da18d5 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
4bf57c85ea 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
8c0684e496 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
8241a2637c 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
41c9616e89 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
3d928092de 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
Jason Prickett
cc1b46af45 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
7357f8910d Backed out changeset 2ca3d042a78d (bug 1801204) for causing multiple bc failures. 2023-02-14 00:19:16 +02:00
Kelly Cochrane
e79280b5e0 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
18898557b3 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
38679ba171 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
7f19e919fb 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
b965c4660a 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
d38ef12263 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
Sam Foster
030d364ae0 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
9e73c55f7b 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
04e1d3b419 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
522db5de48 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
5a903703c5 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
8c9da4944a 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
Cosmin Sabou
bff0bdcee9 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
7fdda39974 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
6a7b899764 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
89fd2e6fb8 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
Meg Viar
58cfaea214 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
9d80e97429 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
Mark Banner
df47c60747 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
Sam Foster
e4876baab3 Bug 1805391 - Ensure support links get their hrefs populated. r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D164926
2022-12-19 10:42:57 +00:00
Bernard Igiri
412503fb9c Bug 1799393 - Prevent hidden Fx View tab from triggering the closing multiple tabs warning in Windows and Linux r=Gijs
Updated the tab closing prompt logic to use the number of visible tabs open to determine if the prompt should show in Windows and Linux.

Differential Revision: https://phabricator.services.mozilla.com/D162627
2022-12-13 14:27:17 +00:00
Sam Foster
1cf1592081 Bug 1803505 - Simplify the tab-pickup-container initialization. r=sclements
* Adds a promise that resolves when the tab-pickup-list is ready
* Use that promise to trigger tab data request for the list when we enter the setup-complete state
* Remove the workarounds for overlapping setup and tabs requests

Differential Revision: https://phabricator.services.mozilla.com/D163750
2022-12-07 16:42:19 +00:00
Kelly Cochrane
60c2e8256e Bug 1804099 - Add new telemetry event for recording tab dismissal from Recently Closed tabs in Fx View r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D163878
2022-12-07 15:05:13 +00:00
Shane Hughes
3e873bc26b Bug 1803983 - Refactor feature callout code. r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D163798
2022-12-06 16:04:28 +00:00
Gijs Kruitbosch
965c6e86fc Bug 1803158 - convert session restore consumers to reference the sys.mjs files instead, r=webdriver-reviewers,perftest-reviewers,extension-reviewers,credential-management-reviewers,Standard8,sgalich,whimboo,sparky,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D163350
2022-12-06 16:02:03 +00:00
Sarah Clements
83cc18d749 Bug 1794610 - Change error state for password change r=sfoster,kcochrane,fluent-reviewers,flod
* Add new strings and add a new signed-out error type
* Update tests

Differential Revision: https://phabricator.services.mozilla.com/D162275
2022-12-06 14:30:39 +00:00
Shane Hughes
96765efb25 Bug 1799195 - Adjust feature callout resize test window sizes. r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D163797
2022-12-05 15:38:55 +00:00
Greg Tatum
b9cd5fa6a0 Bug 1685180 - Ensure tests all properly set fluent args; r=nordzilla,settings-reviewers,Gijs
Either provide the dynamic data correctly in tests, or provide empty
strings when it doesn't exist.

Differential Revision: https://phabricator.services.mozilla.com/D162336
2022-12-01 21:40:57 +00:00
Shane Hughes
db26095c40 Bug 1795288 - Feature Callouts: add dismiss telemetry. r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D163531
2022-12-01 16:42:18 +00:00
Hanna Jones
c238132e26 Bug 1788800 - run colorways card tests in the same window take two r=sfoster
This patch completes what I tried to do in D162617. Poking around at this again I realized (embarassingly) that I forgot to change one test to run in the same window, and it was the test that failed consistently on try when run in isolation.

Based on the profile Florian helped me look at it seemed like we had a window leak and were possibly still trying to run animations in a window that had been closed. It  feels plausible that going back to what we were doing before my initial change - running all the tests in the same window and only closing that window once they had all finished - might still be the fix for this intermittent.

Recent try push looked good: https://treeherder.mozilla.org/jobs?repo=try&revision=3836fc6ceeb2f9c522a2d2a0126f6bdc9aea1bb6&selectedTaskRun=arwidi8RROCcJkUY-hMg1g.0

Compared to running similar jobs without this one change: https://treeherder.mozilla.org/jobs?repo=try&revision=8c2345419537e5465104edfd29c270496db90cef

Differential Revision: https://phabricator.services.mozilla.com/D163476
2022-11-30 21:24:16 +00:00
Kelly Cochrane
bacaafe92b Bug 1787945 - Add dismiss functionality to recently closed tabs list items in Fx View r=ayeddi,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D161848
2022-11-30 16:24:15 +00:00
Meg Viar
18abc909b1 Bug 1795894 - Enable triggering Feature Callouts in chrome by content location r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D160503
2022-11-30 01:47:23 +00:00
Meg Viar
5d6cd66915 Bug 1802918 - Update Firefox View Feature Callout tests to work after Colorways expire r=aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D163241
2022-11-29 15:43:49 +00:00
Shane Hughes
129615901b Bug 1799195 - Disable feature callout resize test. r=mviar
We can re-enable this test as part of bug 1795973 when the patch for
that is rebased and fully passing.

Differential Revision: https://phabricator.services.mozilla.com/D162446
2022-11-28 15:48:39 +00:00
Sandor Molnar
61f05197c3 Backed out changeset 28484915dc1b (bug 1795894) for causing mochitest failures. CLOSED TREE 2022-11-28 04:33:07 +02:00
Meg Viar
3633b07781 Bug 1795894 - Enable triggering Feature Callouts in chrome by content location r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D160503
2022-11-28 00:54:14 +00:00