/* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ /* eslint-env browser */ "use strict"; const Services = require("Services"); const flags = require("devtools/shared/flags"); const { PureComponent } = require("devtools/client/shared/vendor/react"); const dom = require("devtools/client/shared/vendor/react-dom-factories"); const PropTypes = require("devtools/client/shared/vendor/react-prop-types"); const e10s = require("../utils/e10s"); const message = require("../utils/message"); const { getTopLevelWindow } = require("../utils/window"); const FRAME_SCRIPT = "resource://devtools/client/responsive.html/browser/content.js"; class Browser extends PureComponent { /** * This component is not allowed to depend directly on frequently changing data (width, * height). Any changes in props would cause the