Closed Bug 1837585 Opened 1 year ago Closed 1 year ago

Page is not loading inside Iframe showing block page issue

Categories

(Core :: DOM: Core & HTML, defect, P2)

Firefox 113
defect

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox114 --- wontfix
firefox115 --- fixed
firefox116 --- fixed

People

(Reporter: sudhakarmaurya712, Assigned: sefeng)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0

Steps to reproduce:

When I load an iframe with credentialless enabled using origin trials, then the same domain pages are blocked in iframe

This is the URL where you can reproduce the issue.

https://staging-player.performedia.com/test-all-demo-player/test-gallery-view-for-zoom/?coors-strategy=3

This is the Url which I am adding inside Iframe

https://staging-player.performedia.com/test-all-demo-player/ask-a-question/?&email=test@test.com&fn=test&ln=last&pmtoken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InBtX3JhZ2hhdkBwZXJmb3JtZWRpYS5jb20iLCJyb2xlIjoidXNlciIsInJvb20iOiI1IiwiZXhwIjoxNjg2MzI5ODUwLCJpYXQiOjE2ODYzMDEwNTB9.9zi47NsScEDijq8d8hoxNRPCz8QkyUtjj8DBzV-eq8g&zoomcomp=yes

Expected results:

Inside the Iframe page should work fine

:sefeng, since you are the author of the regressor, bug 1731778, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(sefeng)

Looks like the request of the subdocument caused an redirect, and we blocked the redirect request due to missing COEP headers. Hmm, I think I know what to fix and we need to have a test for this.

We shouldn't block the iframe if the initial request doesn't have valid
headers, we should only check the final request.

Assignee: nobody → sefeng
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

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

Severity: -- → S3
Priority: -- → P2
Pushed by sefeng@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f1fb26526a2e
Make the COEP:Credentialless check ignores the subdocument request if it's a redirect r=valentin,necko-reviewers
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/40568 for changes under testing/web-platform/tests
Flags: needinfo?(sefeng)
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Upstream PR merged by moz-wptsync-bot

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

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

For more information, please visit BugBot documentation.

Flags: needinfo?(sefeng)

Comment on attachment 9338353 [details]
Bug 1837585 - Make the COEP:Credentialless check ignores the subdocument request if it's a redirect r=valentin

Beta/Release Uplift Approval Request

  • User impact if declined: Websites which have enabled Origin Trial for COEP:Credentialless may not function correctly if they load redirected credentialless iframes.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Not risky because COEP: Credentialless is only behind Origin Trial and the change itself is trivial.
  • String changes made/needed:
  • Is Android affected?: Yes
Flags: needinfo?(sefeng)
Attachment #9338353 - Flags: approval-mozilla-beta?

Comment on attachment 9338353 [details]
Bug 1837585 - Make the COEP:Credentialless check ignores the subdocument request if it's a redirect r=valentin

Approved for 115.0b7.

Attachment #9338353 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: