Closed Bug 470019 Opened 16 years ago Closed 16 years ago

Expose DOMWindow

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tobias.hunger, Unassigned)

References

Details

Attachments

(1 file, 3 obsolete files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.1) Gecko/2008070400 SUSE/3.0.1-1.1 Firefox/3.0.1
Build Identifier: hg rev. 43a4f0d6d89e

Expose the DOMWindow in MozView so that other classes can use it.

This is meant for use internal to the embedding API only and should not get passed through the platform specific wrappers!

Reproducible: Always
Attached patch domwindow exposal patch (obsolete) — Splinter Review
Attachment #353463 - Flags: review?(mark.finkle)
Comment on attachment 353463 [details] [diff] [review]
domwindow exposal patch

Can you update this with the new DOMEventListener change?

Also, I used mDOMEventListener in that patch. Could you change to mDOMWindow?
Attachment #353463 - Flags: review?(mark.finkle) → review-
Attached patch domwindow exposal patch (obsolete) — Splinter Review
Update the patch to the newest hg revision and incorporate changes suggested by mark.
Attachment #353463 - Attachment is obsolete: true
Depends on: 470201
Attachment #353662 - Flags: review?(mark.finkle)
Comment on attachment 353662 [details] [diff] [review]
domwindow exposal patch

Further move most of the cleanup code out of the patch by depending on #470201.
Blocks: 470218
Attachment #353662 - Flags: review?(mark.finkle) → review+
would be nice to update 
+    if (!NS_SUCCEEDED(mPrivate->mWebBrowser->GetContentDOMWindow(getter_AddRefs(domWindow))))

to

+    if (NS_FAILED(mPrivate->mWebBrowser->GetContentDOMWindow(getter_AddRefs(domWindow))))

to avoid another clean up patch ;)
Attached patch domwindow exposal patch v1.1 (obsolete) — Splinter Review
Anton is right: Replaced !NS_SUCCEEDED with NS_FAILED.
Attachment #353662 - Attachment is obsolete: true
Sorry, I just added the wrong patch with the last update.

I got too many patches in too many versions sitting on my disk right now:-(

This one is exactly the patch Mark already approved with the one change Anton suggested.
Attachment #354287 - Attachment is obsolete: true
Attachment #354288 - Flags: review?(mark.finkle)
Attachment #354288 - Flags: review?(mark.finkle) → review+
http://hg.mozilla.org/incubator/embedding/rev/cf15dc012b32
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: