зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1709310 - [devTools] Remove backward compatibility code for reconfigureSupportsSimulationFeatures r=ochameau
Depends on D114223 Differential Revision: https://phabricator.services.mozilla.com/D114224
This commit is contained in:
Родитель
4f8652d41f
Коммит
2af8a8ac88
|
@ -503,16 +503,10 @@ CssRuleView.prototype = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Initializes the content-viewer front and enable the print and color scheme simulation
|
||||
* if they are supported in the current target.
|
||||
* Enables the print and color scheme simulation if they are supported in the
|
||||
* current target.
|
||||
*/
|
||||
async _initSimulationFeatures() {
|
||||
// @backward-compat { version 87 } Print & color scheme simulations should
|
||||
// now be set using updateConfiguration (formerly target::reconfigure).
|
||||
if (!this.currentTarget.getTrait("reconfigureSupportsSimulationFeatures")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.currentTarget.chrome) {
|
||||
this.printSimulationButton.removeAttribute("hidden");
|
||||
this.printSimulationButton.addEventListener(
|
||||
|
|
|
@ -557,9 +557,6 @@ const browsingContextTargetPrototype = {
|
|||
// @backward-compat { version 64 } Exposes a new trait to help identify
|
||||
// BrowsingContextActor's inherited actors from the client side.
|
||||
isBrowsingContext: true,
|
||||
// @backward-compat { version 87 } Print & color scheme simulations
|
||||
// should now be set using reconfigure.
|
||||
reconfigureSupportsSimulationFeatures: true,
|
||||
// Browsing context targets can compute the isTopLevelTarget flag on the
|
||||
// server. But other target actors don't support this yet. See Bug 1709314.
|
||||
supportsTopLevelTargetFlag: true,
|
||||
|
|
Загрузка…
Ссылка в новой задаче