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

Unified Diff: Source/modules/serviceworkers/NavigatorServiceWorker.idl

Issue 1199183002: Throw a SecurityError when navigator.serviceWorker is accessed in a sandboxed iframe. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use ASSERT_NO_EXCEPTION Created 5 years, 6 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: Source/modules/serviceworkers/NavigatorServiceWorker.idl
diff --git a/Source/modules/serviceworkers/NavigatorServiceWorker.idl b/Source/modules/serviceworkers/NavigatorServiceWorker.idl
index 6ed88f01411fcba70268cce24f8f304dd4e8bf52..85fa9945662cc7de1d25ac2242aa3b3b3df852e6 100644
--- a/Source/modules/serviceworkers/NavigatorServiceWorker.idl
+++ b/Source/modules/serviceworkers/NavigatorServiceWorker.idl
@@ -6,5 +6,5 @@
[
RuntimeEnabled=ServiceWorker,
] partial interface Navigator {
- readonly attribute ServiceWorkerContainer serviceWorker;
+ [RaisesException] readonly attribute ServiceWorkerContainer serviceWorker;
};
« no previous file with comments | « Source/modules/serviceworkers/NavigatorServiceWorker.cpp ('k') | Source/platform/weborigin/SecurityOrigin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698