Closed
Bug 1019777
Opened 10 years ago
Closed 10 years ago
Make it possible to add functions to the navigator object from javascript (webidl)
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 986455
People
(Reporter: jedp, Unassigned)
References
Details
Presently, it is only possible to add objects to the navigator object from javascript webidl implementations. (e.g., navigator.someObject) We would like to be able to add new methods directly onto the navigator object via javascript. (e.g., navigator.myFunc())
Comment 1•10 years ago
|
||
Do you expect these methods to be called with the navigator object as "this"? Do you absolutely require the ability to do this without changing any C++? Because if all we're after here is adding such a method and ending up in chrome JS, we can do that by just having the C++ get whatever the relevant JS-implemented XPCOM component is and call into it...
Comment 2•10 years ago
|
||
Bug 986455 includes an extensive discussion on this...
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•