Changeset 19537 in webkit


Ignore:
Timestamp:
Feb 9, 2007 12:33:01 PM (17 years ago)
Author:
andersca
Message:

Reviewed by Geoff.

<rdar://problem/4816376>
REGRESSION: NetNewsWire 3.0 - Crashes in WebDocumentLoaderMac::attachToFrame() (12674)


The bug was that the NNW policy delegate never calls back on the policy listener so we'll try to do a load
while there's a policy decision underway. The extra call to setPolicyDocumentLoader would cause a detached (and deallocated)
WebDataSource to be reattached and thus causing a crash.


  • loader/FrameLoader.cpp: (WebCore::FrameLoader::load): Remove extra call to setPolicyDocumentLoader.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r19536 r19537  
     12007-02-09  Anders Carlsson  <acarlsson@apple.com>
     2
     3        Reviewed by Geoff.
     4
     5        <rdar://problem/4816376>
     6        REGRESSION: NetNewsWire 3.0 - Crashes in WebDocumentLoaderMac::attachToFrame() (12674)
     7       
     8        The bug was that the NNW policy delegate never calls back on the policy listener so we'll try to do a load
     9        while there's a policy decision underway. The extra call to setPolicyDocumentLoader would cause a detached (and deallocated)
     10        WebDataSource to be reattached and thus causing a crash.
     11       
     12        * loader/FrameLoader.cpp:
     13        (WebCore::FrameLoader::load):
     14        Remove extra call to setPolicyDocumentLoader.
     15
    1162007-02-09  Beth Dakin  <bdakin@apple.com>
    217
  • trunk/WebCore/loader/FrameLoader.cpp

    r19470 r19537  
    18351835{
    18361836    RefPtr<DocumentLoader> loader = m_client->createDocumentLoader(request, SubstituteData());
    1837     setPolicyDocumentLoader(loader.get());
    18381837
    18391838    loader->setTriggeringAction(action);
Note: See TracChangeset for help on using the changeset viewer.