Closed
Bug 390473
Opened 18 years ago
Closed 15 years ago
There is no API that allows the hosting app to interact with embeded JS engine.
Categories
(Core Graveyard :: Embedding: APIs, defect)
Core Graveyard
Embedding: APIs
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: jacek, Unassigned)
Details
Attachments
(1 file, 2 obsolete files)
10.00 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20070723 Firefox/2.0.0.5
Build Identifier: 1.9
Currently there is no way for the embedding app to execute JS code in browser's context. Eg. I need to execute a JS function, passing arguments to it. It's possible to do using IScriptContext, but it's a very internal interface. I've written a simple patch that adds a new nsIDOMScriptContainer interface to the document object. It's just a simple wrapper around nsIScriptContext. With this patch apps may access JS engine simply by XPCOM interfaces.
Reproducible: Always
Reporter | ||
Comment 1•18 years ago
|
||
Attachment #274789 -
Flags: review?(jonas)
![]() |
||
Comment 2•18 years ago
|
||
There's no reason to expect GetScriptGlobalObject() to not return null. Certainly when dealing with data documents or documents that are being unloaded, that will happen.
Reporter | ||
Comment 3•18 years ago
|
||
Thanks for your quick reply. I'm attaching version with GetScriptGlobalObject() return value checks.
Reporter | ||
Comment 4•18 years ago
|
||
Attachment #274797 -
Flags: review?(bzbarsky)
Reporter | ||
Updated•18 years ago
|
Attachment #274789 -
Attachment is obsolete: true
Attachment #274789 -
Flags: review?(jonas)
![]() |
||
Comment 5•18 years ago
|
||
I think sicking is a better choice of reviewer...
Reporter | ||
Updated•18 years ago
|
Attachment #274797 -
Flags: review?(bzbarsky) → review?(jonas)
Comment on attachment 274797 [details] [diff] [review]
an updated patch
Passing the potato on to jst. He knows this better. FWIW though, the name of the interface isn't the best. Generally we use nsIDOM* interfaces for stuff that is exposed in the DOM.
Attachment #274797 -
Flags: review?(jonas) → review?(jst)
Reporter | ||
Comment 7•18 years ago
|
||
Thanks, here is a changed version (it's really just a s/nsIDOMScriptContainer/nsIScriptContainer/). If you have a suggestion for a better name, I will change it.
Attachment #274797 -
Attachment is obsolete: true
Attachment #276675 -
Flags: review?(jst)
Attachment #274797 -
Flags: review?(jst)
![]() |
||
Comment 9•17 years ago
|
||
Probably e-mailing jst and reminding him about this review request...
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Updated•16 years ago
|
Attachment #276675 -
Flags: review?(jst)
Reporter | ||
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•