User:Asqueella/JEP 107: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
m (Created page with 'This is an edited version of Labs/Jetpack/Reboot/JEP/107. == JEP 107 - Page Mods == * Champion: Daniel Buchner - daniel@mozilla.com * Status: Accepted/Pre-Production * Bug …')
 
mNo edit summary
Line 1: Line 1:
This is an edited version of [[Labs/Jetpack/Reboot/JEP/107]].
This is an edited version of [[Labs/Jetpack/Reboot/JEP/107]].


== JEP 107 - Page Mods ==
== Page Mods ==
 
* Champion: Daniel Buchner - daniel@mozilla.com
* Status: Accepted/Pre-Production
* Bug Ticket: [https://bugzilla.mozilla.org/show_bug.cgi?id=546739 546739]
* Type: API
* Difficulty: 4
 
=== Proposal ===
Page Mods is chiefly aimed at modifying and manipulating content documents within Firefox. Pages Mods should perform this functionality in a seamless fashion where the end result is the only change visible to the user.
 
=== Key Issues ===
When documents load that are represented in the "matches" white-list, we must ensure that script and styles injected into the page are evaluated by the parser in the normal load cycle.  Perhaps we achieve this by dynamically creating resource (or custom protocol) URIs that contain the style and script blocks entered similar to the Background Page mechanisms. These URIs would be dynamically created CSS/JS files that would then be injected in the appropriate places withing the matched documents (CSS files in the doc head, JS files just after the close of the body tag).
 
=== Dependencies & Requirements ===
* Requires [[Labs/Jetpack/Reboot/JEP/104|JEP 104 - Simple Storage]]
* Ability to dynamically create a resource, such a method would require [[Labs/Jetpack/Reboot/JEP/106|JEP 106 - Registered Jetpack URLs]]
* Capturing the page pre-render and injecting resources, for example: linked style sheets in the header and script tags after the body
* Ability to access extension specific resources
 
== Internal Methods ==
 
== API Methods ==
 


==== Page Mods <i>Initialization</i> ====
==== Page Mods <i>Initialization</i> ====
Confirmed users
161

edits

Navigation menu