firebug / firebug

Web Development Evolved - The Firebug you have known and loved
http://getfirebug.com/
1.35k stars 343 forks source link

Browse manifest cache and database storage #3172

Open fbugissues opened 9 years ago

fbugissues commented 9 years ago

Originally reported on Google Code with ID 3033

Web developers can now use HTML5 cache and session/local storage, which
could be a nightmare to debug. Furthermore, Firefox is going to support
database storage (IndexedDB).

It would be really useful to have in Firebug a way to browse offline data
stored in a website:
→ explicit cache ("manifest cache")
→ DOM Storage (session and local)
→ Database storage (see https://wiki.mozilla.org/Firefox/Projects/IndexedDB)

Reported by Paul.Rouget on 2010-04-25 17:44:01

fbugissues commented 9 years ago
Please attach a test case or public URL using these features.

DOM session/local storage is already visible, but Mozilla's support is broken.

Reported by johnjbarton@johnjbarton.com on 2010-04-25 20:01:42

fbugissues commented 9 years ago
Here is a test case using cache and storage:
http://demos.hacks.mozilla.org/openweb/todo/

Reported by Paul.Rouget on 2010-04-26 22:58:30

fbugissues commented 9 years ago
What do you mean by "Mozilla's support is broken"?

Reported by Paul.Rouget on 2010-04-26 22:59:21

fbugissues commented 9 years ago
Sorry, I just mean that we get exceptions from the storage objects which are annoying.

I don't know what to do with the test case in Comment 2. I click on the green box,
eventually I notice a bar asking for permission. When I said ok I see the
localStorage is updated as in the image attached.

Reported by johnjbarton@johnjbarton.com on 2010-04-26 23:50:30


fbugissues commented 9 years ago
HTML5 Offline data are:
· storage (local/sesssion) which are "debuggable" as normal JS properties
· database storage (we are still working on it:
https://bugzilla.mozilla.org/show_bug.cgi?id=553412 it's not testable for the time
being)
· cache (<html manifest="foobar"/>, used to store resources for offline usage) which
are really hard to debug for web dev

About this cache:

A web dev can see:
→ the size of the cache: preference→Advanced→Network, see "stored data for offline
use"
→ browse it (kind of): about:cache

But it's not efficient at all.
I was thinking about a tab which let you browse this cache and showing its activity
(see https://developer.mozilla.org/en/nsIDOMOfflineResourceList and
https://developer.mozilla.org/en/Offline_resources_in_Firefox). This "offline" would
also show storage data.

For another test case, see: http://futtta.be/html5/offline.php

I hope it more understandable :)

Reported by Paul.Rouget on 2010-04-27 00:23:25

fbugissues commented 9 years ago
Looks like we already support HTML5 local/session storage. The other two or three
look like good candidates for Firebug extensions. I'd really like to avoid using
panels for these kinds of things: if they can fit into DOM or Net panels that will
be
much better.

Reported by johnjbarton@johnjbarton.com on 2010-04-27 00:45:10

fbugissues commented 9 years ago

Reported by kpdecker on 2010-04-28 13:28:10

fbugissues commented 9 years ago
Honza, this is the HTML5 manifest issue I mentioned at lunch.

I gather that
 http://futtta.be/html5/offline.php
does network access to get manifest.php but it does not show up. 

Reported by johnjbarton@johnjbarton.com on 2010-04-30 19:03:14

fbugissues commented 9 years ago
This is because the HTTP request for the manifest file isn't associated with a window
(DOM window). So, the Net panel doesn't display it.

I have reported bug here:
https://bugzilla.mozilla.org/show_bug.cgi?id=564419

Honza

Reported by odvarko on 2010-05-07 13:49:23

fbugissues commented 9 years ago
Just changed standard label for platform issues.

Reported by sebastianzartner@gmx.de on 2011-10-07 18:33:53

fbugissues commented 9 years ago
I believe this issue should just cover one part, i.e. either manifest cache or database
storage.

Sebastian

Reported by sebastianzartner on 2012-08-13 05:37:47

fbugissues commented 9 years ago
To make this issue more findable I need mention that the database system Firefox uses
is SQLite.

Sebastian

Reported by sebastianzartner on 2013-01-04 01:59:23