Browse files

[1.10][&1.9] Issue 5205 ('Enable JavaScript and Refresh' doesn't work)

  • Loading branch information...
1 parent 61090cc commit 9d1a9a6337d9eb675da333916d3b79e5f1440854 @janodvarko janodvarko committed Apr 12, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 extension/content/firebug/firefox/tabWatcher.js
  2. +1 −1 extension/content/firebug/js/scriptPanel.js
View
3 extension/content/firebug/firefox/tabWatcher.js
@@ -730,6 +730,9 @@ Firebug.TabWatcher = Obj.extend(new Firebug.Listener(),
// Called by script panel, not sure where this belongs.
reloadPageFromMemory: function(context)
{
+ if (!context)
+ context = Firebug.currentContext;
+
if (context.browser)
context.browser.reloadWithFlags(Ci.nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE)
else
View
2 extension/content/firebug/js/scriptPanel.js
@@ -1765,7 +1765,7 @@ Firebug.ScriptPanel.WarningRep = domplate(Firebug.Rep,
{
Firebug.Options.setPref("javascript", "enabled", true);
- Firebug.TabWatcher.reloadPageFromMemory(this.context);
+ Firebug.TabWatcher.reloadPageFromMemory(Firebug.currentContext);
},
onFocusDebugger: function(event)

0 comments on commit 9d1a9a6

Please sign in to comment.