Skip to content

Bug 2070130 - Check final URI in CSS loader mime type quirk. r=#style - #364

Closed
emilio wants to merge 1 commit into
mozilla-firefox:autolandfrom
emilio:final-uri-quirk
Closed

emilio wants to merge 1 commit into
mozilla-firefox:autolandfrom
emilio:final-uri-quirk

Conversation

@emilio

@emilio emilio commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

This fixes the Firefox failures in web-platform-tests/wpt#62516.

Implement it behind a pref just-in case. Also, unfortunately we need to
do the same-origin check up-front, because the mime type check can
happen off the main thread.


Lando: link
Bugzilla: bug 2070130

⚠️ This pull request has 4 warnings.
🚫 This pull request has 1 blocker.

@github-actions

Copy link
Copy Markdown
Contributor

View this pull request in Lando to land it once approved.

@emilio
emilio requested a review from a team September 10, 2026 10:03
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

This fixes the Firefox failures in web-platform-tests/wpt#62516.

Implement it behind a pref just-in case. Also, unfortunately we need to
do the same-origin check up-front, because the mime type check can
happen off the main thread.

// Whether our final URI is same-origin with the document that's loading us.
// Only relevant for non-inline sheets.
bool mFinalURISameOrigin : 1 = false;

@dshin-moz dshin-moz Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new - rest are reordered (And compacted)

Comment thread layout/style/Loader.cpp
}
if (StaticPrefs::layout_css_quirks_final_uri_check() &&
!mFinalURISameOrigin) {
return false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly reordering for readability, except for this check being added

@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

lando-worker Bot pushed a commit that referenced this pull request Sep 10, 2026
This fixes the Firefox failures in web-platform-tests/wpt#62516.

Implement it behind a pref just-in case. Also, unfortunately we need to
do the same-origin check up-front, because the mime type check can
happen off the main thread.

Pull request: #364
@lando-worker

lando-worker Bot commented Sep 10, 2026

Copy link
Copy Markdown

Pull request closed by commit 6d5a2bb

@lando-worker lando-worker Bot closed this Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants