Closed Bug 494502 Opened 15 years ago Closed 15 years ago

Caller of nsDOMStorage::InitAsSessionStorage doesn't check return value

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

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?
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+
Whiteboard: [caused by sessionStorage HTML 5 compliance]
Fixed for 1.9.1 by the fix for bug 495112.
Keywords: fixed1.9.1
I think we just want to mark this one FIXED as well and file a new bug for trunk if it remains unfixed there?
I'd be fine with that; please file the new bug (and request blocking1.9.2) before resolving this one, though.
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)]
Blocks: 495337
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: 15 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.