summaryrefslogtreecommitdiffstats
path: root/dom/browser-element/mochitest/browserElementTestHelpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/browser-element/mochitest/browserElementTestHelpers.js')
-rw-r--r--dom/browser-element/mochitest/browserElementTestHelpers.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/dom/browser-element/mochitest/browserElementTestHelpers.js b/dom/browser-element/mochitest/browserElementTestHelpers.js
index 004b25333..8df1476ac 100644
--- a/dom/browser-element/mochitest/browserElementTestHelpers.js
+++ b/dom/browser-element/mochitest/browserElementTestHelpers.js
@@ -84,6 +84,10 @@ const browserElementTestHelpers = {
this.unlockTestReady.bind(this));
},
+ allowTopLevelDataURINavigation: function() {
+ this._setPref("security.data_uri.block_toplevel_data_uri_navigations", false);
+ },
+
_observers: [],
// This function is a wrapper which lets you register an observer to one of