Closed Bug 1970084 Opened 9 months ago Closed 9 months ago

Page actions obscure the domain in the toolbar

Categories

(Firefox for Android :: Toolbar, defect)

Firefox 140
All
Android
defect

Tracking

()

VERIFIED FIXED
141 Branch
Tracking Status
firefox139 --- unaffected
firefox140 --- verified
firefox141 --- verified
firefox142 --- verified

People

(Reporter: michel, Assigned: royang)

References

Details

(Keywords: csectype-spoof, reporter-external, sec-low, Whiteboard: [fxdroid][group3])

Attachments

(6 files, 2 obsolete files)

Steps to reproduce

  1. Take a phone with a small screen. I have the Sony Xperia 5 V, but there are smaller ones.
  2. Navigate to https://about.bankofamerica.com/en
  3. Notice that the Toolbar only shows ofamerica.com. There is not enough room to show the entire domain

Expected behavior

The OriginView should be wide enough to fully display common domain names.

Actual behavior

When reader mode page action is shown on a device with a small screen, the OriginView can only show 13 characters which is shorter than many common domain names. There is even less space when translations are also active.

Device information

  • Firefox version: 141
  • Android device model: Sony Xperia 5 V
  • Android OS version: 15

Any additional information?

I'm marking this as a security issue because.

  1. The problem was introduced in 140 with the share page action added to the toolbar. I believe that this is a recent an unknown issue.
  2. The malicious page needs to have reader mode available. This is a trick that might not be obvious for others.

There's a Reddit post about this issue so maybe this doesn't need to be hidden.

Keywords: sec-low

I wasn't aware of the Reddit post when I reported this issue. I noticed it when experimenting with the toolbar for another issue. I agree that in that case this issue can be made public. It would be good to get attention from the sec team before this makes it to release.

However, unlike in the Reddit post, my screenshot was made with normal scaling.

Having too little space available for displaying the URL is an old issue that we know about and are planning to address soon by moving toolbar buttons to the menu and/or the navigation toolbar.

I believe that a solution for this issue is needed before the change makes it into stable. It makes it easy for a website to cover the domain in the toolbar.

