| 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 274b2f7904688d44e6f5fd16b0643e8d4db265ce..ae8bdd385c753a3e3c42e84182bea871091da7f4 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -2391,9 +2391,6 @@ void Document::setIsViewSource(bool isViewSource) {
|
| m_isViewSource = isViewSource;
|
| if (!m_isViewSource)
|
| return;
|
| -
|
| - setSecurityOrigin(SecurityOrigin::createUnique());
|
| - didUpdateSecurityOrigin();
|
| }
|
|
|
| void Document::scheduleUseShadowTreeUpdate(SVGUseElement& element) {
|
| @@ -5633,11 +5630,6 @@ bool Document::canExecuteScripts(ReasonForCallingCanExecuteScripts reason) {
|
| return false;
|
| }
|
|
|
| - if (isViewSource()) {
|
| - DCHECK(getSecurityOrigin()->isUnique());
|
| - return true;
|
| - }
|
| -
|
| DCHECK(frame())
|
| << "you are querying canExecuteScripts on a non contextDocument.";
|
|
|
|
|