Closed
Bug 927735
Opened 12 years ago
Closed 12 years ago
The URL constructor and the URL.href setter shouldn't throw XPathException
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: emk, Assigned: baku)
References
Details
Attachments
(1 file, 1 obsolete file)
|
4.30 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
They should use aRv.ThrowTypeError().
If some C++ callers use URL::Constructor or URL::SetHref, they will have to call rv.ClearMessage() on failure. See nsContentUtils::ConvertStringFromCharset for an example.
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #818245 -
Flags: review?(ehsan)
Attachment #818245 -
Flags: feedback?(VYV03354)
| Reporter | ||
Comment 2•12 years ago
|
||
Comment on attachment 818245 [details] [diff] [review]
exceptions2.patch
>+ is(e.name, 'TypeError', "error: typeError");
|e instanceof TypeError| would be better to make sure that e is not a DOMException.
Attachment #818245 -
Flags: feedback?(VYV03354) → feedback+
| Reporter | ||
Updated•12 years ago
|
Summary: The URL constructor and the URL.href setter throws XPathException → The URL constructor and the URL.href setter shouldn't throw XPathException
| Assignee | ||
Comment 3•12 years ago
|
||
Attachment #818245 -
Attachment is obsolete: true
Attachment #818245 -
Flags: review?(ehsan)
Attachment #818250 -
Flags: review?(ehsan)
Updated•12 years ago
|
Attachment #818250 -
Flags: review?(ehsan) → review+
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Comment 6•12 years ago
|
||
> They will have to call rv.ClearMessage() on failure.
That seems really annoying. I filed bug 933378 to make this more safe.
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•