⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 175974 in webkit


Ignore:
Timestamp:
Nov 11, 2014, 1:56:21 PM (12 years ago)
Author:
ddkilzer@apple.com
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
<tasak@google.com>:
<https://src.chromium.org/viewvc/blink?view=rev&revision=182309>

  • dom/ProcessingInstruction.cpp:

(WebCore::ProcessingInstruction::setXSLStyleSheet):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r175972 r175974  
     12014-11-11  David Kilzer  <ddkilzer@apple.com>
     2
     3        Protect Document in ProcessingInstruction::setXSLStyleSheet()
     4        <http://webkit.org/b/138621>
     5
     6        Reviewed by Andreas Kling.
     7
     8        The patch is inspired by the following Blink revision by
     9        <tasak@google.com>:
     10        <https://src.chromium.org/viewvc/blink?view=rev&revision=182309>
     11
     12        * dom/ProcessingInstruction.cpp:
     13        (WebCore::ProcessingInstruction::setXSLStyleSheet):
     14
    1152014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
    216
  • trunk/Source/WebCore/dom/ProcessingInstruction.cpp

    r174332 r175974  
    216216    ASSERT(m_isXSL);
    217217    m_sheet = XSLStyleSheet::create(this, href, baseURL);
     218    Ref<Document> protect(document());
    218219    parseStyleSheet(sheet);
    219220}
Note: See TracChangeset for help on using the changeset viewer.