Conduit API
Case Study
EBTabRestored
 
This event is called right after the Firefox browser has restored after unexpected crash. This way apps can be notified on the event of a Firefox crash and act accordingly.

*Note: the function will be called once for every tab that was opened before the crash, each time with its corresponding URL and always with the same selected tab’s URL.
 
EBTabRestored(restoredTabUrl, selectedTabUrl)
 
Parameter Description Range Type
restoredTabUrl The URL of each browser tab before the crash   string
selectedTabUrl The URL of the active (focused) tab in the browser before the crash   string
 
None.
 
This function can be used only with the HTML app.
This function is only supported with the Firefox browser.
*Notice: API methods must be invoked after the web page has triggered the "onload" event.
 
This example is an HTML app demonstrating how to receive events after Firefox has crashed and recovered. In order to simulate crash:
  • Open Firefox and browse to 3 web sites (in 3 different tabs, one tab in focus is “selected”)
  • End the firefox.exe process from the Task Manager.
  • Re-open Firefox
  • Wait until Firefox restores all the tabs that were previously open
Now you should get 3 events, one for each restored tab, with the URL of the web sites browsed, and the URL of the tab that was selected (same URL in all 3 messages).