forked from web-platform-tests/wpt
-
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.
Improve WPT test coverage for CookieStore API
Differential Revision: https://phabricator.services.mozilla.com/D222963 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1920104 gecko-commit: df1fc10f7b4d25524907e6682d39b1e0a7b7c8d5 gecko-reviewers: edgul, smaug
- Loading branch information
1 parent
acec99e
commit 266b949
Showing
3 changed files
with
39 additions
and
18 deletions.
There are no files selected for viewing
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
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 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>cookieStore on DOMWindow of detached iframe (crbug.com/774626)</title> | ||
<title>cookieStore on DOMWindow of detached iframe</title> | ||
<link rel="help" href="https://github.com/WICG/cookie-store"> | ||
<link rel="author" href="[email protected]" title="Victor Costan"> | ||
<script src="/resources/testharness.js"></script> | ||
|
@@ -14,6 +14,8 @@ | |
const frameWindow = iframe.contentWindow; | ||
|
||
iframe.parentNode.removeChild(iframe); | ||
assert_equals(null, frameWindow.cookieStore); | ||
|
||
// By spec, window.cookieStore isn't nullable. | ||
assert_true(frameWindow.cookieStore != null); | ||
}); | ||
</script> |