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

Changeset 267482 in webkit


Ignore:
Timestamp:
Sep 23, 2020, 9:41:07 AM (6 years ago)
Author:
Alan Coon
Message:

Cherry-pick r267412. rdar://problem/69439628

Crashtracer inside PDFPlugin::createScrollbar.
<rdar://problem/69256031> and https://bugs.webkit.org/show_bug.cgi?id=216810

Reviewed by Tim Horton.

To quote Tim from r264945:
No new tests; timing is such that I can't reproduce without inserting
intentional delays into the main thread hops, which is further than
I'm willing to go for a test.

This is a speculative fix due to the aforementioned reproducibility issue.

  • WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::installPDFDocument): With all the past fixes in place, its apparent the plug-in HAS been torn down, and it's somewhat common to bypass the other "hasBeenDestroyed" checks. So put an explicit check here followed by an explicit release assert.

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

Location:
branches/safari-610.2.6.1-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-610.2.6.1-branch/Source/WebKit/ChangeLog

    r267297 r267482  
     12020-09-23  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r267412. rdar://problem/69439628
     4
     5    Crashtracer inside PDFPlugin::createScrollbar.
     6    <rdar://problem/69256031> and https://bugs.webkit.org/show_bug.cgi?id=216810
     7   
     8    Reviewed by Tim Horton.
     9   
     10    To quote Tim from r264945:
     11    No new tests; timing is such that I can't reproduce without inserting
     12    intentional delays into the main thread hops, which is further than
     13    I'm willing to go for a test.
     14   
     15    This is a speculative fix due to the aforementioned reproducibility issue.
     16   
     17    * WebProcess/Plugins/PDF/PDFPlugin.mm:
     18    (WebKit::PDFPlugin::installPDFDocument): With all the past fixes in place, its apparent
     19      the plug-in HAS been torn down, and it's somewhat common to bypass the other "hasBeenDestroyed"
     20      checks. So put an explicit check here followed by an explicit release assert.
     21   
     22   
     23    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267412 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     24
     25    2020-09-22  Brady Eidson  <beidson@apple.com>
     26
     27            Crashtracer inside PDFPlugin::createScrollbar.
     28            <rdar://problem/69256031> and https://bugs.webkit.org/show_bug.cgi?id=216810
     29
     30            Reviewed by Tim Horton.
     31
     32            To quote Tim from r264945:
     33            No new tests; timing is such that I can't reproduce without inserting
     34            intentional delays into the main thread hops, which is further than
     35            I'm willing to go for a test.
     36
     37            This is a speculative fix due to the aforementioned reproducibility issue.
     38
     39            * WebProcess/Plugins/PDF/PDFPlugin.mm:
     40            (WebKit::PDFPlugin::installPDFDocument): With all the past fixes in place, its apparent
     41              the plug-in HAS been torn down, and it's somewhat common to bypass the other "hasBeenDestroyed"
     42              checks. So put an explicit check here followed by an explicit release assert.
     43
    1442020-09-18  Alan Coon  <alancoon@apple.com>
    245
  • branches/safari-610.2.6.1-branch/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm

    r266792 r267482  
    15721572    LOG(IncrementalPDF, "Installing PDF document");
    15731573
     1574    if (m_hasBeenDestroyed)
     1575        return;
     1576
     1577    // If we haven't been destroyed yet, there must still be a PluginController
     1578    RELEASE_ASSERT(controller());
     1579
    15741580#if HAVE(INCREMENTAL_PDF_APIS)
    15751581    maybeClearHighLatencyDataProviderFlag();
Note: See TracChangeset for help on using the changeset viewer.