| Index: third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp
|
| diff --git a/third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp b/third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp
|
| index 2394a3b15384caf4aa761c2632e4a86ebcca6ab1..190f62b3e34faca3ad1e56931ac84d46c534e880 100644
|
| --- a/third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp
|
| +++ b/third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp
|
| @@ -56,10 +56,10 @@ Storage* DOMWindowStorage::localStorage(DOMWindow& window,
|
|
|
| Storage* DOMWindowStorage::sessionStorage(
|
| ExceptionState& exceptionState) const {
|
| - if (!host()->frame())
|
| + if (!supplementable()->frame())
|
| return nullptr;
|
|
|
| - Document* document = host()->frame()->document();
|
| + Document* document = supplementable()->frame()->document();
|
| DCHECK(document);
|
| String accessDeniedMessage = "Access is denied for this document.";
|
| if (!document->getSecurityOrigin()->canAccessLocalStorage()) {
|
| @@ -99,10 +99,10 @@ Storage* DOMWindowStorage::sessionStorage(
|
| }
|
|
|
| Storage* DOMWindowStorage::localStorage(ExceptionState& exceptionState) const {
|
| - if (!host()->frame())
|
| + if (!supplementable()->frame())
|
| return nullptr;
|
|
|
| - Document* document = host()->frame()->document();
|
| + Document* document = supplementable()->frame()->document();
|
| DCHECK(document);
|
| String accessDeniedMessage = "Access is denied for this document.";
|
| if (!document->getSecurityOrigin()->canAccessLocalStorage()) {
|
|
|