joewalker/devtools-window — pull request #289 by harthur (2012-11-20 23:29:54+00:00)
Title: Replace EventUtils.synthesizeMouse() with regular old el.dispatchEvent() in style inspector tests, fix for #269

Both `styleinspector/test/browser_computedview_bug_703643_context_menu_copy.js` and `styleinspector/test/browser_ruleview_bug_703643_context_menu_copy.js` were timing out because calls to `EventUtils.synthesizeMouse()` weren't opening context menus.

I tried replacing the calls with a straight-up call to `element.dispatchEvent()` and it fixes both tests on my machine.