Labs/Jetpack/Reboot/JEP/108

< Labs‎ | Jetpack‎ | Reboot‎ | JEP
Revision as of 19:52, 2 February 2010 by Dandonkulous (talk | contribs) (Created page with '== JEP 8 - Background Pages == * Champion: Daniel Buchner - daniel@mozilla.com * Status: Accepted/In-Queue * Bug Ticket: * Type: API === Proposal === Background Pages are like…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

JEP 8 - Background Pages

  • Champion: Daniel Buchner - daniel@mozilla.com
  • Status: Accepted/In-Queue
  • Bug Ticket:
  • Type: API


Proposal

Background Pages are like a more open and free sandbox for doing most anything in a traditional web page with a DOM context, but with a key difference: the page is augmented with escalated, descending, chrome privileges. It is essentially along the same line of a Web Worker, just more open and accessible.


Key Issues

Dependencies & Requirements

  • We must be able to give the code in the top window of this page chrome privileges that are strictly one-way/descending in nature.
  • Dynamically generated code sent to the Background Page should be injected and executed in the Background Page's window context.


Internal Methods

  • TBD


API Methods

  • $Moz.toBackground(function(){ return window.document; }) //should return the Background Page's HTML document