Bug 18893

Summary: [GTK] Support offline mode
Product: WebKit Reporter: Marco Barisione <marco.barisione>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Enhancement CC: bksening, bugzilla, bunk, gustavo, martin.sourada, mrobinson, pochu27, uws+webkit
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

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.

Suggestions?
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.