XPConnect:Security:XPCNativeWrapper Automation: Difference between revisions

 
Line 15: Line 15:
*** to distinguish chrome from content objects
*** to distinguish chrome from content objects
*** using the one spare bit above the lock bit for objects
*** using the one spare bit above the lock bit for objects
** new JS_IsSystemObject and JS_GetScriptedCallerFilenameFlags APIs
** new JS_IsSystemObject and JS_GetTopScriptFilenameFlags APIs
** new JS_FlagSystemObject and JS_FlagScriptFilenamePrefix APIs
** new JS_FlagSystemObject and JS_FlagScriptFilenamePrefix APIs
*** JS_FlagScriptFilenamePrefix allows the embedding to preconfigure script filenames as "system" by setting filename prefixes
*** JS_FlagScriptFilenamePrefix allows the embedding to preconfigure script filenames as "system" by setting filename prefixes
Line 36: Line 36:
*** this will cause chrome to get the XPConnect service and call its new wantXPCNativeWrappers(filenamePrefix) method
*** this will cause chrome to get the XPConnect service and call its new wantXPCNativeWrappers(filenamePrefix) method
*** which will call JS_FlagScriptFilenamePrefix
*** which will call JS_FlagScriptFilenamePrefix
* Open Issues
** bz may have --enable-extensions=all, is seeing double-auto-reg on every start (I am seeing single, separate bug)
** this leads to a restart with zero live contexts, apparently, and some prefixes are lost
** never to be re-added (although all are added at least twice)
Confirmed users, Bureaucrats and Sysops emeriti
419

edits