Closed Bug 2044651 Opened 27 days ago Closed 5 days ago

Generate QR code… option is available when multiple tabs are selected if accessed from File > Share or url bar context menu

Categories

(Firefox :: Menus, defect)

Firefox 153
Desktop
All
defect

Tracking

()

VERIFIED FIXED
154 Branch
Tracking Status
firefox153 --- verified
firefox154 --- verified

People

(Reporter: oardelean, Assigned: overholt)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Attached image image.png

Notes

  • Please refer to the attached screenshot for more details.
  • The option is greyed out if accessed from the tab context menu.
  • The same behavior can be observed on macOS if accessing the option from the address bar context menu.
  • The option will generate the QR code for whichever tab is active.

Found in

  • Nightly 153.0a1;

Affected versions

  • Nightly 153.0a1;

Tested platforms

  • Ubuntu 22;
  • Windows 10;
  • macOS 15;

Affected platforms

  • macOS 15;
  • Ubuntu 22;
  • Windows 10;

Unaffected platforms

  • N/A;

Steps to reproduce

  1. Launch Firefox.
  2. Open 2 or more websites in different tabs and select them.
  3. Press Alt key to enable Menu Bar.
  4. Click on File -> Share -> Generate QR code…

Expected result

  • Generate QR code… option should be greyed out.

Actual result

  • Generate QR code option is available.

Regression range

  • Not a regression.
Duplicate of this bug: 2024800

It's worth noting that when multiple tabs are selected, right-clicking on the multiple selected tabs results in a disabled Share > QR code menu entry.

Misha, what do you think we should do here? I see three options to handle the File > Share and right-click-on-URL-bar cases:

  1. disable the menu item when multiple tabs are selected in these two situations (File > Share and right-click-on-URL-bar )
  2. generate a QR code for each selected tab, having them read when the user goes to each one (since only the foreground tab will have it visible)
  3. leave things as-is, where a QR code is generated and shown in a dialog for the foreground tab and nothing happens on background tabs.
Flags: needinfo?(mbruk)
Attachment #9593709 - Attachment description: WIP: Bug 2044651 - Disable QR code sharing when multiple tabs are selected in the File and address bar menus. r?#sharing-reviewers → WIP: Bug 2044651 - Pass the full tab selection to the File and address bar Share menus. r?#sharing-reviewers
Summary: Generate QR code… option is available when multiple tabs are selected if accessed from the Menu bar -> File entry point → Generate QR code… option is available when multiple tabs are selected if accessed from File > Share or url bar context menu
Assignee: nobody → overholt
Attachment #9593709 - Attachment description: WIP: Bug 2044651 - Pass the full tab selection to the File and address bar Share menus. r?#sharing-reviewers → Bug 2044651 - Pass the full tab selection to the File and address bar Share menus. r?#sharing-reviewers
Status: NEW → ASSIGNED

Thanks for laying out your thoughts. I think option 1 is the cleanest.

Flags: needinfo?(mbruk)
Pushed by jhirsch@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/36492ab7f78f https://hg.mozilla.org/integration/autoland/rev/ca00c14de7c0 Pass the full tab selection to the File and address bar Share menus. r=sharing-reviewers,urlbar-reviewers,jhirsch,hsohaney,Standard8
Status: ASSIGNED → RESOLVED
Closed: 5 days ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch

The patch landed in nightly and beta is affected.
:overholt, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(overholt)

Uplift requested.

Flags: needinfo?(overholt)
Attachment #9602038 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Minor UX bug
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: QE found this. On macOS, in addition to right-clicking on the tab, there are 2 additional entry points for sharing QR codes: 1. File > Share and 2. right-click on URL bar. When multiple tabs are selected, Share > Generate QR Code... should be disabled in all 3 cases but without this patch, the File > Share and right-click-on-URL-bar cases show it.
  • Risk associated with taking this patch: low
  • Explanation of risk level: This is a new feature, has automated tests, and can be turned off via a pref if things go poorly.
  • String changes made/needed?: no
  • Is Android affected?: no
Flags: qe-verify+
Attachment #9602038 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [S3 ][QA-5241][qa-found-in-c153] → [S3 ][QA-5241][qa-found-in-c153][uplift][qa-ver-needed-c154/b153]
QA Contact: oardelean

Issue is verified as fixed on Firefox Nightly 154.0a1 and Firefox 153.0b6 on Windows 10, Ubuntu 22, macOS 13.

Status: RESOLVED → VERIFIED
QA Whiteboard: [S3 ][QA-5241][qa-found-in-c153][uplift][qa-ver-needed-c154/b153] → [S3 ][QA-5241][qa-found-in-c153][uplift][qa-ver-done-c154/b153]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: