Closed Bug 1251026 Opened 8 years ago Closed 8 years ago

Loading a YouTube video or GitHub page triggers many lines of WARNING: 'NS_FAILED(rv)', file dom/storage/DOMStorageManager.cpp, line 454

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1250141
Tracking Status
firefox47 --- affected

People

(Reporter: dholbert, Unassigned)

References

Details

Attachments

(1 file)

STR:
 1. Start a debug build from the terminal. (fresh profile)
 2. Visit https://www.youtube.com/embed/C4qgAaxB_pc
 3. Look at your terminal.

ACTUAL RESULTS: 42 copies of this line are spammed to your terminal:
> WARNING: 'NS_FAILED(rv)', file dom/storage/DOMStorageManager.cpp, line 454

This is from the NS_WARN_IF that was added here:
http://hg.mozilla.org/mozilla-central/diff/35794bec70ba/dom/storage/DOMStorageManager.cpp#l1.367
for bug 1165214.
Flags: needinfo?(honzab.moz)
A bit more info, from gdb:
 - rv is NS_ERROR_UNEXPECTED here (i.e. AppendOriginNoSuffix is returning NS_ERROR_UNEXPECTED).
 - That's because aPrincipal->GetURI returns nullptr in its outparam, here:
http://hg.mozilla.org/mozilla-central/annotate/d848a5628d80/dom/storage/DOMStorageManager.cpp#l136

 - That's because aPrincipal is an instance of nsSystemPrincipal, which always returns nullptr from GetURI.
I can reproduce this on some GitHub pages, too -- e.g. if I load this view of a storage-related repo...
 https://github.com/mdn/web-storage-demo
...I get 7 instances of this warning.
Summary: Loading a YouTube video triggers 42 lines of WARNING: 'NS_FAILED(rv)', file dom/storage/DOMStorageManager.cpp, line 454 → Loading a YouTube video or GitHub page triggers many lines of WARNING: 'NS_FAILED(rv)', file dom/storage/DOMStorageManager.cpp, line 454
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(honzab.moz)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: