| 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;
|
|
|