[Webkit-unassigned] [Bug 189084] New: Mobile Safari silently retries non-idempotent network requests

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 29 09:48:33 PDT 2018


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

            Bug ID: 189084
           Summary: Mobile Safari silently retries non-idempotent network
                    requests
           Product: WebKit
           Version: Safari 11
          Hardware: Unspecified
                OS: iOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joelriley at google.com

Spec allows browsers to silently retry requests (https://tools.ietf.org/html/rfc2616#section-8.2.4) if the network connection prematurely closes. This can happen, for instance, when a mobile device is switching away from a poor network or switching between wifi and cellular network. If a client (javascript) issues only one network request, the browser may issue two requests if the first request is interrupted, and the payload of the second request is returned back to the client, which is unaware two requests took place. This behavior is problematic in the case of non-idempotent requests (such as POST), since those requests can have side effects. One examples is an HTTP POST request to create a new comments on a message board could in turn cause two comments to be posted if the browser retries request due to network disconnect. Safari should not retry non-idempotent requests. Chrome currently handles this correctly.

RFC that states retries should not happen for non-idempotent requests: https://tools.ietf.org/html/rfc7230#section-6.3.1

-- 
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/20180829/0e2f1d3b/attachment.html>


More information about the webkit-unassigned mailing list