Skip to content

Commit

Permalink
Merge r175974 - Protect Document in ProcessingInstruction::setXSLStyl…
Browse files Browse the repository at this point in the history
…eSheet()

<http://webkit.org/b/138621>

Reviewed by Andreas Kling.

The patch is inspired by the following Blink revision by
<tasak@google.com>:
<https://src.chromium.org/viewvc/blink?view=rev&revision=182309>

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

Canonical link: https://commits.webkit.org/154760.196@webkitgtk/2.6
git-svn-id: https://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.6@176014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
ddkilzer authored and carlosgcampos committed Nov 12, 2014
1 parent f0467e9 commit eeaca9a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,17 @@
2014-11-11 David Kilzer <ddkilzer@apple.com>

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

Reviewed by Andreas Kling.

The patch is inspired by the following Blink revision by
<tasak@google.com>:
<https://src.chromium.org/viewvc/blink?view=rev&revision=182309>

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

2014-11-05 Shivakumar JM <shiva.jm@samsung.com>

splitText API does not match DOM specification.
Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/dom/ProcessingInstruction.cpp
Expand Up @@ -215,6 +215,7 @@ void ProcessingInstruction::setXSLStyleSheet(const String& href, const URL& base
{
ASSERT(m_isXSL);
m_sheet = XSLStyleSheet::create(this, href, baseURL);
Ref<Document> protect(document());
parseStyleSheet(sheet);
}
#endif
Expand Down

0 comments on commit eeaca9a

Please sign in to comment.