Skip to content

Instantly share code, notes, and snippets.

@ochameau
Created June 21, 2021 16:21
Show Gist options
  • Save ochameau/e7478973d738b2b523bc23315dc4c26f to your computer and use it in GitHub Desktop.
Save ochameau/e7478973d738b2b523bc23315dc4c26f to your computer and use it in GitHub Desktop.
Events for about:blank new tabs
Tested while executing:
gBrowser.addTab("about:blank", {triggeringPrincipal:Services.scriptSecurityManager.getSystemPrincipal()})
[WindowGlobalLogger] handleEvent(DOMWindowCreated)
BrowsingContext.browserId: 13
BrowsingContext.id: 43
innerWindowId: 36
pid: undefined
isClosed: false
isInProcess: false
isCurrentGlobal: true
currentRemoteType: undefined
hasParent: no
uri: about:blank
isProcessRoot: true
docShell.hasLoadedNonBlankURI: false
document.readyState:uninitialized
[WindowGlobalLogger] handleEvent(pagehide)
BrowsingContext.browserId: 13
BrowsingContext.id: 43
innerWindowId: 36
pid: undefined
isClosed: false
isInProcess: false
isCurrentGlobal: true
currentRemoteType: undefined
hasParent: no
uri: about:blank
isProcessRoot: true
docShell.hasLoadedNonBlankURI: false
document.readyState:uninitialized
[WindowGlobalLogger] handleEvent(DOMWindowCreated)
BrowsingContext.browserId: 13
BrowsingContext.id: 43
innerWindowId: 10737418241
pid: undefined
isClosed: false
isInProcess: false
isCurrentGlobal: true
currentRemoteType: undefined
hasParent: no
uri: about:blank
isProcessRoot: true
docShell.hasLoadedNonBlankURI: false
document.readyState:loading
[WindowGlobalLogger] handleEvent(DOMDocElementInserted)
BrowsingContext.browserId: 13
BrowsingContext.id: 43
innerWindowId: 10737418241
pid: undefined
isClosed: false
isInProcess: false
isCurrentGlobal: true
currentRemoteType: undefined
hasParent: no
uri: about:blank
isProcessRoot: true
docShell.hasLoadedNonBlankURI: false
document.readyState:loading
[WindowGlobalLogger] handleEvent(pageshow)
BrowsingContext.browserId: 13
BrowsingContext.id: 43
innerWindowId: 10737418241
pid: undefined
isClosed: false
isInProcess: false
isCurrentGlobal: true
currentRemoteType: undefined
hasParent: no
uri: about:blank
isProcessRoot: true
docShell.hasLoadedNonBlankURI: false
document.readyState:complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment