Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/promise-realm.html

Issue 2713413002: Blink bindings: use v8 to enforce method call access checks (Closed)
Patch Set: Restore comment Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/security/promise-realm.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/promise-realm.html b/third_party/WebKit/LayoutTests/http/tests/security/promise-realm.html
index d4ae08c4a12828d15c01e0800a8e27ee95f6dd5d..2eaccfbe4427951c574879140909c32d29355b2a 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/promise-realm.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/promise-realm.html
@@ -49,13 +49,8 @@ test(() => {
assert_unreached("type mismatch error, case 3: must be a reject promise");
});
- p = fetch.call(cross, 'resources/dummy.html');
- assert_equals(
- p.constructor.constructor,
- Function,
- "cross origin access");
- p.then(() => {
- assert_unreached("cross origin access: must be a reject promise");
+ assert_throws("SecurityError", function () {
+ fetch.call(cross, 'resources/dummy.html')
});
}, "Reject promises must be created in the current realm");

Powered by Google App Engine
This is Rietveld 408576698