Closed Bug 622500 Opened 14 years ago Closed 13 years ago

add an api for adding apis to web content

Categories

(Add-on SDK Graveyard :: General, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED INVALID
Future

People

(Reporter: dietrich, Unassigned)

Details

This seems to be a wanted feature as multiple guys are currently trying to do that thought page-mod API.

Having a custom API to do that could improve security control we have over this kind of practices. Whereas it's way harder to ensure that developers are not going to introduce security holes when using page-mod to do that!

One guy on the gougle group:
https://groups.google.com/group/mozilla-labs-jetpack/t/5d71f5d2502b12f2
And one other on IRC.
OS: Linux → All
Priority: -- → P2
Hardware: x86 → All
Target Milestone: --- → Future
This looks like bug 641552 - Provide hook for adding APIs to window.navigator

Though I'm not sure if you want just navigator or not.
(In reply to comment #2)
> This looks like bug 641552 - Provide hook for adding APIs to window.navigator
> 
> Though I'm not sure if you want just navigator or not.

It's actually already possible to add APIs to 'window' (https://mxr.mozilla.org/mozilla-central/source/dom/base/ConsoleAPI.manifest is an example of how the 'window.console' object is added), just not easily (and securely) possible to add window.navigator APIs. Bug 641552 is specifically about the latter.
Marking anything that potentially looks like a feature request as "enhancement", sorry for the bugspam. :)
Severity: normal → enhancement
This'll probably be better as a Feature Page at this point than a bug.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.