Closed
Bug 494502
Opened 16 years ago
Closed 16 years ago
Caller of nsDOMStorage::InitAsSessionStorage doesn't check return value
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bzbarsky, Assigned: mayhemer)
References
Details
(Keywords: fixed1.9.1, Whiteboard: [fixed by bug 495112 (partial backout of bug 455070)])
This is in nsDocShell::GetSessionStorageForPrincipal. So it's possible for that code to hand out storage objects with an empty mDomain, for example. Should only happen if aPrincipal is system, so not sure this should block, but I'm not sure what all the invariants in this code are, so nominating just in case.
Note that this makes the patch for bug 494453 not actually throw when accessing sessionStorage on a chrome page.
Flags: blocking1.9.1?
Comment 1•16 years ago
|
||
Blocking for now; if this is fixed by backing out bug 455070 then we don't need to block on this anymore.
Flags: blocking1.9.1? → blocking1.9.1+
Updated•16 years ago
|
Whiteboard: [caused by sessionStorage HTML 5 compliance]
Comment 3•16 years ago
|
||
I think we just want to mark this one FIXED as well and file a new bug for trunk if it remains unfixed there?
Reporter | ||
Comment 4•16 years ago
|
||
I'd be fine with that; please file the new bug (and request blocking1.9.2) before resolving this one, though.
Comment 5•16 years ago
|
||
Actually, thinking things through more, I think what we want to do is land bug 495112 on trunk as well and then file an entirely new bug (no idea what we'd call that) and nominate it for blocking1.9.2 as bz suggests.
jst: can you make sure that happens? Also commented to this effect in bug 495112
Whiteboard: [caused by sessionStorage HTML 5 compliance] → [fixed by bug 495112 (partial backout of bug 455070)]
Comment 6•16 years ago
|
||
Fixed on trunk by the fix for bug 495112. Bug 495337 filed as a followup.
http://hg.mozilla.org/mozilla-central/rev/363750f510ec
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•