I propose to not show the share action on small screens (like it's currently in stable) and to reduce the spacing between page action icons. Is it a solution that would be accepted?

Flags: needinfo?(petru)
Summary: Page actions obsure the domain in the toolbar → Page actions obscure the domain in the toolbar
Group: mobile-core-security
Duplicate of this bug: 1970184

(In reply to Michel Le Bihan from comment #7)

I propose to not show the share action on small screens (like it's currently in stable) and to reduce the spacing between page action icons. Is it a solution that would be accepted?

Thanks!
We'll do a bit more than this.

Flags: needinfo?(petru)

Share and translation page action was added as part of the toolbar redesign. However, since we still have home button, tabs tray button and menu button, the original toolbar is too crowded to support it.

Remove share and translation page action until we can decide if we should have those in the toolbar. Any future actions will be done as part of the toolbar redesign work.

Assignee: nobody → royang
Whiteboard: [fxdroid][group3]
Attachment #9492464 - Attachment description: Bug 1970084 - Removed share and translation page actions. → Bug 1970084 - Removed share and translation page actions in non tabet devices.
Attachment #9492464 - Attachment description: Bug 1970084 - Removed share and translation page actions in non tabet devices. → Bug 1970084 - Removed share and translation page actions in small window devices.
See Also: → 1970453
Pushed by royang@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1d0fba3a50de https://hg.mozilla.org/integration/autoland/rev/30be911208cb Removed share and translation page actions in small window devices. r=android-reviewers,petru
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch

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

For more information, please visit BugBot documentation.

Flags: needinfo?(royang)
Flags: needinfo?(royang)
Attachment #9494362 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined: Smaller devices will have toolbar content obscured by the page actions
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: Confirm on phone with protrait, share and translation page actions are not shown.
  • Risk associated with taking this patch: Low
  • Explanation of risk level: Only hiding share and translate page actions.
  • String changes made/needed: None
  • Is Android affected?: yes
Attachment #9494362 - Attachment is obsolete: true
Attachment #9494362 - Flags: approval-mozilla-beta?

Shouldn't this fix be backported to 140? Being able to see the domain of the visited is a very important feature.

related mozilla-beta translation test failures https://bugzilla.mozilla.org/show_bug.cgi?id=1971897 – looks like this proposed uplift will disable the tests

Flags: needinfo?(dmeehan)

Assignee rejected this uplift request. It was too risky to take in 140.

Flags: needinfo?(dmeehan)
See Also: → 1971897
See Also: → 1972487

Comment on attachment 9492464 [details]
Bug 1970084 - Removed share and translation page actions in small window devices.

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Not enough space to show the URL.
    Multiple user reports asking to see more of the current URL.
    UX requested uplift.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: - visit a website which can be translated and viewed in reader mode, like https://pt.wikipedia.org/wiki/Wikip%C3%A9dia:P%C3%A1gina_principal
  • verify than on small screens the share and translation buttons are not shown - while the reader mode still is
  • verify that on large screens all 3 buttons - share, translation and reader mode are shown
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small patch already existent in Nightly and Beta.
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9492464 - Flags: approval-mozilla-release?
Flags: qe-verify+

Comment on attachment 9492464 [details]
Bug 1970084 - Removed share and translation page actions in small window devices.

There are conflicts with release, would need a separate patch.

Attachment #9492464 - Flags: approval-mozilla-release?

Adding here the original patch rebased on release.
The only difference from what we added in Nightly is not having this code as the initTranslationsUpdates method does not exist yet in release.

Comment on attachment 9498320 [details] [diff] [review]
Bug_1970084_-_Removed_share_and_translation_page_actions_in_small_window_devices_in_release.patch

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Not enough space to show the URL.
    Multiple user reports asking to see more of the current URL.
    UX requested uplift.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: - visit a website which can be translated and viewed in reader mode, like https://pt.wikipedia.org/wiki/Wikip%C3%A9dia:P%C3%A1gina_principal
  • verify than on small screens the share and translation buttons are not shown - while the reader mode still is

  • verify that on large screens all 3 buttons - share, translation and reader mode are shown

  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small patch already present in Nightly and Beta.
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9498320 - Flags: approval-mozilla-release?
Attachment #9498433 - Flags: approval-mozilla-release?

Comment on attachment 9498320 [details] [diff] [review]
Bug_1970084_-_Removed_share_and_translation_page_actions_in_small_window_devices_in_release.patch

Dismissing this request in favour of the Phabricator patch.

Attachment #9498320 - Flags: approval-mozilla-release?
Attachment #9498433 - Attachment is obsolete: true
Attachment #9498433 - Flags: approval-mozilla-release?
Attachment #9498636 - Flags: approval-mozilla-release?

firefox-release Uplift Approval Request

  • User impact if declined: Not enough space to show the URL. Multiple user reports asking to see more of the current URL. UX requested uplift.
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: - visit a website which can be translated and viewed in reader mode, like https://pt.wikipedia.org/wiki/Wikip%C3%A9dia:P%C3%A1gina_principal verify than on small screens the share and translation buttons are not shown - while the reader mode still is verify that on large screens all 3 buttons - share, translation and reader mode are shown.
  • Risk associated with taking this patch: Small
  • Explanation of risk level: Small targetted change, verified in Nightly and Beta. There was one related spill fixed in an accompanying uplift request.
  • String changes made/needed: No
  • Is Android affected?: yes
Attachment #9498636 - Flags: approval-mozilla-release? → approval-mozilla-release+
See Also: → 1975878

Remove share and translation page action until we can decide if we should have those in the toolbar. Any future actions will be done as part of the toolbar redesign work.

Hi Roger, do you know if Is there a follow-up ticket setup for this work yet?

We've already received a report on translations icon not showing up when expected on an offer translate page. I'll keep linking against this ticket for now.

Flags: needinfo?(royang)

Comment on attachment 9498928 [details]
Screenshot 2025-07-07 at 16.55.06.png

Verified as fixed on the latest Nightly 142.0a1 - 5.07.2025 and Firefox 141.0b6 with Xiaomi Pad5 (Android 13) and Poco M4 Pro (Android 12).

Flags: qe-verify+
Regressions: 1976032
Attached image addressBar.jpg

Verified as fixed in latest Firefox for Android 140.0.4 dot release with Google Pixel 8 Pro (Android 15), Samsung GalaxyZ Fold 4 (Android 14), Redmi 9C NFC (Android 10) and Samsung Galaxy S9 (Android 8).

  • on small screens the share and translation buttons are not shown, while the reader mode icon is displayed;
  • on large screens all 3 buttons - share, translation and reader mode are displayed;
Status: RESOLVED → VERIFIED
Flags: needinfo?(royang)
See Also: → 1978330
Duplicate of this bug: 1969051
Duplicate of this bug: 1974568
Regressions: 1978676
See Also: → 1982045
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: