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

Changeset 246381 in webkit


Ignore:
Timestamp:
Jun 12, 2019, 3:20:58 PM (7 years ago)
Author:
Kocsen Chung
Message:

Cherry-pick r246182. rdar://problem/51656840

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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246182 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-607-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-607-branch/Source/WebCore/ChangeLog

    r246047 r246381  
     12019-06-12  Null  <null@apple.com>
     2
     3        Cherry-pick r246182. rdar://problem/51656840
     4
     5    Avoid generating new XSLT-based document when already changing the document.
     6    https://bugs.webkit.org/show_bug.cgi?id=198525
     7    <rdar://problem/51393787>
     8   
     9    Reviewed by Ryosuke Niwa.
     10   
     11    We should not allow a pending XSLT transform to change the current document when
     12    that current document is int he process of being replaced.
     13   
     14    * dom/Document.cpp:
     15    (WebCore::Document::applyPendingXSLTransformsTimerFired):
     16   
     17    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     18
     19    2019-06-06  Brent Fulgham  <bfulgham@apple.com>
     20
     21            Avoid generating new XSLT-based document when already changing the document.
     22            https://bugs.webkit.org/show_bug.cgi?id=198525
     23            <rdar://problem/51393787>
     24
     25            Reviewed by Ryosuke Niwa.
     26
     27            We should not allow a pending XSLT transform to change the current document when
     28            that current document is int he process of being replaced.
     29
     30            * dom/Document.cpp:
     31            (WebCore::Document::applyPendingXSLTransformsTimerFired):
     32
    1332019-06-03  Alan Coon  <alancoon@apple.com>
    234
  • branches/safari-607-branch/Source/WebCore/dom/Document.cpp

    r245357 r246381  
    55175517            return;
    55185518
     5519        // If the Document has already been detached from the frame, or the frame is currently in the process of
     5520        // changing to a new document, don't attempt to create a new Document from the XSLT.
     5521        if (!frame() || frame()->documentIsBeingReplaced())
     5522            return;
     5523
    55195524        auto processor = XSLTProcessor::create();
    55205525        processor->setXSLStyleSheet(downcast<XSLStyleSheet>(processingInstruction->sheet()));
Note: See TracChangeset for help on using the changeset viewer.