Permalink
Browse files

Catch exception

  • Loading branch information...
1 parent 54752c7 commit f2233c0e1f91b8b34154795c917e280d08b00b7e @janodvarko janodvarko committed Oct 5, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 extension/content/firebug/bti/inProcess/browser.js
@@ -773,9 +773,18 @@ var TabWatchListener =
}
var browser = context.browser;
+
// Persist remnants of the context for restoration if the user reloads
- browser.panelName = context.panelName;
- browser.sidePanelNames = context.sidePanelNames;
+ try
+ {
+ browser.panelName = context.panelName;
+ browser.sidePanelNames = context.sidePanelNames;
+ }
+ catch (e)
+ {
+ if (FBTrace.DBG_ERRORS)
+ FBTrace.sysout("browser.destroyContext; " + e, e);
+ }
// next the context is deleted and removed from the Firebug.TabWatcher,
// we clean up in unWatchBrowser

0 comments on commit f2233c0

Please sign in to comment.