Bug 115886

Summary: Web Inspector shows HTML5 ApplicationCache fallback URLs instead of attempted URLs when offline
Product: WebKit Reporter: Pavel Lishin <webkitbugzilla>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Minor CC: ap, inspector-bugzilla-changes, syoichi, webkit-bug-importer, webkitbugzilla
Priority: P2 Keywords: HTML5, InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://safari.lishin.org
Attachments:
Description Flags
Cache manifest file none

Description Pavel Lishin 2013-05-09 19:12:29 PDT
Created attachment 201313 [details]
Cache manifest file

When using a site with Application Cache, in offline mode, the Web Inspector does not show the actual URLs of the resources it attempts to fetch that fall into the "fallback" section; instead, it shows the fallback URL. (I used the nightly build, Version 6.0.4 (8536.29.13, 537+))

Attached is the cache manifest file. The two screenshots I am referring to are located at http://i.imgur.com/I29w9Rl.png and http://i.imgur.com/bDj801X.png

In the first one, I am online - the "correct" online image loads, that of an angry dog, and the inspector correctly shows that it loaded "wigi.jpg".

In the second one, I am offline - the "fallback" online image loads, that of a lazy cat, but the inspector shows "fallback.jpg" instead of the expected "wigi.jpg"

The problem with this is that it makes it very difficult to debug offline applications in safari (for example, when using the iPhone emulator and the Web Inspector connected to it.) I see a long series of "fallback" URLs, but I have no idea what URLs they were actually trying to load.


I've put up a demo that can be easily accessed at http://safari.lishin.org/ - I'll keep it online until this bug is closed.
Comment 1 Radar WebKit Bug Importer 2013-05-09 19:12:51 PDT
<rdar://problem/13856246>