ubuntu-webapps-bugs team mailing list archive
-
ubuntu-webapps-bugs team
-
Mailing list archive
-
Message #01670
[Bug 1221996] Re: Add an API to allow content scripts to bind objects to the main world global object
** Changed in: oxide/1.3
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to Oxide.
https://bugs.launchpad.net/bugs/1221996
Title:
Add an API to allow content scripts to bind objects to the main world
global object
Status in Oxide Webview:
Fix Released
Status in Oxide 1.3 series:
Fix Released
Bug description:
As all content scripts run in an isolated world, properties they
modify on their global object are not reflected in to the main world.
This makes it difficult for content scripts to add new API's.
It looks like unity-chromium-extension works around this for Chromium
by inserting a script element in to a webpage which adds a proxy API.
The proxy API uses DOM events to pass messages to communicate to the
content script, which then communicates with the browser.
In oxide, it would be nice to have an API that allows content scripts
to bind an object to the main world global object, rather than having
to insert script elements in to a page.
To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1221996/+subscriptions