Comment 136 for bug 239831

Revision history for this message
In , Enn (enndeakin) wrote :

(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.

> #include "nsTreeWalker.h"
> #include "nsIDOMNodeFilter.h"
>+#include "nsIScriptSecurityManager.h"

I don't think this is needed.