Closed Bug 1283800 Opened 9 years ago Closed 9 years ago

Storage inspector throws unhandled exception trying to access localStorage on about:home

Categories

(DevTools :: Storage Inspector, defect, P2)

defect

Tracking

(firefox50 fixed)

RESOLVED FIXED
Firefox 50
Tracking Status
firefox50 --- fixed

People

(Reporter: jsnajdr, Assigned: jsnajdr)

References

Details

Attachments

(1 file)

Step to reproduce: 1. Go to about:home (or any other about: page) 2. Open Storage Inspector 3. Expand the localStorage node Expected result: about:home is shown as a tree node under localStorage, reports that there is no data Actual result: Accessing window.localStorage throws a DOM exception that is not handled.
Assignee: nobody → jsnajdr
Depends on: 1283401
1. Fix the localStorage actor to handle the "storage" object being null 2. Issue a console warning when access to window's localStorage or cache fails 3. Fix the finishTests() in head.js - catch exception when window.localStorage access fails 4. Add a new mochitest Everything applies also to sessionStorage, of course. Note that his bug depends on 1283401, which fixes platform issues when access to cache fails in debug build
Attachment #8767163 - Flags: review?(mratcliffe)
Comment on attachment 8767163 [details] [diff] [review] Storage inspector throws unhandled exception trying to access localStorage on about:home Review of attachment 8767163 [details] [diff] [review]: ----------------------------------------------------------------- We also need to bare in mind that storage is available to about pages but because they are chrome and not content the methods we would use to get them are likewise very different from obtaining storage from content. Happy with this workaround for now though, r+.
Attachment #8767163 - Flags: review?(mratcliffe) → review+
Keywords: checkin-needed
Pushed by ntim.bugs@gmail.com: https://hg.mozilla.org/integration/fx-team/rev/c048aba03021 Storage inspector throws unhandled exception trying to access localStorage on about:home r=mratcliffe
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: