Closed
Bug 1262766
Opened 9 years ago
Closed 9 years ago
Storage Inspector breaks down when Cache Storage throws a DOM security error
Categories
(DevTools :: Storage Inspector, defect, P1)
DevTools
Storage Inspector
Tracking
(firefox48 fixed)
RESOLVED
FIXED
Firefox 48
| Tracking | Status | |
|---|---|---|
| firefox48 | --- | fixed |
People
(Reporter: jsnajdr, Assigned: jsnajdr)
References
Details
Attachments
(1 file, 2 obsolete files)
|
5.66 KB,
patch
|
miker
:
review+
|
Details | Diff | Splinter Review |
Steps to reproduce:
1. Open a private window
2. Go to any page
3. Open Storage Inspector
Cache storage is disabled in private mode, and calling any method on the CacheStorage object (e.g., cache.keys()) will throw a DOM security exception.
Expected result:
The storage inspector expects this error and recovers from it.
Actual result:
The uncaught exception prevents listing the stores from finishing, and the storage UI is not initialized properly. It becomes unusable, complaining about undefined properties all the time.
Assignee: nobody → mratcliffe
Priority: -- → P1
| Assignee | ||
Comment 1•9 years ago
|
||
Mike, I'm going to post a patch today, reassigning to me.
Assignee: mratcliffe → jsnajdr
| Assignee | ||
Comment 2•9 years ago
|
||
Added a try/catch block when listing the caches for a host. The test is using an "untrusted" iframe which has a Javascript source URL - the CacheStorage is disabled for such iframes and a DOM security error is thrown.
Attachment #8738977 -
Flags: review?(mratcliffe)
| Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8738977 [details] [diff] [review]
Storage Inspector breaks down when Cache Storage throws a DOM security error
Review of attachment 8738977 [details] [diff] [review]:
-----------------------------------------------------------------
r+ on green try.
Attachment #8738977 -
Flags: review?(mratcliffe) → review+
| Assignee | ||
Comment 5•9 years ago
|
||
(In reply to Michael Ratcliffe [:miker] [:mratcliffe] from comment #4)
> r+ on green try.
The test started failing after the changes from bug 1237915 arrived to me. Filed that as bug 1262813.
| Assignee | ||
Comment 6•9 years ago
|
||
| Assignee | ||
Comment 7•9 years ago
|
||
| Assignee | ||
Comment 8•9 years ago
|
||
Added a workaround for bug 1262813 until it's properly fixed (or maybe this is the right fix?), try run was green with this new version of the patch.
Attachment #8739784 -
Flags: review?(mratcliffe)
| Assignee | ||
Updated•9 years ago
|
Attachment #8738977 -
Attachment is obsolete: true
| Assignee | ||
Comment 9•9 years ago
|
||
Fixed eslint errors.
Attachment #8739874 -
Flags: review?(mratcliffe)
| Assignee | ||
Updated•9 years ago
|
Attachment #8739784 -
Attachment is obsolete: true
Attachment #8739784 -
Flags: review?(mratcliffe)
Attachment #8739874 -
Flags: review?(mratcliffe) → review+
| Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 10•9 years ago
|
||
Keywords: checkin-needed
Comment 11•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•