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

Changeset 245920 in webkit


Ignore:
Timestamp:
May 30, 2019, 5:29:58 PM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r245284. rdar://problem/51264857

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

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

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

Legend:

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

    r245915 r245920  
     12019-05-30  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r245284. rdar://problem/51264857
     4
     5    Protect current WebFrame during form submission
     6    https://bugs.webkit.org/show_bug.cgi?id=197459
     7    <rdar://problem/50368618>
     8   
     9    Reviewed by Alex Christensen.
     10   
     11    The 'continueWillSubmitForm' method calls a completion handler that
     12    might affect the state of the current frame. Ensure the frame is valid
     13    for the scope of the function.
     14   
     15    * WebProcess/WebPage/WebFrame.cpp:
     16    (WebKit::WebFrame::continueWillSubmitForm):
     17   
     18    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245284 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     19
     20    2019-05-14  Brent Fulgham  <bfulgham@apple.com>
     21
     22            Protect current WebFrame during form submission
     23            https://bugs.webkit.org/show_bug.cgi?id=197459
     24            <rdar://problem/50368618>
     25
     26            Reviewed by Alex Christensen.
     27
     28            The 'continueWillSubmitForm' method calls a completion handler that
     29            might affect the state of the current frame. Ensure the frame is valid
     30            for the scope of the function.
     31
     32            * WebProcess/WebPage/WebFrame.cpp:
     33            (WebKit::WebFrame::continueWillSubmitForm):
     34
    1352019-05-30  Kocsen Chung  <kocsen_chung@apple.com>
    236
  • branches/safari-607-branch/Source/WebKit/WebProcess/WebPage/WebFrame.cpp

    r241513 r245920  
    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.