Bug 1521319 - Disable selfXSS prevention for browser_jsterm_middle_click_paste.js r=nchevobbe a=test-only
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 21 Jan 2019 09:37:18 +0000
changeset 514634 77bdf0aa9fbce36503f6abe72a5ce6ba5fb3e27b
parent 514633 bbeefec15359ea3c5d49896307b840d4a562fe14
child 514635 a61200be3f071d63f375c09f7f0ffa46f800c4be
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, test-only
bugs1521319
milestone66.0
Bug 1521319 - Disable selfXSS prevention for browser_jsterm_middle_click_paste.js r=nchevobbe a=test-only 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);