-
Notifications
You must be signed in to change notification settings - Fork 48
FoxtrickCallStack
minj edited this page Mar 19, 2015
·
1 revision
-
- setDefaultPrefs()
- for each window: ### bootstrap-firefox.js: ### loadIntoWindow(window)
- Creates window context
- Foxtrick.init()
- Foxtrick.loadScript()
-
-
- inits FoxtrickPrefs, Foxtrickl10n, Foxtrick.XMLData
- niceRun module.init()
- module.onLoad(chromeDoc)
- adds Foxtrick.loader.firefox.DOMContentLoaded listener
- Starts document 'context'
-
- Foxtrick.modules.UI.updateIcon(doc)
- Foxtrick.entry.docLoad(doc)
- Foxtrick.log.flush(doc)
- Foxtrick.entry.run(doc)
- reinit if prefs changed
- check layout and load css
- niceRun module.run(doc)
- Foxtrick.log.flush(doc)
- Foxtrick.log.flush(doc)
-
- Foxtrick.entry.change(ev) and blocks until done
- niceRun module.change(doc, ev)
- Foxtrick.log.flush(doc)
- Foxtrick.entry.change(ev) and blocks until done
- adds Foxtrick.loader.firefox.tabFocus listener
- finds current doc
- module.onTabChange(doc)
- Foxtrick.entry.run(doc, true) // rechecks css only
- Foxtrick.log.flush(doc)
-
-
- traverses all tabs of all windows and reloads HT urls
- adds window listener to run loadIntoWindow(window) for new windows
-
- setDefaultPrefs()
- for each window: ### bootstrap-fennec.js: ### loadIntoWindow(window)
- Creates window (background) context
- Foxtrick.init()
- Foxtrick.loadScript() contains only utils and modules with init()
- env.js defines messaging; Foxtrick.DataPath is local
-
- updateResources()
- entry.js:Foxtrick.entry.init()
- inits FoxtrickPrefs, Foxtrickl10n, Foxtrick.XMLData
- niceRun module.init()
- serialize resource XML
- get CSS
- entry.js:Foxtrick.entry.init()
- module.onLoad(bgDoc)
- defines all content request handlers
- updateResources()
-
- loads all content scripts into content context
-
- sends 'tabLoad' to background context once per tab
- Foxtrick.loader.background.requests.pageLoad()
- updateResources() if prefs changed
- sends resources and prefs back to content context
- Foxtrick.entry.contentScriptInit(data)
- inits FoxtrickPrefs, Foxtrickl10n
- parses XML
- adds Foxtrick.loader.fennec.DOMContentLoadedListener
- Foxtrick.entry.docLoad(doc)
- Foxtrick.log.flush(doc)
- Foxtrick.entry.run(doc)
- check layout and load css
- niceRun module.run(doc)
- Foxtrick.log.flush(doc)
- Foxtrick.log.flush(doc)
- Foxtrick.entry.change(ev) and blocks until done
- niceRun module.change(doc, ev)
- Foxtrick.log.flush(doc)
- Foxtrick.entry.contentScriptInit(data)
- Foxtrick.loader.background.requests.pageLoad()
- sends 'tabLoad' to background context once per tab
- Foxtrick.loadScript() contains only utils and modules with init()
-
- traverses all tabs of all windows and reloads HT urls
- adds window listener to run loadIntoWindow(window) for new windows
-
Background context loads upon browser start
-
- updateResources()
- entry.js:Foxtrick.entry.init()
- inits FoxtrickPrefs, Foxtrickl10n, Foxtrick.XMLData
- niceRun module.init()
- serialize resource XML
- get CSS
- entry.js:Foxtrick.entry.init()
- module.onLoad(bgDoc)
- defines all content request handlers and sits there
- updateResources()
-
-
Content context
-
- sends 'pageLoad' to background context every time a page is loaded
- Foxtrick.loader.background.requests.pageLoad()
- updateResources() if prefs changed
- Foxtrick.modules.UI.update(sender.tab)
- sends css, resources and prefs back to content context
- Foxtrick.entry.contentScriptInit(data)
- parses XML
- injects css
- Foxtrick.entry.docLoad(doc) if slow
- Foxtrick.entry.contentScriptInit(data)
- Foxtrick.loader.background.requests.pageLoad()
- adds Foxtrick.entry.docLoad(doc) listener
- Foxtrick.log.flush(doc)
- Foxtrick.entry.run(doc)
- check layout and load css
- niceRun module.run(doc)
- Foxtrick.log.flush(doc)
- Foxtrick.log.flush(doc)
-
- Foxtrick.entry.change(ev) and blocks until done
- niceRun module.change(doc, ev)
- Foxtrick.log.flush(doc)
- Foxtrick.entry.change(ev) and blocks until done
- sends 'pageLoad' to background context every time a page is loaded