Closed Bug 885701 Opened 11 years ago Closed 11 years ago

[DOMRequest] Implement DOMRequestService.fireDetailedError

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
1.1 QE3 (26jun)
blocking-b2g leo+
Tracking Status
firefox23 --- wontfix
firefox24 --- wontfix
firefox25 --- fixed
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- wontfix
b2g-v1.1hd --- fixed

People

(Reporter: ferjm, Assigned: ferjm)

References

Details

(Keywords: dev-doc-needed, Whiteboard: [LeoVB+])

Attachments

(2 files, 1 obsolete file)

See https://bugzilla.mozilla.org/show_bug.cgi?id=824717#c4 We also need this for the MMI implementation.
Blocks: 883178
Assignee: nobody → ferjmoreno
blocking-b2g: --- → leo?
Blocks: 873380
This blocks a leo+ bug so leo+.
blocking-b2g: leo? → leo+
Attached patch v1 (obsolete) (deleted) — Splinter Review
I still want to test it with a real use case like bug 883178 before asking for r? but I could use some feedback in the meantime :)
Attachment #766606 - Flags: feedback?(mounir)
Comment on attachment 766606 [details] [diff] [review] v1 Review of attachment 766606 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/base/test/test_domrequest.html @@ +66,5 @@ > +var _error = new DOMError("detailedError"); > +ok(true, _error); > +ok(true, reqserv); > +ok(true, reqserv.fireError); > +ok(true, reqserv.fireDetailedError); Ignore lines 67-70, please. They were there just for debugging purposes.
Comment on attachment 766606 [details] [diff] [review] v1 Clearing the feedback flag as this actually doesn't work in a real scenario. I get: JavaScript Error: "Error: Permission denied to access property 'valueOf'" when trying to access DOMError properties from content.
Attachment #766606 - Flags: feedback?(mounir)
Naive question: can't you simply add a .fireError() function that takes a nsIDOMDOMError?
AFAIK there is no nsIDOMDOMError in m-c anymore
Attached patch v1 (m-c) (deleted) — Splinter Review
Attachment #766606 - Attachment is obsolete: true
(In reply to Fernando Jiménez Moreno [:ferjm] (needinfo instead of CC, please) from comment #6) > AFAIK there is no nsIDOMDOMError in m-c anymore That sounds like a problem to me but that was not the point of my comment. You could add .fireError() that takes a nsISupports* then. The point being that there is no need to have a new function name, we are just going to add a new signature.
(In reply to Mounir Lamouri (:mounir) from comment #8) > (In reply to Fernando Jiménez Moreno [:ferjm] (needinfo instead of CC, > please) from comment #6) > > AFAIK there is no nsIDOMDOMError in m-c anymore > > That sounds like a problem to me but that was not the point of my comment. > You could add .fireError() that takes a nsISupports* then. The point being > that there is no need to have a new function name, we are just going to add > a new signature. Oh, I see. I was just following Jonas' suggestion at https://bugzilla.mozilla.org/show_bug.cgi?id=824717#c4 I can overload .fireError I guess
I'm fine either way. I'm not a huge fan of overloads though, they work poorly with the typelessness of JavaScript.
Though, most importantly, this is a class that's going to go away as we move to using Promises instead of DOMRequests, so we should do whatever is easiest.
Comment on attachment 767134 [details] [diff] [review] v1 (m-c) We agreed via IRC to keep it simple and take the fireDetailedError solution.
Attachment #767134 - Flags: superreview?(jonas)
Attachment #767134 - Flags: review?(jonas)
I'll have a b2g18 patch tomorrow (CST)
Target Milestone: --- → 1.1 QE3 (26jun)
Attachment #767134 - Attachment description: v1 → v1 (m-c)
Attached patch v1 (b2g18) (deleted) — Splinter Review
Attachment #768135 - Flags: superreview?(jonas)
Attachment #768135 - Flags: review?(jonas)
Attachment #767134 - Flags: superreview?(jonas)
Attachment #767134 - Flags: superreview+
Attachment #767134 - Flags: review?(jonas)
Attachment #767134 - Flags: review+
Attachment #768135 - Flags: superreview?(jonas)
Attachment #768135 - Flags: superreview+
Attachment #768135 - Flags: review?(jonas)
Attachment #768135 - Flags: review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Backed out from b2g18 due to chrome tests failure. https://hg.mozilla.org/releases/mozilla-b2g18/rev/2d9072f92b52 I won't be able to fix it until tomorrow as I am taking a 20 hours flight.
Whiteboard: [LeoVB+]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: