forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setAppBadge() should reject with SecurityError if child iframe is not…
… same origin-domain as top-origin https://bugs.webkit.org/show_bug.cgi?id=256241 rdar://107109904 Reviewed by NOBODY (OOPS!). Now does same origin-domain check against top-level origin. Relevant spec change: w3c/badging#107 * LayoutTests/imported/w3c/web-platform-tests/badging/setAppBadge_cross_origin.sub.https-expected.txt: * Source/WebCore/page/Navigator.cpp: (WebCore::Navigator::setAppBadge):
- Loading branch information
1 parent
48759de
commit 2bd51ff
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...s/imported/w3c/web-platform-tests/badging/setAppBadge_cross_origin.sub.https-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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
|
||
PASS Test that navigator.setAppBadge is available | ||
FAIL Test that calling setAppBadge in a cross-origin iframe throws a SecurityError assert_equals: setAppBadge should have rejected with an error expected "error" but got "success" | ||
PASS Test that calling setAppBadge in a cross-origin iframe throws a SecurityError | ||
PASS Test that calling setAppBadge in a same-origin iframe succeeds | ||
|
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