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

Changeset 245452 in webkit


Ignore:
Timestamp:
May 17, 2019, 4:25:09 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r245284 - Protect current WebFrame during form submission
https://bugs.webkit.org/show_bug.cgi?id=197459
<rdar://problem/50368618>

Reviewed by Alex Christensen.

The 'continueWillSubmitForm' method calls a completion handler that
might affect the state of the current frame. Ensure the frame is valid
for the scope of the function.

  • WebProcess/WebPage/WebFrame.cpp:

(WebKit::WebFrame::continueWillSubmitForm):

Location:
releases/WebKitGTK/webkit-2.24/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.24/Source/WebKit/ChangeLog

    r245451 r245452  
     12019-05-14  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Protect current WebFrame during form submission
     4        https://bugs.webkit.org/show_bug.cgi?id=197459
     5        <rdar://problem/50368618>
     6
     7        Reviewed by Alex Christensen.
     8
     9        The 'continueWillSubmitForm' method calls a completion handler that
     10        might affect the state of the current frame. Ensure the frame is valid
     11        for the scope of the function.
     12
     13        * WebProcess/WebPage/WebFrame.cpp:
     14        (WebKit::WebFrame::continueWillSubmitForm):
     15
    1162019-05-10  Brent Fulgham  <bfulgham@apple.com>
    217
  • releases/WebKitGTK/webkit-2.24/Source/WebKit/WebProcess/WebPage/WebFrame.cpp

    r241538 r245452  
    11/*
    2  * Copyright (C) 2010-2016 Apple Inc. All rights reserved.
     2 * Copyright (C) 2010-2019 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    234234void WebFrame::continueWillSubmitForm(uint64_t listenerID)
    235235{
     236    Ref<WebFrame> protectedThis(*this);
    236237    if (auto completionHandler = m_willSubmitFormCompletionHandlers.take(listenerID))
    237238        completionHandler();
Note: See TracChangeset for help on using the changeset viewer.