Closed Bug 720208 Opened 12 years ago Closed 12 years ago

Implement DOM4 DOMException types and codes

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: emk, Assigned: emk)

References

()

Details

(Keywords: dev-doc-complete)

Attachments

(1 file, 2 obsolete files)

Attached patch patch (obsolete) — Splinter Review
      No description provided.
Attachment #590555 - Flags: review?(bugs)
Comment on attachment 590555 [details] [diff] [review]
patch

I'll review this soon, but Ms2ger as a DOM4 editor could review this too.
Attachment #590555 - Flags: review?(Ms2ger)
Comment on attachment 590555 [details] [diff] [review]
patch

Looks good to me.

>--- a/dom/base/domerr.msg
>+++ b/dom/base/domerr.msg
>+DOM_MSG_DEF_(INDEX_SIZE_ERR, "IndexSizeError", "Index or size is negative or greater than the allowed amount")
>+DOM_MSG_DEF_(DOMSTRING_SIZE_ERR, "DOMSTRING_SIZE_ERR", "The specified range of text does not fit in a DOM string")

I think it's weird to have "DOMSTRING_SIZE_ERR" here, even if that's not detectable from script. Could you make them title case for consistency?
Attachment #590555 - Flags: review?(Ms2ger) → review+
Thanks! Fixed casing.
Assignee: nobody → VYV03354
Attachment #590555 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #590555 - Flags: review?(bugs)
Attachment #591761 - Flags: review+
Keywords: checkin-needed
Comment on attachment 591761 [details] [diff] [review]
patch for check in; r=ms2ger, smaug

Er, I do want smaug to review it as well
Attachment #591761 - Flags: review?(bugs)
(In reply to Ms2ger from comment #2)
> I think it's weird to have "DOMSTRING_SIZE_ERR" here, even if that's not
> detectable from script.
I found DOMSTRING_SIZE_ERR was still used:
https://mxr.mozilla.org/mozilla-central/source/content/base/src/nsGenericDOMDataNode.cpp#275
What should be done here?
Oh, right. That should probably just be NS_ERROR_OUT_OF_MEMORY
Attachment #591761 - Flags: review?(bugs) → review+
Keywords: checkin-needed
Attachment #591761 - Attachment description: patch for check in; r=ms2ger → patch for check in; r=ms2ger, smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/0e6b1dfaa99c
Flags: in-testsuite+
Keywords: checkin-needed
Target Milestone: --- → mozilla13
Attached patch patchSplinter Review
Grrr, bug 682299 added yet another crossorigin test which caused the test failure.
Attachment #591761 - Attachment is obsolete: true
Attachment #593801 - Flags: review?(bugs)
Blocks: 721569
Comment on attachment 593801 [details] [diff] [review]
patch

r=me on the additional test change
Attachment #593801 - Flags: review?(bugs) → review+
Do I need smaug's review either?
I think that's fine.
Comment on attachment 593801 [details] [diff] [review]
patch

Setting the review flag again.
Attachment #593801 - Flags: review?(bugs)
What is the difference to the previous patch ?
Attachment #593801 - Flags: review?(bugs) → review+
Whiteboard: [autoland-try]
Whiteboard: [autoland-try] → [autoland-in-queue]
Autoland Patchset:
	Patches: 593801
	Branch: mozilla-central => try
	Destination: http://hg.mozilla.org/try/pushloghtml?changeset=9df4a628af5e
Try run started, revision 9df4a628af5e. To cancel or monitor the job, see: https://tbpl.mozilla.org/?tree=Try&rev=9df4a628af5e
Try run for 9df4a628af5e is complete.
Detailed breakdown of the results available here:
    https://tbpl.mozilla.org/?tree=Try&rev=9df4a628af5e
Results (out of 216 total builds):
    exception: 1
    success: 173
    warnings: 25
    failure: 17
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/autolanduser@mozilla.com-9df4a628af5e
Whiteboard: [autoland-in-queue]
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/dce72d0fd6aa
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Depends on: 745498
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: