core:
consider counting
\s
as a
as least some blogspot pages need it
http://davidz25.blogspot.com/2011/06/writing-c-library-part-1.html
chromium:
generate appid for use in update xml
see GenerateId in extension.cc of chrome for how it works
gecko:
use rapper and bourne shell script to sign
this is difficult as mozilla wants the signature of a very particular serialisation of the update rdf
https://developer.mozilla.org/en/Extension_Versioning,_Update_and_Compatibility#Update_RDF_Format
openssl dgst -sha512 -binary -sign private.pem web/gecko-updates.rdf i'm pretty sure generates the correct signature. however it then has to be encoded, using asn1/der & base64. also, according to the docs only the hash is signed/hashed, whereas it looks like the whole (particularly serialised) rdf is used by uhura
make bootstrappable
http://www.oxymoronical.com/blog/2011/01/Playing-with-windows-in-restartless-bootstrapped-extensions
http://starkravingfinkle.org/blog/2011/01/bootstrap-jones-adventures-in-restartless-add-ons/
http://blog.fpmurphy.com/2011/02/firefox-4-restartless-add-ons.html
this could easily get messy, so might not be worth it.
startup:
- add a resource:// alias so scripts can be referenced
- add simplyread.js and viable.js to all documents
- add a listener to nsIWindowMediator onOpenWindow.
- get this listener to inject simplyread.js and viable.js,
using their resource:// urls into new documents
- add a listener to tab changing, to retrigger viable test
shutdown:
- remove these two from all documents
- remove listeners
- remove any addon bar things
add fennec support - https://wiki.mozilla.org/Mobile/Fennec/Extensions
'electrolysis' may require modifications
bug allow turtle for install.rdf - currently trying errors with:
Firefox could not install this item because
"install-whb..rdf" (provided by the item) is not well-formed
or does not exist. Please contact the author about this
problem.
and this in the error console:
Error: not well-formed
Source File: file:///tmp/install-whb..rdf
Line: 1, Column: 1
Source Code:
@prefix rdf: