[Webkit-unassigned] [Bug 274745] New: API URL change request can be cancelled by JS navigation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 27 00:59:59 PDT 2024


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

            Bug ID: 274745
           Summary: API URL change request can be cancelled by JS
                    navigation
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: pgorszkowski at igalia.com

Originally it was reported and observed in https://github.com/WebPlatformForEmbedded/WPEWebKit/issues/1334, but the problem can be reproduced also with latest main. It can be reproduced with COG and cogctl(to sent API URL change request), WebKitGTK (minibrowser) or Safari. In case of Chrome or FireFox, I was not able to reproduce the problem.

The simple test case:
<html>
<head>
    <script>
        let i = 0;
        function changeLocation() {
            i += 1
            window.location.href = "#" + i;
            setTimeout(changeLocation, 10)
        }
        changeLocation()
    </script>
</head>
<body>
    Navigation test
</body>
</html>

Steps to reproduce:

1. Open "simple test case"
2. Try to navigate to some other site (e.g. https://www.igalia.com):
* by cogctl open https://www.igalia.com
* by click "home" button in WebKitGTK minibrowser
* by typing new site address in "address/URL bar" field

In case of Safari, COG, WebKitGTK the behaviour is not consistent, sometimes it is possible to open selected URL , sometimes the request is cancelled and we stay on the "simple test case" site.

In case of FF, Chrome we always navigate to new address.

-- 
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/20240527/d7a93c1e/attachment.htm>


More information about the webkit-unassigned mailing list