118
edits
(Beginning of a page with tips for making tests e10s compatible) |
(Be clearer about contentWindow and contentDocument) |
||
Line 33: | Line 33: | ||
== Browser-chrome == | == Browser-chrome == | ||
* Use BrowserTestUtils! | * Use <code>BrowserTestUtils</code>! | ||
** Lots of examples in the tree. | ** Lots of examples in the tree. | ||
** This + ContentTask.spawn make for nice control flow. | ** This + <code>ContentTask.spawn</code> make for nice control flow. | ||
** Can also use <code>browser.messageManager.loadFrameScript("data:,(" + fn.toString() + ")()")</code> | ** Can also use <code>browser.messageManager.loadFrameScript("data:,(" + fn.toString() + ")()")</code> | ||
* browser.contentWindow/contentDocument | * <code>browser.contentWindow/contentDocument</code> | ||
** | ** Tests that use this are asking to fail! | ||
** | ** Replace uses with <code>ContentTask.spawn</code> to retrieve needed information. |
edits