Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8062e71631724793be5c84591fb16aa259d3c433
      
https://github.com/WebKit/WebKit/commit/8062e71631724793be5c84591fb16aa259d3c433
  Author: Jean Haberer <[email protected]>
  Date:   2026-02-10 (Tue, 10 Feb 2026)

  Changed paths:
    A 
LayoutTests/model-element/immersive/model-element-immersive-iframe-restrictions-expected.txt
    A 
LayoutTests/model-element/immersive/model-element-immersive-iframe-restrictions.html
    M Source/WebCore/dom/DocumentImmersive.cpp

  Log Message:
  -----------
  Immersive API should only work in the top-level frame
https://bugs.webkit.org/show_bug.cgi?id=307165
rdar://168498448

Reviewed by Etienne Segonzac.

Restrict the API usage to the top level frame with additional checks in 
DocumentImmersive

Test: model-element/immersive/model-element-immersive-iframe-restrictions.html
Add tests to ensure that the immersive API is only available from the top level 
frame

* 
LayoutTests/model-element/immersive/model-element-immersive-iframe-restrictions-expected.txt:
 Added.
The first test fails but this is expected and will be fixed with a follow up: 
rdar://168579137

* 
LayoutTests/model-element/immersive/model-element-immersive-iframe-restrictions.html:
 Added.
* Source/WebCore/dom/DocumentImmersive.cpp:
(WebCore::DocumentImmersive::immersiveEnabled):
(WebCore::DocumentImmersive::requestImmersive):

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



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

Reply via email to