Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Due to current implementation InAppBrowser does not save initial callback id when you performed 'open' operation, but uses the latest command callback instead. So if you invoke any other command like executeScript after, location chanegs events will be broken. It will start using executeScript callback is instead of original one.
For example,
var loginWindow = window.open(someUrl, "_blank", "location=no");
loginWindow.addEventListener('loadstart', loadEventHandler);
loginWindow.addEventListener('loadstop', loadEventHandler);
loginWindow.executeScript(..);
The last call will break location change notifications.