Bug 885107 - Fix testharness tests outside dom/imptests. r=dbaron
Bug 885107 - Sync testharness with the latest upstream. r=Ms2ger