Bug 1680218 - [devtools] Remove getAttributesInOwnerDocument trait. r=rcaliman.

The trait was introduced in Firefox 80, so it's
safe to remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D98488
This commit is contained in:
Nicolas Chevobbe 2020-12-09 13:16:56 +00:00
parent 1aac59224c
commit 94359716cc
2 changed files with 1 additions and 3 deletions

View File

@ -80,7 +80,7 @@ class PageStyleFront extends FrontClassWithSpec(pageStyleSpec) {
throw new Error("`type` should not be empty");
}
if (!this._form.traits.getAttributesInOwnerDocument || !search) {
if (!search) {
return [];
}

View File

@ -178,8 +178,6 @@ var PageStyleActor = protocol.ActorClassWithSpec(pageStyleSpec, {
// expected support of font-stretch at CSS Fonts Level 4.
fontWeightLevel4:
CSS.supports("font-weight: 1") && CSS.supports("font-stretch: 100%"),
// @backward-compat { version 80 }
getAttributesInOwnerDocument: true,
},
};
},