callback/callback-android — Issue #36: Pressing back on an errorUrl displays cached version of loadUrl
Author: macdonst
Created: 2011-11-25 19:52:26+00:00
State: open

To reproduce:

1) Disable all internet connections
2) Load PhoneGap app with a local errorUrl and a remote loadUrl
3) Press back button on the error page

Expected result: App closes
Actual result: Error page closes, but a cached version of the loadUrl is displayed afterwards

This is quite unintuitive and probably unintended.

My guess on what goes wrong:

1) PhoneGap tries to load loadUrl in webview 1
2) Connection to remote URL fails, and webkit shows a cached version instead
3) Phonegap loads the errorUrl in webview 2
4) When back button is pressed, webview 2 closes

PhoneGap 1.1.0.