Permalink
Browse files

Increase timeout for context-menu-command execution and for panel sel…

…ection (needed for Mac OS)
  • Loading branch information...
1 parent 81c3033 commit 39a9146fcdac486dcc8c9bbd3f8a0ca699046c61 @janodvarko janodvarko committed Nov 7, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 tests/FBTest/content/FBTestFirebug.js
@@ -1481,7 +1481,9 @@ this.waitForBreakInDebugger = function(chrome, lineNo, breakpoint, callback)
var panel = chrome.getSelectedPanel();
if (panel)
{
- onPanelReady(sourceRow);
+ setTimeout(function() {
+ onPanelReady(sourceRow);
+ }, 200);
return;
}
@@ -2341,10 +2343,11 @@ this.executeContextMenuCommand = function(target, menuItemIdentifier, callback)
{
// Since the command is dispatched asynchronously,
// execute the callback using timeout.
+ // Especially Mac OS needs this.
setTimeout(function()
{
callback();
- }, 10);
+ }, 250);
}
}, 10);
}

0 comments on commit 39a9146

Please sign in to comment.