Closed Bug 796903 Opened 12 years ago Closed 12 years ago

Move DOMImplementation to Paris bindings

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

(Blocks 1 open bug)

Details

(Keywords: addon-compat)

Attachments

(4 files, 1 obsolete file)

      No description provided.
Attached patch Patch v1 (obsolete) — Splinter Review
Attachment #668136 - Flags: review?(bzbarsky)
Shouldn't there be some nsDocument bits here too?
Attached patch Patch v2Splinter Review
Let's try this again.
Attachment #668136 - Attachment is obsolete: true
Attachment #668136 - Flags: review?(bzbarsky)
Attachment #668144 - Flags: review?(bzbarsky)
Comment on attachment 668144 [details] [diff] [review]
Patch v2

>+++ b/content/base/src/DOMImplementation.cpp
>+  NS_INTERFACE_MAP_ENTRY(nsIDOMDOMImplementation)
>+  NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIDOMDOMImplementation)

This was there in the code you copied from, but it's clearly silly.  Make the nsISupports bit not use AMBIGUOUS?

>+++ b/dom/bindings/Bindings.conf
>+'DOMImplementation': {
>+},
>+

Now that bug 792980 is fixed, you don't need that.

Given that this is not prefable, why did you leave nsIDOMDOMImplementation and associated gunk?  Seems like it can go....

r=me with those addressed.  Though if you do remove nsIDOMDOMImplementation, I'd like a look at the result.
Attachment #668144 - Flags: review?(bzbarsky) → review+
This interface is pretty silly. I like this better. (Turns out I don't strictly need it, as DOMImplementation still inherit from nsISupports.)
Attachment #668577 - Flags: review?(bzbarsky)
Attachment #668578 - Flags: review?(bzbarsky)
Comment on attachment 668577 [details] [diff] [review]
Part b: Pass an nsIContent to InternalIsSupported

r=me
Attachment #668577 - Flags: review?(bzbarsky) → review+
Comment on attachment 668578 [details] [diff] [review]
Part c: Remove nsIDOMDOMImplementation

r=me
Attachment #668578 - Flags: review?(bzbarsky) → review+
This passes try, at least. (Should've thought about that earlier.)
Attachment #671128 - Flags: review?(bzbarsky)
Do we really want to remove nsIDOMDOMImplementation? I would expect some
binary addons to use it to create documents.
(And in fact it is probably the safest way to create "data" documents to be used in web pages.)
Keywords: addon-compat
> I would expect some binary addons to use it to create documents.

How would they get their hands on an nsIDOMDOMImplementation?
From nsIDOMDocument
And in particular, note that the ability to create a DOMImplementation by contract went away in bug 675166.

So are you thinking about cases in which the binary addon would call GetImplementation on an existing document?
I guess if we think binary addons are using it, we could keep it...  It seems somewhat unfortunate, though.  :(
Comment on attachment 671128 [details] [diff] [review]
Part d: Followup fixes

r=me on this part, but I talked to smaug and we decided to keep nsIDOMDOMImplementation for now for C++ consumers.  :(  Still don't need classinfo, of course.
Attachment #671128 - Flags: review?(bzbarsky) → review+
Attachment #668578 - Attachment description: Part b: Remove nsIDOMDOMImplementation → Part c: Remove nsIDOMDOMImplementation
Attachment #671128 - Attachment description: Part c: Followup fixes → Part d: Followup fixes
https://hg.mozilla.org/mozilla-central/rev/b72413cdab5e
https://hg.mozilla.org/mozilla-central/rev/abe709bfc49a
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
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: