Open
Bug 992888
Opened 10 years ago
Updated 2 years ago
FileHandle: Some methods should throw when the window is closed
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: janv, Unassigned)
Details
+++ This bug was initially created as a clone of Bug #860731 +++ Copying and pasting review comments that were raised in bug 860731. We decided to fix them separately since they don't directly relate to the WebIDL conversion. Review of attachment 8391945 [details] [diff] [review] [diff] [review]: ----------------------------------------------------------------- Looks ok, but: ::: dom/file/LockedFile.cpp @@ +443,5 @@ > } > > + // Do nothing if the window is closed > + if (!GetOwner()) { > + return nullptr; I think this should throw, right? Below too. ::: dom/file/LockedFile.h @@ +235,5 @@ > + return nullptr; > + } > + > + if (!length) { > + return nullptr; Shouldn't this return a request? @@ +240,5 @@ > + } > + > + // Do nothing if the window is closed > + if (!GetOwner()) { > + return nullptr; Shouldn't this set aRv?
Reporter | ||
Updated•10 years ago
|
Updated•6 years ago
|
Priority: -- → P3
Updated•6 years ago
|
Flags: needinfo?(jvarga)
Updated•6 years ago
|
Priority: P3 → P2
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•