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

Changeset 280899 in webkit


Ignore:
Timestamp:
Aug 11, 2021, 3:21:42 AM (5 years ago)
Author:
Adrian Perez de Castro
Message:

Merge r274723 - Protect frame before calling didBeginDocument
https://bugs.webkit.org/show_bug.cgi?id=217185

Patch by Rob Buis <rbuis@igalia.com> on 2021-03-19
Reviewed by Alex Christensen.

Protect frame before calling didBeginDocument
since it could potentially delete the frame
through event handling.

  • loader/DocumentWriter.cpp:

(WebCore::DocumentWriter::begin):

Location:
releases/WebKitGTK/webkit-2.32/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.32/Source/WebCore/ChangeLog

    r280898 r280899  
     12021-03-19  Rob Buis  <rbuis@igalia.com>
     2
     3        Protect frame before calling didBeginDocument
     4        https://bugs.webkit.org/show_bug.cgi?id=217185
     5
     6        Reviewed by Alex Christensen.
     7
     8        Protect frame before calling didBeginDocument
     9        since it could potentially delete the frame
     10        through event handling.
     11
     12        * loader/DocumentWriter.cpp:
     13        (WebCore::DocumentWriter::begin):
     14
    1152021-03-18  Rob Buis  <rbuis@igalia.com>
    216
  • releases/WebKitGTK/webkit-2.32/Source/WebCore/loader/DocumentWriter.cpp

    r272618 r280899  
    193193    }
    194194
     195    auto protectedFrame = makeRef(*m_frame);
     196
    195197    m_frame->loader().didBeginDocument(dispatch);
    196198
Note: See TracChangeset for help on using the changeset viewer.