cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Grebnov (JIRA)" <>
Subject [jira] [Updated] (CB-9208) InAppBrowser.executeScript interacts strangely with location.hash
Date Tue, 10 Nov 2015 14:43:11 GMT


Sergey Grebnov updated CB-9208:
    Priority: Minor  (was: Major)

> InAppBrowser.executeScript interacts strangely with location.hash
> -----------------------------------------------------------------
>                 Key: CB-9208
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>    Affects Versions: 5.0.0
>         Environment: iOS
>            Reporter: Grant Patterson
>            Priority: Minor
>              Labels: Triaged
> In my "loadstart" event handler I call executeScript() with a callback. Here is what
I see:
> actual page change: script runs, callback runs
> window.location.assign(same page, new hash): nothing runs
> click anchor link e.g. href=#newsection: nothing runs
> set location.hash = newhash: script runs; callback does not
> The last case is the strangest to me. The script runs just fine in this case but the
callback with the result never happens.
> I'm not sure under what conditions a URL fragment change should trigger the "loadstart"
event; I would say it should be always, and that does not appear to be the case. That is probably
a bug.
> Worse, though, is running the script but not triggering its callback. This could leave
some task half-done: the in-app-browser window has had a state change, but the code outside
the in-app-browser never hears back about it. That is almost certainly a bug.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message