You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been bashing my head against this for almost a week now, and while I've
made some progress, I feel as if my lack of experience working with browsers
and web coding in general (I really have 0 experience with this) has led me as
far as I can get in a reasonable amount of time.
As can be guessed from the title, I am attempting to enable offline
applications in a basic OWKS browser. This storage aspect of this has been
rather simple to fix. Included in WebKit preferences is the flag
offlineWebApplicationCacheEnabled along with the method
setOfflineWebApplicationCacheEnabled(). Enabling this feature in OWKS was as
simple as creating a boolean and the following function in GlobalPreferences.cs:
private Boolean offlineWebApplicationCacheEnabled;
[Browsable(true), Category("Behavior"),
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Description("Specifies whether offline application caching is enabled.")]
public bool setOfflineWebApplicationCacheEnabled
{
get {
return offlineWebApplicationCacheEnabled;
}
set {
try{
preferences.setOfflineWebApplicationCacheEnabled(Convert.ToInt32(value));
offlineWebApplicationCacheEnabled = value;
}catch{}
}
}
And voila caching works. I'm quite certain it is working because caching an
application using a simple OWKS browser and then inserting the resulting
ApplicationCache.db (it's cached as an sq3lite database) into Safari's local
database storage will run the application offline perfectly. There is no such
equivalent luck running the simple browser offline, though the application runs
perfectly while online (connected to the internet).
I believe I may have pinpointed the problem: javascript isn't being executed
offline. After traversing the DOM trees of the online rendered page and the
offline rendered page, I found some iframes missing, all of which are created
and inserted into the tree via javascript calls. Presumably, this means these
calls aren't being made. However, javascript has been enabled, and I am thus
at a loss as to why this isn't working.
Any help would be appreciated, my apologies if this is a simple question and/or
should not have been posted here.
Original issue reported on code.google.com by [email protected] on 11 Oct 2012 at 3:02
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 11 Oct 2012 at 3:02The text was updated successfully, but these errors were encountered: