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

Unified Diff: Source/core/frame/DOMWindow.cpp

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: MessagePort. Created 7 years 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/core/frame/DOMWindow.cpp
diff --git a/Source/core/frame/DOMWindow.cpp b/Source/core/frame/DOMWindow.cpp
index 82002388fa2dd979b9c1ac598bd1b44c03ff16ad..03e4c516146063d1145739fa836524540ab2b634 100644
--- a/Source/core/frame/DOMWindow.cpp
+++ b/Source/core/frame/DOMWindow.cpp
@@ -758,12 +758,12 @@ Storage* DOMWindow::sessionStorage(ExceptionState& exceptionState) const
if (!document)
return 0;
- String accessDeniedMessage = "Access to 'sessionStorage' is denied for this document.";
+ String accessDeniedMessage = "Access is denied for this document.";
if (!document->securityOrigin()->canAccessLocalStorage()) {
if (document->isSandboxed(SandboxOrigin))
- exceptionState.throwSecurityError(accessDeniedMessage + " The document is sandboxed and lacks the 'allow-same-origin' flag.");
+ exceptionState.throwSecurityError("The document is sandboxed and lacks the 'allow-same-origin' flag.");
else if (document->url().protocolIs("data"))
- exceptionState.throwSecurityError(accessDeniedMessage + " Storage is disabled inside 'data:' URLs.");
+ exceptionState.throwSecurityError("Storage is disabled inside 'data:' URLs.");
else
exceptionState.throwSecurityError(accessDeniedMessage);
return 0;
@@ -800,12 +800,12 @@ Storage* DOMWindow::localStorage(ExceptionState& exceptionState) const
if (!document)
return 0;
- String accessDeniedMessage = "Access to 'localStorage' is denied for this document.";
+ String accessDeniedMessage = "Access is denied for this document.";
if (!document->securityOrigin()->canAccessLocalStorage()) {
if (document->isSandboxed(SandboxOrigin))
- exceptionState.throwSecurityError(accessDeniedMessage + " The document is sandboxed and lacks the 'allow-same-origin' flag.");
+ exceptionState.throwSecurityError("The document is sandboxed and lacks the 'allow-same-origin' flag.");
else if (document->url().protocolIs("data"))
- exceptionState.throwSecurityError(accessDeniedMessage + " Storage is disabled inside 'data:' URLs.");
+ exceptionState.throwSecurityError("Storage is disabled inside 'data:' URLs.");
else
exceptionState.throwSecurityError(accessDeniedMessage);
return 0;

Powered by Google App Engine
This is Rietveld 408576698