Bug 1370442 - Update keybindings test to always use the new debugger frontend;r=pbro

This is a workaround for one release of the old debugger frontend which swallows
the netmonitor shortcut.

MozReview-Commit-ID: 4sZAIEIWf8W

--HG--
extra : rebase_source : 10c6f7bdef36c75176489d4794ce75387cfa9384
This commit is contained in:
Brian Grinstead 2017-06-06 09:36:36 -07:00
Родитель 84b2b0814a
Коммит d91aa5f1c0
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -8,6 +8,14 @@
const TEST_URL = "data:text/html,<html><head><title>Test for the " +
"highlighter keybindings</title></head><body>" +
"<h1>Keybindings!</h1></body></html>"
// Use the new debugger frontend because the old one swallows the netmonitor shortcut:
// https://bugzilla.mozilla.org/show_bug.cgi?id=1370442#c7
Services.prefs.setBoolPref("devtools.debugger.new-debugger-frontend", true);
registerCleanupFunction(function* () {
Services.prefs.clearUserPref("devtools.debugger.new-debugger-frontend");
});
function test()
{
waitForExplicitFinish();