Bug 1521319 - Disable selfXSS prevention for browser_jsterm_middle_click_paste.js r=nchevobbe
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 21 Jan 2019 09:37:18 +0000
changeset 514685 2dd26100e3117b221eff2a19c83e50db3bd11bc3
parent 514684 847eaa28d60b831b20b8271efb447b3887d412af
child 514686 dc8020199c4bb3be745ba753f017c213a1fc90b5
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnchevobbe
bugs1521319
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1521319 - Disable selfXSS prevention for browser_jsterm_middle_click_paste.js r=nchevobbe Differential Revision: https://phabricator.services.mozilla.com/D17101
devtools/client/webconsole/test/mochitest/browser_jsterm_middle_click_paste.js
--- a/devtools/client/webconsole/test/mochitest/browser_jsterm_middle_click_paste.js
+++ b/devtools/client/webconsole/test/mochitest/browser_jsterm_middle_click_paste.js
@@ -3,16 +3,18 @@
 
 // Test that pasting clipboard content into input with middle-click works.
 
 "use strict";
 
 const TEST_URI = `data:text/html;charset=utf-8,Web Console test paste on middle-click`;
 
 add_task(async function() {
+  await pushPref("devtools.selfxss.count", 5);
+
   // Enable pasting with middle-click.
   await pushPref("middlemouse.paste", true);
 
   // Run test with legacy JsTerm
   await pushPref("devtools.webconsole.jsterm.codeMirror", false);
   await performTests();
   // And then run it with the CodeMirror-powered one.
   await pushPref("devtools.webconsole.jsterm.codeMirror", true);