Bug 1528305 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

In Fennec (and Firefox's responsive design view), attempts to set `location.href` to an unknown protocol such as the given URL result in being taken to an error page.

In Chrome Mobile, a warning is instead logged to the console and the attempt is ignored: `Navigation is unreachable: bilibili://video/43248171?h5awaken=<snip>%3D%3D&page=0`

This results in a broken experience on bilibili.com for Firefox users, which has a `load` listener that attempts such a redirect, breaking the experience for users (though it can take a long time for the page to fire the `load` event).

(Note that Chrome desktop will trigger an XDG prompt to let the user open the redirected URL to another program, but likewise will not actually change to an error page).
In Fennec (and Firefox's responsive design view), attempts to set `location.href` to an unknown protocol such as `bilibili://whatever` result in being taken to an error page.

In Chrome Mobile, a warning is instead logged to the console and the attempt is ignored: `Navigation is unreachable: bilibili://video/43248171?h5awaken=<snip>%3D%3D&page=0`

This results in a broken experience on bilibili.com for Firefox users, which has a `load` listener that attempts such a redirect, breaking the experience for users (though it can take a long time for the page to fire the `load` event).

(Note that Chrome desktop will trigger an XDG prompt to let the user open the redirected URL to another program, but likewise will not actually change to an error page).
In Fennec (and Firefox's responsive design view), attempts to set `location.href` to an unknown protocol such as `bilibili://whatever` result in the tab switching to an error page.

In Chrome Mobile, a warning is instead logged to the console and the attempt is ignored: `Navigation is unreachable: bilibili://video/43248171?h5awaken=<snip>%3D%3D&page=0`

This results in a broken experience on bilibili.com for Firefox users, which has a `load` listener that attempts such a redirect, breaking the experience for users (though it can take a long time for the page to fire the `load` event).

(Note that Chrome desktop will trigger an XDG prompt to let the user open the redirected URL to another program, but likewise will not actually change to an error page).

Back to Bug 1528305 Comment 0