Closed Bug 1934807 Opened 2 months ago Closed 9 days ago

Frameset: anchor with target in another frame does not scroll to target when pressed

Categories

(Core :: DOM: Navigation, defect)

Firefox 134
defect

Tracking

()

VERIFIED FIXED
136 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox133 --- unaffected
firefox134 + verified
firefox135 + verified
firefox136 --- verified

People

(Reporter: bugzilla, Assigned: edgar, NeedInfo)

References

(Regression)

Details

(Keywords: regression, webcompat:platform-bug)

Attachments

(2 files, 2 obsolete files)

Attached file Frameset with 2 sample frames (obsolete) —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0

Steps to reproduce:

I appreciate framesets are well and truly deprecated, but this worked in Firefox 133 so it would appear something has broken it in 134.

A vendor of one of our legacy products supplies a large data dictionary as a frameset. We host it locally on a file share and access it in Firefox via file:///

While it's not sensitive it's not mine to publish so I have attached just the first 2 entries which nevertheless exhibits the faulty behaviour.

DDToc.html (left frame) includes anchor tags with their targets being named fragments in DDMain.htm (right frame), so that clicking <a target="main" href="DDMain.htm#FRAGMENT"> in DDToc.html should scroll to <a name="FRAGMENT"> in DDMain.htm

Note DataDictionary.htm is the container for the frameset. The sample only contains the first 2 entries, but this replicates the issue and so should be sufficient to illustrate the problem.

Actual results:

Clicking the anchor in DDToc.htm does not scroll to the named fragment in DDMain.htm

Expected results:

Until (and including) Firefox 133, clicking the anchor in DDToc.htm scrolled to the name fragment in DDMain.htm

Attached file Frameset.zip
Attachment #9441237 - Attachment is obsolete: true

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Navigation' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Navigation
Product: Firefox → Core

I'm unable to reproduce this failure on Fedora Linux 41 - the scrolling appears to occur in 133, the latest 134 beta, and the latest 135 nightly.

oneofthedamons, would it be possible for you to capture a profile of the failure and attach it here?

Flags: needinfo?(bugzilla)

Well this is interesting. I cannot replicate the issue on MacOS (134-beta) but I can running 134-beta on a newly imaged Windows 10 machine. No issue on 133-release. As the Windows 10 profile was brand new, not signed-in with a Mozilla account, I can't see how it's a profile issue.

Flags: needinfo?(bugzilla)

Is someone able to test on Windows to see if there's something weird with our environment (which I must admit I'd suspect, although I can't think of what it might be) or if this is a Windows-specific bug?

Now that I've been shown how to use mozregression on another bug, I can report mozregression indicates the change was in Bug 1879820 with the pushlog URL: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=43332b0febc24bfdab47366e72b376cf7c68e330&tochange=639d61a9a326ce05c6bd095c628841a03b09c7dc

Thank you for looking into it. Edgar, I'm forwarding this to you. :)

Severity: -- → S3
Flags: needinfo?(echen)
Keywords: regression
Regressed by: 1879820
Assignee: nobody → echen
Flags: needinfo?(echen)
Duplicate of this bug: 1936123
Duplicate of this bug: 1936178

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true

Set release status flags based on info from the regressing bug 1879820

We set up am AutoJSAPI in OnLinkClickSync for trusted clicks as well after
D201373. This causes link clicks to be blocked by nsDocShell::CheckLoadingPermissions()
if the target frame is cross-origin and resides in the same process. Under fission,
this isn't a problem since the load usually occurs in a different process, except
for file:// URLs.

Duplicate of this bug: 1940314
Duplicate of this bug: 1940349

Resetting releases in flight to affected and tracking as we already have 2 duplicates indicating web breakage since we shipped 134.

Duplicate of this bug: 1940697

The bug is marked as tracked for firefox134 (release) and tracked for firefox135 (beta). However, the bug still has low severity.

:hsinyi, could you please increase the severity for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(htsai)
Severity: S3 → S2
Flags: needinfo?(htsai)
Attachment #9444272 - Attachment description: Bug 1934807 - Permit all loads if it is from the link clicking; r?smaug → Bug 1934807 - Consider file: URIs as the same domain for the purpose of frame navigation; r?#dom-core
Attachment #9446524 - Attachment is obsolete: true
Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a278f9295b80 Consider file: URIs as the same domain for the purpose of frame navigation; r=smaug
Status: NEW → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch

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

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox135 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(echen)
Duplicate of this bug: 1941320

Edgar, could you request uplift for the beta and release branches once this has been verified by QA on NIghtly? This is too late for the dot release that we are building today, but I'd love to know our options for the planned dot release next week, thanks!

Comment on attachment 9444272 [details]
Bug 1934807 - Consider file: URIs as the same domain for the purpose of frame navigation; r?#dom-core

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Clicking a targeted link to navigate other frame doesn't work in local files
  • 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: 1. Download test pages in Bug 1934807 comment# 1
  1. Load DataDictionary.htm
  2. Click link in left frame
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Should be low, we only do special handling for file:// URI explicitly.
  • String changes made/needed: None
  • Is Android affected?: Yes
Flags: needinfo?(echen)
Attachment #9444272 - Flags: approval-mozilla-release?
Attachment #9444272 - Flags: approval-mozilla-beta?
Flags: qe-verify+

(I also verified this on latest Nightly)

QA Whiteboard: [qa-triaged]

Verified fixed using Nightly 136.0a1 (20250114093520) on MacOS 14 and Windows 11.

No longer blocks: 1940868
Duplicate of this bug: 1940868
Duplicate of this bug: 1941680

Comment on attachment 9444272 [details]
Bug 1934807 - Consider file: URIs as the same domain for the purpose of frame navigation; r?#dom-core

Approved for 135.0b5.

Attachment #9444272 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified fixed on 135.0b5 (20250115025558)

Duplicate of this bug: 1941742
Flags: needinfo?(echen)
Flags: in-testsuite?

Comment on attachment 9444272 [details]
Bug 1934807 - Consider file: URIs as the same domain for the purpose of frame navigation; r?#dom-core

Approved for our planned 134 dot release, thanks.

Attachment #9444272 - Flags: approval-mozilla-release? → approval-mozilla-release+
Duplicate of this bug: 1941620

Verified fixed on Firefox 134.0.2 (20250120093826) build from Comment 36.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: