| Index: Source/core/dom/DocumentInit.h
|
| diff --git a/Source/core/dom/DocumentInit.h b/Source/core/dom/DocumentInit.h
|
| index f19ad1da12fbbbfbd0695057a9caf8bde7aef6b9..9db49187416929cb561e160e847f11a0b783106d 100644
|
| --- a/Source/core/dom/DocumentInit.h
|
| +++ b/Source/core/dom/DocumentInit.h
|
| @@ -59,6 +59,7 @@ public:
|
| bool shouldTreatURLAsSrcdocDocument() const;
|
| bool shouldSetURL() const;
|
| bool isSeamlessAllowedFor(Document* child) const;
|
| + bool shouldReuseDefaultView() const { return m_shouldReuseDefaultView; }
|
| SandboxFlags sandboxFlags() const;
|
|
|
| Document* parent() const { return m_parent.get(); }
|
| @@ -85,6 +86,16 @@ private:
|
| RawPtrWillBeMember<HTMLImportsController> m_importsController;
|
| RefPtrWillBeMember<CustomElementRegistrationContext> m_registrationContext;
|
| bool m_createNewRegistrationContext;
|
| +
|
| + // In some rare cases, we'll re-use a LocalDOMWindow for a new Document. For example,
|
| + // when a script calls window.open("..."), the browser gives JavaScript a window
|
| + // synchronously but kicks off the load in the window asynchronously. Web sites
|
| + // expect that modifications that they make to the window object synchronously
|
| + // won't be blown away when the network load commits. To make that happen, we
|
| + // "securely transition" the existing LocalDOMWindow to the Document that results from
|
| + // the network load. See also SecurityContext::isSecureTransitionTo.
|
| + // FIXME: This is for DocumentWriter creation, not for one of Document.
|
| + bool m_shouldReuseDefaultView;
|
| };
|
|
|
| } // namespace blink
|
|
|