Backed out changeset 14f893f7de2d (bug 1488377) for mochitest failures in devtools/server/tests/mochitest/test_css-properties.html

This commit is contained in:
Margareta Eliza Balazs 2018-10-08 16:25:17 +03:00
parent b84d8a778e
commit 023013edac
2 changed files with 3 additions and 1 deletions

View File

@ -1454,6 +1454,7 @@ Inspector.prototype = {
this._search = null;
}
const cssPropertiesDestroyer = this._cssProperties.front.destroy();
const sidebarDestroyer = this.sidebar.destroy();
const ruleViewSideBarDestroyer = this.ruleViewSideBar ?
this.ruleViewSideBar.destroy() : null;
@ -1486,6 +1487,7 @@ Inspector.prototype = {
this.telemetry = null;
this._panelDestroyer = promise.all([
cssPropertiesDestroyer,
markupDestroyer,
sidebarDestroyer,
ruleViewSideBarDestroyer

View File

@ -237,7 +237,7 @@ const initCssProperties = async function(toolbox) {
// Get the list dynamically if the cssProperties actor exists.
if (toolbox.target.hasActor("cssProperties")) {
front = toolbox.target.getFront("cssProperties");
front = CssPropertiesFront(client, toolbox.target.form);
db = await front.getCSSDatabase();
} else {
// The target does not support this actor, so require a static list of supported