← Back to team overview

ubuntu-webapps-bugs team mailing list archive

[Bug 1221996] Re: Add an API to allow content scripts to bind objects to the main world global object

 

** Tags removed: touch-2014-10-09
** Tags added: touch-2014-10-16

** Changed in: oxide
       Status: In Progress => Fix Released

** Changed in: oxide
    Milestone: None => 1.3.0

** Also affects: oxide/1.3
   Importance: Undecided
       Status: New

** Changed in: oxide/1.3
       Status: New => Fix Committed

** Changed in: oxide/1.3
     Assignee: (unassigned) => Alexandre Abreu (abreu-alexandre)

** Changed in: oxide/1.3
   Importance: Undecided => High

-- 
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 Committed

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