mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.23k stars 2.94k forks source link

unknown url scheme and JS #9395

Closed karlcow closed 1 year ago

karlcow commented 3 years ago

Steps to reproduce

  1. Go to https://smart.link/5a1bf9d9e3404?pf_rd_p=132617f2-a812-46a1-8efe-b6a948cda3d5

Expected behavior

A redirect to itunes for the application audible.

Actual behavior

Blank page with a question to redirect to audible. if I do cancel, we get a blank page. If I do ok, we get a blank page.

Device & build information

When requesting

❯ http GET 'https://smart.link/5a1bf9d9e3404?pf_rd_p=132617f2-a812-46a1-8efe-b6a948cda3d5' 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/34.2  Mobile/15E148 Safari/605.1.15'

HTTP/1.1 200 OK
Alt-Svc: clear
Cache-Control: no-store, no-cache, must-revalidate, max-age=0
Content-Encoding: gzip
Content-Type: text/html; charset=utf-8
Date: Fri, 22 Oct 2021 01:09:52 GMT
Pragma: no-cache
Transfer-Encoding: chunked
Vary: Accept-Encoding
Via: 1.1 google

<html>
<head>
    <meta http-equiv="refresh" content="1"; url="https://itunes.apple.com/us/app/audiobooks-from-audible/id379693831?mt=8">
</head>
<body>

<script type="text/javascript">
    window.onload = function() {
        window.location = "audible://view?section=library";
        setTimeout(function timeout() {
            window.location = "https://itunes.apple.com/us/app/audiobooks-from-audible/id379693831?mt=8";
        }, 1000);
    }
</script>
</body>
</html>

the websit js is proposing to redirect to the right location in case the first part is not executed, but somehow Firefox iOS doesn't follow through.

┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FXIOS-3349)
github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale. Has the issue been fixed, or does it still require the community's attention? Please leave any comment to keep this issue opened. It will be closed automatically if no further update occurs in the next 30 days. Thank you for your contributions!

github-actions[bot] commented 1 year ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue linking to this one, with up-to-date information. Thank you!