Closed Bug 1262813 Opened 5 years ago Closed 5 years ago
When a new window has been created, the storage actor is going to know this new window through the observer event 'content-document-global-created' . Then, the getWindowFromHost can acquire this window correctly. However, it seems like that this observer event does not happen after the creation of the iframe in storage-cache-error.html. I think it causes this problem. But I really don't know why this event does not occur.  https://dxr.mozilla.org/mozilla-central/source/devtools/server/actors/storage.js#2208
Assignee: nobody → tihuang
Status: NEW → ASSIGNED
A very similar issue happens in bug 1215349, on the about:home page. On this page, indexedDBs are not shown, although the page has an "abouthome" database. This happens because the getWindowFromHost fails to find the window. The origin from the principal is "moz-safe-about:home", the "host" is just "about:home".
See Also: → 1215349
This patch makes the getWindowFromHost not only checks the origin, but also checks the url of the document with the host.
Attachment #8740955 - Flags: review?(mratcliffe)
Attachment #8740955 - Flags: review?(mratcliffe) → review+
Priority: -- → P1
Attachment #8742005 - Flags: review+
Attachment #8740955 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.