Changeset 94721 in webkit


Ignore:
Timestamp:
Sep 7, 2011 3:54:48 PM (13 years ago)
Author:
abarth@webkit.org
Message:

FrameLoader::addExtraFieldsToRequest can crash when called from or after FrameLoader::detachFromParent
https://bugs.webkit.org/show_bug.cgi?id=61810

Reviewed by Eric Seidel.

Fix this crash as suggested by Darin Fisher in
https://bugs.webkit.org/show_bug.cgi?id=61810#c21. This patch does not
include the test requested by Alexey Proskuryakov in
https://bugs.webkit.org/show_bug.cgi?id=61810#c6. I would really much
rather include a test with this patch, but my attempts to write a test
have failed. :(

  • src/WebPluginContainerImpl.cpp:

(WebKit::WebPluginContainerImpl::loadFrameRequest):

Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r94692 r94721  
     12011-09-07  Adam Barth  <abarth@webkit.org>
     2
     3        FrameLoader::addExtraFieldsToRequest can crash when called from or after FrameLoader::detachFromParent
     4        https://bugs.webkit.org/show_bug.cgi?id=61810
     5
     6        Reviewed by Eric Seidel.
     7
     8        Fix this crash as suggested by Darin Fisher in
     9        https://bugs.webkit.org/show_bug.cgi?id=61810#c21.  This patch does not
     10        include the test requested by Alexey Proskuryakov in
     11        https://bugs.webkit.org/show_bug.cgi?id=61810#c6.  I would really much
     12        rather include a test with this patch, but my attempts to write a test
     13        have failed.  :(
     14
     15        * src/WebPluginContainerImpl.cpp:
     16        (WebKit::WebPluginContainerImpl::loadFrameRequest):
     17
    1182011-09-07  Eric Boren  <borenet@gmail.com>
    219
  • trunk/Source/WebKit/chromium/src/WebPluginContainerImpl.cpp

    r94261 r94721  
    387387{
    388388    Frame* frame = m_element->document()->frame();
    389     if (!frame)
     389    if (!frame || !frame->loader()->documentLoader())
    390390        return;  // FIXME: send a notification in this case?
    391391
Note: See TracChangeset for help on using the changeset viewer.