Title: [175974] trunk/Source/WebCore
Revision
175974
Author
[email protected]
Date
2014-11-11 13:56:21 -0800 (Tue, 11 Nov 2014)

Log Message

Protect Document in ProcessingInstruction::setXSLStyleSheet()
<http://webkit.org/b/138621>

Reviewed by Andreas Kling.

The patch is inspired by the following Blink revision by
<[email protected]>:
<https://src.chromium.org/viewvc/blink?view=rev&revision=182309>

* dom/ProcessingInstruction.cpp:
(WebCore::ProcessingInstruction::setXSLStyleSheet):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (175973 => 175974)


--- trunk/Source/WebCore/ChangeLog	2014-11-11 21:39:46 UTC (rev 175973)
+++ trunk/Source/WebCore/ChangeLog	2014-11-11 21:56:21 UTC (rev 175974)
@@ -1,3 +1,17 @@
+2014-11-11  David Kilzer  <[email protected]>
+
+        Protect Document in ProcessingInstruction::setXSLStyleSheet()
+        <http://webkit.org/b/138621>
+
+        Reviewed by Andreas Kling.
+
+        The patch is inspired by the following Blink revision by
+        <[email protected]>:
+        <https://src.chromium.org/viewvc/blink?view=rev&revision=182309>
+
+        * dom/ProcessingInstruction.cpp:
+        (WebCore::ProcessingInstruction::setXSLStyleSheet):
+
 2014-11-11  Myles C. Maxfield  <[email protected]>
 
         Finish moving CTFontGetVerticalGlyphsForCharacters and CTLineCreateWithUniCharProvider out from WKSI

Modified: trunk/Source/WebCore/dom/ProcessingInstruction.cpp (175973 => 175974)


--- trunk/Source/WebCore/dom/ProcessingInstruction.cpp	2014-11-11 21:39:46 UTC (rev 175973)
+++ trunk/Source/WebCore/dom/ProcessingInstruction.cpp	2014-11-11 21:56:21 UTC (rev 175974)
@@ -215,6 +215,7 @@
 {
     ASSERT(m_isXSL);
     m_sheet = XSLStyleSheet::create(this, href, baseURL);
+    Ref<Document> protect(document());
     parseStyleSheet(sheet);
 }
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to