Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 075a8d041b63a6ae6a4cc690e2f96dd635914df9
      
https://github.com/WebKit/WebKit/commit/075a8d041b63a6ae6a4cc690e2f96dd635914df9
  Author: Anne van Kesteren <[email protected]>
  Date:   2026-08-26 (Wed, 26 Aug 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    M 
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/w3c-import.log
    A 
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener-existing-iframe-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener-existing-iframe.html
    M 
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener.html
    M 
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener__parent-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener__self-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener__top-expected.txt
    M Source/WebCore/loader/FrameLoader.cpp
    M Source/WebCore/page/LocalDOMWindow.cpp

  Log Message:
  -----------
  window.open() with noopener should not always return null
https://bugs.webkit.org/show_bug.cgi?id=322591

Reviewed by Chris Dumez.

The name lookup in "the rules for choosing a navigable" ignores noopener, so
window.open() can reuse an existing navigable when noopener is set. Two things
were wrong when it did: the reused navigable got its opener set to the caller,
and _self returned null instead of that navigable. _parent and _top were already
correct, as open() resolves them without reaching createWindow().

Spec changes: https://github.com/whatwg/html/pull/12845

Tests: 
imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener-existing-iframe.html
       
imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener.html

Tests upstream: https://github.com/web-platform-tests/wpt/pull/62213

Canonical link: https://commits.webkit.org/319932@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to