Bug 846890 - Disable security.fileuri.strict_origin_policy for reftests (r=dbaron,dholbert)

This commit is contained in:
Bill McCloskey 2013-03-08 18:53:06 -08:00
parent 68c2630106
commit b1751c143c
2 changed files with 7 additions and 1 deletions

View File

@ -142,7 +142,10 @@ skip-if(B2G) == use-01-extref.svg pass.svg
== filter-basic-03.svg pass.svg
== filter-bounds-01.svg pass.svg
== filter-bounds-02.svg pass.svg
fails-if(Android||B2G) == filter-extref-differentOrigin-01.svg pass.svg # Bug 695385
# This pref is normally on by default, but we turn it off in reftest runs to
# disable an unnecessary security-check. This reftest is actually testing that
# the security check works, though, so it needs the pref to be turned on:
fails-if(Android||B2G) pref(security.fileuri.strict_origin_policy,true) == filter-extref-differentOrigin-01.svg pass.svg # Bug 695385
== filter-foreignObject-01.svg pass.svg
== filter-in-mask-01.svg pass.svg
skip-if(B2G) == filter-invalidation-01.svg pass.svg

View File

@ -97,6 +97,9 @@ RefTestCmdLineHandler.prototype =
branch.setIntPref("urlclassifier.updateinterval", 172800);
// Disable high-quality downscaling, since it makes reftests more difficult.
branch.setBoolPref("image.high_quality_downscaling.enabled", false);
// Checking whether two files are the same is slow on Windows.
// Setting this pref makes tests run much faster there.
branch.setBoolPref("security.fileuri.strict_origin_policy", false);
var wwatch = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(nsIWindowWatcher);