Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1527)

Unified Diff: Source/core/xml/XSLTProcessor.cpp

Issue 1052993006: Refactor frame navigation/detach state cleanup to be more sane. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Port comment over Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/xml/XSLTProcessor.cpp
diff --git a/Source/core/xml/XSLTProcessor.cpp b/Source/core/xml/XSLTProcessor.cpp
index 5391097adf156e3c705ebb312aa060f3f46e9e8b..0d9f927905c09c7131d226179cd6b269356fc156 100644
--- a/Source/core/xml/XSLTProcessor.cpp
+++ b/Source/core/xml/XSLTProcessor.cpp
@@ -76,6 +76,7 @@ PassRefPtrWillBeRawPtr<Document> XSLTProcessor::createDocumentFromSource(const S
if (frame) {
RefPtrWillBeRawPtr<Document> oldDocument = frame->document();
+ oldDocument->detach();
result = frame->localDOMWindow()->installNewDocument(sourceMIMEType, init, forceXHTML);
// Before parsing, we need to save & detach the old document and get the new document

Powered by Google App Engine
This is Rietveld 408576698