| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index 44883d53f5a70fb724fe4faad6350134fb4342b3..00416e2f888b7682e9a0ea26e32ff6ecff4081ed 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -3159,7 +3159,8 @@ void Document::write(const SegmentedString& text,
|
| }
|
|
|
| if (enteredDocument &&
|
| - !getSecurityOrigin()->canAccess(enteredDocument->getSecurityOrigin())) {
|
| + !getSecurityOrigin()->isSameSchemeHostPortAndSuborigin(
|
| + enteredDocument->getSecurityOrigin())) {
|
| exceptionState.throwSecurityError(
|
| "Can only call write() on same-origin documents.");
|
| return;
|
|
|