Open GoogleCodeExporter opened 8 years ago
Update: It's not a javascript issue, javascript is running just fine. There's
seems to be something wrong with resource loading. The following is what
happened:
Initial navigation to the page while offline results in the loading of the
cached html page. However, no javascript is executed. OWKS attempts to
contact the remote server to check for an updated manifest, fails because there
is no internet connection. It then attempts to load the next resource.
However, instead of loading from the cache storage, it attempts to load the
resource from the remote server. This fails because there is not internet
connection and nothing more is done.
Curiously enough, reloading the page (calling WebKitBrowser.reload(), note that
calling window.location.reload will not change anything) will cause the
resource to be loaded from the local application cache. However, subsequent
resources requests are also directed to the remote server and fail with the
same message, internet connection is offline. Reloading again will cause these
resources to be loaded from the local application cache.
Basically, each reload seems to direct OWKS to load the next level of nested
resources from the cache, and any resources nested within these will fail as
OWKS attempts to load them from the remote server. Repeat until everything has
been loaded from the local application cache.
What could be causing this weird switch between attempting to load from remote
server and then loading from the application cache, and how do I instruct OWKS
to load all nested resources from the cache as well?
Original comment by WazzieLo...@gmail.com
on 16 Oct 2012 at 10:28
Original issue reported on code.google.com by
WazzieLo...@gmail.com
on 11 Oct 2012 at 3:02