Bug 18893 - [GTK] Support offline mode
Summary: [GTK] Support offline mode
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
Depends on:
Reported: 2008-05-05 05:23 PDT by Marco Barisione
Modified: 2014-04-08 18:01 PDT (History)
8 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Marco Barisione 2008-05-05 05:23:36 PDT
Epiphany and midori need a way to go into offline mode, that is only local files should be accessible.

dispatchDecidePolicyForNavigationAction/"navigation-requested" cannot be used because it works only for the main resource, i.e. the main html page, not the images, scripts, etc.

dispatchWillSendRequest is called for everyv resource but I don't know how to block the loading from it.

Comment 1 Gustavo Noronha (kov) 2008-06-16 16:15:36 PDT
This is probably will take advantage the cache policy property of the ResourceRequest object on dispatchWillSendRequest; ReturnCacheDataDontLoad on ResourceRequest, WEBKIT_REQ_CACHE_POLICY_CACHE_ONLY on the proposed patch to implement WebKitNetworkRequest (see #18608);
Comment 2 Wouter Bolsterlee 2008-07-17 14:11:43 PDT
I assume "offline mode" will also be able to access the local http cache? That's what Gustavo's comments seem to imply, but the original description doesn't mention it (but since it mentions web browsers I assume you also want this).
Comment 3 Emilio Pozuelo Monfort 2009-02-28 09:45:25 PST
I think the offline mode should still be able to access the cache, yes. Or at least a way to enable it.
Comment 4 Martin Robinson 2014-04-08 18:01:34 PDT
We should probably wait for offline mode via ServiceWorkers or AppCache.