Closed
Bug 816387
Opened 12 years ago
Closed 12 years ago
Turn on WebIDL binding generation for Document and hook it up to quickstubs
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
10.21 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
13.89 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
Just Do It.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #686442 -
Flags: review?(peterv)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #686444 -
Flags: review?(peterv)
Comment 3•12 years ago
|
||
Comment on attachment 686442 [details] [diff] [review]
part 1. Hook up the WebIDL bindings for Document.
Review of attachment 686442 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/base/nsDOMClassInfoID.h
@@ +55,1 @@
> DOMCI_CASTABLE_INTERFACE(nsDocument, nsIDocument, 5, _extra) \
So I think you're going to have to add
NEW_BINDING(nsIDocument, Document)
and
NEW_BINDING(nsDocument, Document)
to nsDOMQS.h so that we can unwrap new binding objects for documents to nsIDocument and nsDocument by checking for the prototype id for Document.
Attachment #686442 -
Flags: review?(peterv) → review+
Updated•12 years ago
|
Attachment #686444 -
Flags: review?(peterv) → review+
Assignee | ||
Comment 4•12 years ago
|
||
> So I think you're going to have to add
Yeah, indeed. Done.
Assignee | ||
Comment 5•12 years ago
|
||
So I ran into one test failure with this, which I don't recall, but can't see why it would have failed to happen before. Specifically, we have a test that does this:
var l3 = document.createTouchList();
but the spec IDL doesn't quite allow that... though there has been talk of changing the spec to accept "Touch... touch", which would allow no args. Doing that as I land this is trivial; should I just do so? Matt?
Assignee | ||
Updated•12 years ago
|
Flags: needinfo?(mbrubeck)
Assignee | ||
Comment 6•12 years ago
|
||
Oh, the failing test is content/events/test/test_bug648573.html
Also, I guess I need to make this [PrefControlled] just like we did HTMLElement, right, Peter?
Flags: needinfo?(peterv)
Comment 7•12 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #6)
> Also, I guess I need to make this [PrefControlled] just like we did
> HTMLElement, right, Peter?
Ah, I forgot about that. Yes, for now you'll also need to comment out all the touch properties and methods because the quickstubs hook up doesn't deal with pref controlled things. And uncomment them again in bug 803542.
Flags: needinfo?(peterv)
Assignee | ||
Comment 8•12 years ago
|
||
Oh, right. Ok, I'll comment those out for now and we can figure out what to do with createTouchList() with no args in bug 803542.
Assignee | ||
Comment 9•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b190d329f7f3
https://hg.mozilla.org/integration/mozilla-inbound/rev/b7bb8951d3e2
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla20
Assignee | ||
Comment 10•12 years ago
|
||
And https://hg.mozilla.org/integration/mozilla-inbound/rev/9db20066eb63 to fix the orange because more things got added to the imptest .json files that needed to go away.
Comment 11•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b190d329f7f3
https://hg.mozilla.org/mozilla-central/rev/b7bb8951d3e2
https://hg.mozilla.org/mozilla-central/rev/9db20066eb63
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 12•12 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #5)
> So I ran into one test failure with this, which I don't recall, but can't
> see why it would have failed to happen before. Specifically, we have a test
> that does this:
>
> var l3 = document.createTouchList();
>
> but the spec IDL doesn't quite allow that... though there has been talk of
> changing the spec to accept "Touch... touch", which would allow no args.
> Doing that as I land this is trivial; should I just do so? Matt?
Yes, changing our IDL to accept "Touch... touch" is a good thing, and matches WebKit. We will change the spec too, or publish errata, or something.
Flags: needinfo?(mbrubeck)
Assignee | ||
Comment 13•12 years ago
|
||
Matt, thanks!
Filed bug 824824 on that.
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•