Closed Bug 860473 Opened 12 years ago Closed 12 years ago

Fix rooting issues in WebIDL dictionaries and ErrorResult

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(3 files)

Let's get a start on reducing the dom/bindings noise.
Attachment #735957 - Flags: review?(evilpies)
Attachment #735957 - Flags: review?(bugs)
Assignee: nobody → bzbarsky
Attachment #735960 - Flags: review?(evilpies)
Attachment #735960 - Flags: review?(bugs)
Attachment #735961 - Flags: review?(evilpies)
Attachment #735961 - Flags: review?(bugs)
Whiteboard: [need review]
Comment on attachment 735957 [details] [diff] [review] part 1. Root WebIDL dictionary ParseJSON. smaug Review of attachment 735957 [details] [diff] [review]: ----------------------------------------------------------------- Uhh this pattern returning *cx is quite funny! Maybe<Rooted<Value>> is only used when and defined and everything lives on the stack, so this should be okay. ::: dom/bindings/Codegen.py @@ +6818,5 @@ > (" bool Init(const nsAString& aJSON)\n" > " {\n" > " mozilla::Maybe<JSAutoRequest> ar;\n" > " mozilla::Maybe<JSAutoCompartment> ac;\n" > + " Maybe< JS::Rooted<JS::Value> > json;\n" Drop the mozilla:: for the others? Is that first space needed?
Attachment #735957 - Flags: review?(evilpies) → review+
Attachment #735960 - Flags: review?(evilpies) → review+
Comment on attachment 735961 [details] [diff] [review] part 3. Root ErrorResult::ThrowJSException. Review of attachment 735961 [details] [diff] [review]: ----------------------------------------------------------------- Easy enough as well!
Attachment #735961 - Flags: review?(evilpies) → review+
> Drop the mozilla:: for the others? Done. > Is that first space needed? No, but I prefer the symmetry, and the last space _is_ needed.
Comment on attachment 735957 [details] [diff] [review] part 1. Root WebIDL dictionary ParseJSON. smaug Drop the space after <
Attachment #735957 - Flags: review?(bugs) → review+
Attachment #735960 - Flags: review?(bugs) → review+
Attachment #735961 - Flags: review?(bugs) → review+
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: