Changeset 107021 in webkit


Ignore:
Timestamp:
Feb 7, 2012 6:05:34 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] NetworkJob should stop redirecting when the request is cleared by client
https://bugs.webkit.org/show_bug.cgi?id=78029

Patch by Yong Li <yoli@rim.com> on 2012-02-07
Reviewed by Rob Buis.

When a redirect is rejected by security origin check, the ResourceRequest
will be cleared (see DocumentThreadableLoader::redirectReceived()). In this
case, we should stop handling the request.

No new tests because existing tests (like http:/tests/xmlhttprequest/redirect-cross
-origin-tripmine.html) can cover this.

  • platform/network/blackberry/NetworkJob.cpp:

(WebCore::NetworkJob::startNewJobWithRequest):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107019 r107021  
     12012-02-07  Yong Li  <yoli@rim.com>
     2
     3        [BlackBerry] NetworkJob should stop redirecting when the request is cleared by client
     4        https://bugs.webkit.org/show_bug.cgi?id=78029
     5
     6        Reviewed by Rob Buis.
     7
     8        When a redirect is rejected by security origin check, the ResourceRequest
     9        will be cleared (see DocumentThreadableLoader::redirectReceived()). In this
     10        case, we should stop handling the request.
     11
     12        No new tests because existing tests (like http:/tests/xmlhttprequest/redirect-cross
     13        -origin-tripmine.html) can cover this.
     14
     15        * platform/network/blackberry/NetworkJob.cpp:
     16        (WebCore::NetworkJob::startNewJobWithRequest):
     17
    1182012-02-07  David Barton  <dbarton@mathscribe.com>
    219
  • trunk/Source/WebCore/platform/network/blackberry/NetworkJob.cpp

    r106931 r107021  
    507507
    508508        // m_cancelled can become true if the url fails the policy check.
    509         if (m_cancelled)
     509        // newRequest can be cleared when the redirect is rejected.
     510        if (m_cancelled || newRequest.isEmpty())
    510511            return false;
    511512    }
Note: See TracChangeset for help on using the changeset viewer.