Bug 115886 - Web Inspector shows HTML5 ApplicationCache fallback URLs instead of attempted URLs when offline
Summary: Web Inspector shows HTML5 ApplicationCache fallback URLs instead of attempted...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Minor
Assignee: Nobody
URL: http://safari.lishin.org
Keywords: HTML5, InRadar
Depends on:
Blocks:
 
Reported: 2013-05-09 19:12 PDT by Pavel Lishin
Modified: 2016-12-13 15:34 PST (History)
5 users (show)

See Also:


Attachments
Cache manifest file (145 bytes, application/octet-stream)
2013-05-09 19:12 PDT, Pavel Lishin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>