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

Changeset 246182 in webkit


Ignore:
Timestamp:
Jun 6, 2019, 5:23:12 PM (7 years ago)
Author:
Brent Fulgham
Message:

Avoid generating new XSLT-based document when already changing the document.
https://bugs.webkit.org/show_bug.cgi?id=198525
<rdar://problem/51393787>

Reviewed by Ryosuke Niwa.

We should not allow a pending XSLT transform to change the current document when
that current document is int he process of being replaced.

  • dom/Document.cpp:

(WebCore::Document::applyPendingXSLTransformsTimerFired):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r246177 r246182  
     12019-06-06  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Avoid generating new XSLT-based document when already changing the document.
     4        https://bugs.webkit.org/show_bug.cgi?id=198525
     5        <rdar://problem/51393787>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        We should not allow a pending XSLT transform to change the current document when
     10        that current document is int he process of being replaced.
     11
     12        * dom/Document.cpp:
     13        (WebCore::Document::applyPendingXSLTransformsTimerFired):
     14
    1152019-06-06  Devin Rousso  <drousso@apple.com>
    216
  • trunk/Source/WebCore/dom/Document.cpp

    r246129 r246182  
    54835483            return;
    54845484
     5485        // If the Document has already been detached from the frame, or the frame is currently in the process of
     5486        // changing to a new document, don't attempt to create a new Document from the XSLT.
     5487        if (!frame() || frame()->documentIsBeingReplaced())
     5488            return;
     5489
    54855490        auto processor = XSLTProcessor::create();
    54865491        processor->setXSLStyleSheet(downcast<XSLStyleSheet>(processingInstruction->sheet()));
Note: See TracChangeset for help on using the changeset viewer.