Closed Bug 1617889 Opened 5 years ago Closed 5 years ago

Fix COOP comparison

Categories

(Core :: Networking: HTTP, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: valentin, Assigned: valentin)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(5 files)

This is wrong, as it excludes same-origin-allow-popups

  if ((documentPolicy & nsILoadInfo::OPENER_POLICY_SAME_ORIGIN) &&
      documentOrigin->Equals(resultOrigin)) {

See the To match cross-origin opener-policies section at https://gist.github.com/annevk/6f2dd8c79c77123f39797f6bdac43f3e

If current's top-level browsing context's active document's cross-origin
opener-policy is "same-origin" or "same-origin + COEP", then:

  • Let currentDoc be current's active document.
  • If currentDoc's origin is not same origin with currentDoc's top-level
    origin, then set noopener to true.

https://gist.github.com/annevk/6f2dd8c79c77123f39797f6bdac43f3e#changes-to-choosing-a-browsing-context

Depends on D65524

Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/29444a6692c2 Remove unneeded expectation files r=michal https://hg.mozilla.org/integration/autoland/rev/9842e5475b0b Fix COOP comparison check r=michal https://hg.mozilla.org/integration/autoland/rev/1b6ef44fd48d Fix CrossOriginOpenerPolicy inheritance from a cross origin iframe r=nika https://hg.mozilla.org/integration/autoland/rev/91cb5f31a5e2 COOP: Open new windows as "noopener" when origins don't match r=nika
Pushed by rmaries@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/921af6c42e05 Update expected fail on linux64 QuantumRender debug. CLOSED TREE
Regressions: 1623571
Blocks: 1610173
Blocks: 1610095
Blocks: 1609303
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: