Closed Bug 2031472 Opened 1 month ago Closed 6 days ago

Implement flows for signed-out and single-device users in context menus

Categories

(Firefox :: Sync, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: bytesized, Assigned: bytesized)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxsync-])

Attachments

(3 files, 3 obsolete files)

From Jira:

Work is complete when the following is true:

  • “send to mobile” is visible when the user is signed out, signed in with sync disabled, or only has a single device connected
  • Signed out users
    • opens a new tab to a sign-in/sign-up page with tracking data when “send to mobile” is clicked
    • call promiseConnectAccountURI() (example usage) with “send-tab-link-context-menu” as the entry point to open a new tab with the sign-in page
  • Signed in users with sync disabled
    • reveals a submenu item with an “Enable sync to send a tab” item which opens about:settings#sync when “send to mobile” is clicked
  • Single-device users
    • displays two menu items divided by a separator when “send to mobile” is clicked as below
      • Connect your phone
      • Menu Separator
      • Don’t see your device?
    • when “Connect your phone” is clicked call promisePairingURI() (example usage) with “send-tab-link-context-menu” as the entry point to open a new tab with pairing instructions
    • when “Don’t see your device?” is clicked a new tab is opened with a localized SUMO article of Send Tab from Firefox desktop to other devices | Firefox Help.
Attachment #9570898 - Attachment description: WIP: Bug 2031472 - Implement flows for signed-out and single-device users in context menus r=LougeniaBailey!,skhamis! → Bug 2031472 - Implement flows for signed-out and single-device users in context menus r=LougeniaBailey!,skhamis!
Whiteboard: [fxsync-]

Ready to go (this is me testing linkage, disregard).

Pushed by pstanciu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7699f5484de2 https://hg.mozilla.org/integration/autoland/rev/320607af54ab Revert "Bug 2031472, Bug 2025884 - Test fixes for Bug 2031472 and 2025884 patches r=skhamis" for causing bc failures @ browser_contextmenu_sendpage.js

Working on it

Flags: needinfo?(bytesized)
Pushed by pstanciu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/769bf6779362 https://hg.mozilla.org/integration/autoland/rev/f396b9e62055 Revert "Bug 2031472, Bug 2025884 - Test fixes for Bug 2031472 and 2025884 patches r=skhamis" for causing bc failures @browser_contextmenu.js
Flags: needinfo?(bytesized)
Flags: needinfo?(bytesized)

Backed out for causing multiple failures.

Flags: needinfo?(bytesized)
Flags: needinfo?(bytesized)
Pushed by nfay@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9476cf75b716 https://hg.mozilla.org/integration/autoland/rev/3710e892567f Revert "Bug 2031472, Bug 2025884 - Test fixes for Bug 2031472 and 2025884 patches r=skhamis" for causing bc failures @ browser_sendtab_toolbarbutton.js

Backed out for causing bc failures @ browser_sendtab_toolbarbutton.js

Backout link

Push with failures

Failure log
Failure log 2

Flags: needinfo?(bytesized)
Flags: needinfo?(bytesized)
Status: NEW → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
Attachment #9584745 - Flags: approval-mozilla-beta?
Attachment #9584746 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Product says target for this feature is 151.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: Add "Send tab" button to toolbar (it looks like a phone with an arrow on the right side pointing to it). Navigate to an online page such as wikipedia. Click toolbar button. Check that "Sign in to send tabs" takes you to a sign in page at https://accounts.firefox.com.

Sign in to a Firefox account. Ensure that no other devices are connected to the account. Click the toolbar button. Check that that "Connect phone" takes you to a URL beginning with https://accounts.firefox.com/pair. Check that "Don't see your device?" takes you to the localized version of https://support.mozilla.org/en-US/kb/send-tab-firefox-desktop-other-devices?redirectslug=send-tab-firefox-desktop-mobile&redirectlocale=en-US#w_i-dont-see-my-device-listed.

Disable sync by clicking "Manage Sync", then "Disconnect". Click the toolbar icon. Check that clicking “Enable sync to send a tab” opens a new tab to about:settings#sync.

Re-enable sync by going to about:settings#sync and clicking "Turn on syncing". Go to about:profiles and make a new profile. Sign in to Firefox with the same account used before. Navigate to an online page such as wikipedia. Click the toolbar icon. Send the tab to the first profile. Click on the notification to accept the tab being sent. Check that the tab is opened in the first profile.

All checks above should be repeated for these menus:

  • Right click on the background of the page and go to "Send to Mobile"/"Send to Device".
  • Right click on a link in the page and go to "Send Link to Mobile"/"Send link to Device".
  • Right click on a tab and go to "Send to Mobile"/"Send to Device".
  • Risk associated with taking this patch: medium
  • Explanation of risk level: Two small features are basically being added here. But testing suggests that they work and it seems unlikely that they fail in a way that affects anything other than the new functionality.
  • String changes made/needed?: Yes. D294847 contains a fluent migration of 3 strings and the addition of main-context-menu-send-to-mobile-sign-in. D295722 removes strings that are no longer needed.
  • Is Android affected?: no
Attachment #9584747 - Flags: approval-mozilla-beta?
Flags: qe-verify+

(In reply to Phabricator Automation from comment #22)

  • String changes made/needed?: Yes. D294847 contains a fluent migration of 3 strings and the addition of main-context-menu-send-to-mobile-sign-in. D295722 removes strings that are no longer needed.

The patch introduces 4 strings though, so 1 will remain untranslated. Similar to bug 2025884, this doesn't feel like something we should uplift to beta when we're only 4 days away from RC cut-off.

:bytesized, this is medium risk, and as mentioned in Comment 24 it also contains strings.
This is not suitable for uplift, but adding a need-info before rejecting in case there is some context missing?
I see it mentioned that Product wants to target 151, but this is not suitable given the risk and strings.

Flags: needinfo?(bytesized)
QA Whiteboard: [uplift][qa-ver-needed-c152/b151]

Thanks for letting me know.

Flags: needinfo?(bytesized)
Attachment #9584747 - Attachment is obsolete: true
Attachment #9584747 - Flags: approval-mozilla-beta?
Attachment #9584746 - Attachment is obsolete: true
Attachment #9584746 - Flags: approval-mozilla-beta?
Attachment #9584745 - Attachment is obsolete: true
Attachment #9584745 - Flags: approval-mozilla-beta?
Blocks: 2039048
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: