mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
Bug 1615622 - Enable Async Captured Stacks in Nightly and DevEdition.
This reverts commit 25e10d50af2ef5193b1678bd75e090707e2fc172. Differential Revision: https://phabricator.services.mozilla.com/D65410 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
a626b801cf
commit
fb3ce32bcb
@ -2272,7 +2272,13 @@ pref("devtools.aboutdebugging.collapsibilities.temporaryExtension", false);
|
||||
// Map top-level await expressions in the console
|
||||
pref("devtools.debugger.features.map-await-expression", true);
|
||||
|
||||
#if defined(NIGHTLY_BUILD) || defined(MOZ_DEV_EDITION)
|
||||
pref("devtools.debugger.features.async-captured-stacks", true);
|
||||
pref("devtools.debugger.features.async-live-stacks", false);
|
||||
#else
|
||||
pref("devtools.debugger.features.async-live-stacks", true);
|
||||
pref("devtools.debugger.features.async-captured-stacks", false);
|
||||
#endif
|
||||
|
||||
// Disable autohide for DevTools popups and tooltips.
|
||||
// This is currently not exposed by any UI to avoid making
|
||||
|
@ -2,10 +2,10 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||
|
||||
// Tests that async stacks include awaitees
|
||||
// Tests that async stacks include the async separator
|
||||
|
||||
add_task(async function() {
|
||||
pushPref("devtools.debugger.features.async-live-stacks", true);
|
||||
pushPref("devtools.debugger.features.async-captured-stacks", true);
|
||||
const dbg = await initDebugger("doc-frames-async.html");
|
||||
|
||||
invokeInTab("main");
|
||||
@ -14,6 +14,6 @@ add_task(async function() {
|
||||
is(findElement(dbg, "frame", 1).innerText, "sleep\ndoc-frames-async.html:13");
|
||||
is(
|
||||
findElement(dbg, "frame", 2).innerText,
|
||||
"await\nmain\ndoc-frames-async.html:17"
|
||||
"async\nmain\ndoc-frames-async.html:17"
|
||||
);
|
||||
});
|
||||
|
@ -62,7 +62,6 @@ pref("devtools.debugger.map-scopes-enabled", false);
|
||||
pref("devtools.debugger.log-actions", false);
|
||||
pref("devtools.debugger.log-event-breakpoints", false);
|
||||
|
||||
pref("devtools.debugger.features.async-captured-stacks", false);
|
||||
pref("devtools.debugger.features.wasm", true);
|
||||
pref("devtools.debugger.features.shortcuts", true);
|
||||
pref("devtools.debugger.features.root", true);
|
||||
|
Loading…
Reference in New Issue
Block a user