[Webkit-unassigned] [Bug 222471] New: [WPE][GTK] Bogus Response.{status, ok} for successful fetch() requests to a custom URI scheme handler

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 26 06:58:08 PST 2021


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

            Bug ID: 222471
           Summary: [WPE][GTK] Bogus Response.{status,ok} for successful
                    fetch() requests to a custom URI scheme handler
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WPE WebKit
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com
                CC: bugs-noreply at webkitgtk.org

Steps to reproduce:

 1. Use webkit_web_context_register_uri_scheme(), e.g. "myscheme",
    make the callback always finish requests with a valid GInputStream
    (for example, return the "Hello world" string for any requested URI).

 2. Load a page that contains this:

      fetch("myscheme:/someresource", {mode: "no-cors"})
          .then(response => {
              console.log("Status:", response.ok, response.status)
              response.text().then(text => {
                  console.log("Text:", text);
              });
          })
          .catch(console.error);

Expected outcome
----------------

 * The response is considered successful.
 * The logged output contains:

    Status: true 200
    Text: Hello, world

Actual outcome
--------------

 * The response is NOT considered successful, yet the
 * The logged output contains:
   Status: false 0
   Text: Hello, world

-- 
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/20210226/a2d5cfd0/attachment-0001.htm>


More information about the webkit-unassigned mailing list