Breaking the grip JS has on the DOM: Difference between revisions

note that we are keeping the "void *aScopeObject" and not replacing with the nsIScriptGlobalObject
(Updated to reflect current implementation work)
(note that we are keeping the "void *aScopeObject" and not replacing with the nsIScriptGlobalObject)
Line 54: Line 54:
* Existing JSObject replaced with void
* Existing JSObject replaced with void


* Existing "void *aScopeObject" (ExecuteScript/EvaluateStringWithValue/CompileScript), replaced with nsIScriptGlobalObject.  The language impl can then get its "void *" via either sgo->GetLanguageContext() or provide a default via its own private means.
* Existing "void *aScopeObject" (ExecuteScript/EvaluateStringWithValue/CompileScript), is *not* replaced with nsIScriptGlobalObject.  This is a change from earlier versions of this document - nsXBLProtoImplField and a few others pass an explicit aScriptObject which is not the same as associated with the nsIScriptGlobal.


* FinalizeClasses method - JS does the ClearScope/ClearWatchpointsForObject/ClearRegExpStatistics?
* FinalizeClasses method - JS does the ClearScope/ClearWatchpointsForObject/ClearRegExpStatistics?
32

edits