Changeset 80392 in webkit


Ignore:
Timestamp:
Mar 4, 2011 4:35:35 PM (13 years ago)
Author:
bweinstein@apple.com
Message:

Reference-counting for WKBundlePageResourceLoadClient::willSendRequestForFrame seems unclear/wrong
https://bugs.webkit.org/show_bug.cgi?id=53919
<rdar://problem/8966020>

Reviewed by Darin Adler.

Adopt the result of m_client.willSendRequestForFrame (which will be leaked by the client).

  • WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:

(WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r80391 r80392  
     12011-03-04  Brian Weinstein  <bweinstein@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Reference-counting for WKBundlePageResourceLoadClient::willSendRequestForFrame seems unclear/wrong
     6        https://bugs.webkit.org/show_bug.cgi?id=53919
     7        <rdar://problem/8966020>
     8       
     9        Adopt the result of m_client.willSendRequestForFrame (which will be leaked by the client).
     10
     11        * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
     12        (WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):
     13
    1142011-03-04  Darin Adler  <darin@apple.com>
    215
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.h

    r80275 r80392  
    148148    const void *                                                        clientInfo;
    149149    WKBundlePageDidInitiateLoadForResourceCallback                      didInitiateLoadForResource;
     150
     151    // willSendRequestForFrame is supposed to return a retained reference to the URL request.
    150152    WKBundlePageWillSendRequestForFrameCallback                         willSendRequestForFrame;
     153
    151154    WKBundlePageDidReceiveResponseForResourceCallback                   didReceiveResponseForResource;
    152155    WKBundlePageDidReceiveContentLengthForResourceCallback              didReceiveContentLengthForResource;
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp

    r77908 r80392  
    4747        return;
    4848
    49     RefPtr<WebURLRequest> returnedRequest = toImpl(m_client.willSendRequestForFrame(toAPI(page), toAPI(frame), identifier, toAPI(request), toAPI(redirectResponse), m_client.clientInfo));
     49    RefPtr<WebURLRequest> returnedRequest = adoptRef(toImpl(m_client.willSendRequestForFrame(toAPI(page), toAPI(frame), identifier, toAPI(request), toAPI(redirectResponse), m_client.clientInfo)));
    5050    if (returnedRequest)
    5151        request = returnedRequest->resourceRequest();
Note: See TracChangeset for help on using the changeset viewer.