-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=265806 rdar://119142736 Reviewed by Tim Nguyen. If there is no global object, return null. This matches the behavior of Chromium. * LayoutTests/fast/dom/view-transition-without-global-object-expected.txt: Added. * LayoutTests/fast/dom/view-transition-without-global-object.html: Added. * Source/WebCore/dom/Document.cpp: (WebCore::Document::startViewTransition): * Source/WebCore/dom/Document.h: Canonical link: https://commits.webkit.org/272959@main
- Loading branch information
1 parent
0c33928
commit 256b846
Showing
4 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
LayoutTests/fast/dom/view-transition-without-global-object-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALERT: result should be null:null | ||
This test passes if it does not crash. |
6 changes: 6 additions & 0 deletions
6
LayoutTests/fast/dom/view-transition-without-global-object.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<script> | ||
if (window.testRunner) { testRunner.dumpAsText() } | ||
let d = document.implementation.createDocument("", null); | ||
alert("result should be null:" + d.startViewTransition(()=>{alert('callback should not be called')})) | ||
</script> | ||
This test passes if it does not crash. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters