(From update of attachment 415556)
>+ // XXX Clear the dragging state here, if not so, it breaks next test result.
>+ EventUtils.synthesizeKey("VK_ESCAPE", {}, window);
This won't do anything as the escape key during a drag is handled by the system.
>+
>+ callback = doTest2;
>+ loadTestPage();
>+
>+ // Set focus to chrome element before onload events of the loading contents.
>+ BrowserSearch.searchBar.focus();
I think it would be clearer to call this last line during loadTestPage before loading the url.
(From update of attachment 415556) synthesizeKey( "VK_ESCAPE" , {}, window);
>+ // XXX Clear the dragging state here, if not so, it breaks next test result.
>+ EventUtils.
This won't do anything as the escape key during a drag is handled by the system.
>+ searchBar. focus() ;
>+ callback = doTest2;
>+ loadTestPage();
>+
>+ // Set focus to chrome element before onload events of the loading contents.
>+ BrowserSearch.
I think it would be clearer to call this last line during loadTestPage before loading the url.
> #include "nsTreeWalker.h" er.h" ityManager. h"
> #include "nsIDOMNodeFilt
>+#include "nsIScriptSecur
I don't think this is needed.