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

Changeset 274723 in webkit


Ignore:
Timestamp:
Mar 19, 2021, 9:35:43 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

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:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r274719 r274723  
     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-19  Xabier Rodriguez Calvar  <calvaris@igalia.com>
    216
  • trunk/Source/WebCore/loader/DocumentWriter.cpp

    r272618 r274723  
    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.