Labs/Jetpack/Reboot/JEP/108: Difference between revisions

From MozillaWiki
< Labs‎ | Jetpack‎ | Reboot‎ | JEP
Jump to navigation Jump to search
(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…')
 
No edit summary
Line 1: Line 1:
== JEP 8 - Background Pages ==
== JEP 108 - Background Pages ==


* Champion: Daniel Buchner - daniel@mozilla.com
* Champion: Daniel Buchner - daniel@mozilla.com

Revision as of 20:24, 2 February 2010

JEP 108 - 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