Closed Bug 596743 Opened 14 years ago Closed 14 years ago

Need external RenderDocument API for embedding

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: tatiana, Assigned: tatiana)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
In qt embedding we should be able to render document to an external surface.
We need to add shell->RenderDocument wrapper to nsIDOMWindowUtils, because GetShell is internal API and it's not possible to use it from external embedding library.
Attachment #475637 - Flags: review?(roc)
Why is it not possible to use GetShell? It's inline.
It seems that the size of nsIDocument is different if you use MOZILLA_INTERNAL_API or something like that. Besides which we really don't want people using nsIDocument out of libxul.
Attached patch patchSplinter Review
updated uuid
Assignee: nobody → tanya.meshkova
Attachment #475637 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #475723 - Flags: review?(roc)
Attachment #475637 - Flags: review?(roc)
Comment on attachment 475723 [details] [diff] [review]
patch

I think patch is pretty safe, and useful for embedders, and native extensions.

Can we get it in?
Attachment #475723 - Flags: approval2.0?
http://hg.mozilla.org/mozilla-central/rev/bc10c72eb8f1
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
So... the change to nsIDOMWindowUtils is WRONG.  Very very wrong.  If you need to add a method to an IDL interface like this, you should make it noscript and notxpcom, but tossing it in a C++ block means that XPConnect will be confused about what the vtable looks like, and if anyone is foolish enough to add things after your code, or to inherit from this interface, calling things will jump to the wrong methods and crash.
Depends on: 605999
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 7 was fixed by bug 605999.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: