[Webkit-unassigned] [Bug 137817] New: XMLHttpRequest(s) aborted when they should not be

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 17 06:42:38 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=137817

            Bug ID: 137817
           Summary: XMLHttpRequest(s) aborted when they should not be
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: All
                OS: All
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: WebCore JavaScript
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mirko.tschaeni at unblu.com

Created attachment 240013
  --> https://bugs.webkit.org/attachment.cgi?id=240013&action=review
Isolated reproduction of the issue

Pending    XMLHttpRequests    get aborted by the browser as soon as document.location.href is    assigned a new value.In some cases this is wrong. For instance if the response has a content type that can not be rendered in the browser window, the browser will show a "save as" dialog to the user and continue showing the old page. The same    is true    for responses with a content-disposition: attachement header. After the response has reached the browser, and the save as dialog has been shown to the user, the page will work like normal again.

This causes unexpected behaviour is the    current    page, as it will be temporarily    unable to issue    ajax request, even if the page is not actually    unloading.

Correct    behaviour would    be: Wait with aborting pending ajax request until the response reaches the browser and consists    of browser renderable content. If the response will not be rendered in the browser window (non renderable content-type, content-disposition: attachment), then the browser should unload the page (and abort pending ajax requests).

In webkit also all new ajax requests that are started in the time between document.location.href assignment and arrival of the download will be aborted immediately. Firefox for instance is also affected from this bug but only for pending requests, new ajax requests will work as expected.


Affected Browsers: safari, webkit, firefox, chrome < 37
Not affected Browsers: Internet    Explorer, chrome 37+

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141017/a0592c38/attachment-0002.html>


More information about the webkit-unassigned mailing list