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

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

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.h
diff --git a/Source/modules/serviceworkers/NavigatorServiceWorker.h b/Source/modules/serviceworkers/NavigatorServiceWorker.h
index dfe55f946e4578e12773917516916039052cea0a..05124a7faa213bc617c11c831147f7cecfa330a9 100644
--- a/Source/modules/serviceworkers/NavigatorServiceWorker.h
+++ b/Source/modules/serviceworkers/NavigatorServiceWorker.h
@@ -13,6 +13,7 @@
namespace blink {
class Document;
+class ExceptionState;
class Navigator;
class ServiceWorkerContainer;
@@ -25,13 +26,13 @@ public:
virtual ~NavigatorServiceWorker();
- static ServiceWorkerContainer* serviceWorker(Navigator&);
+ static ServiceWorkerContainer* serviceWorker(Navigator&, ExceptionState&);
DECLARE_VIRTUAL_TRACE();
private:
explicit NavigatorServiceWorker(Navigator&);
- ServiceWorkerContainer* serviceWorker();
+ ServiceWorkerContainer* serviceWorker(ExceptionState&);
static const char* supplementName();

Powered by Google App Engine
This is Rietveld 408576698