GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for devtools.inspectedWindow.

Developer library 6

Extend the developer tools

- The same [WebExtension APIs as in Content Scripts](/docs/Mozilla/Add-ons/WebExtensions/Content_scripts#webextension_apis) - The devtools APIs: - [`devtools.inspectedWindow`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/inspectedWindow) - [`devtools.network`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/network) - [`devtools.panels`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels) Note that t

devtools panels

n.addListener(handleShown); newPanel.onHidden.addListener(handleHidden); }); ``` The extension can now run code in the inspected window using [`devtools.inspectedWindow.eval()`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/inspectedWindow/eval) or by injecting a content script via the background script by passing a message. You can find more details on how to do this in [Extending the developer tools.](/do

devtools

ls.panels.elements.createSidebarPane. Other extension pages, such as background pages or action popups, can't access this namespace. ## Properties - devtools.inspectedWindow - : Interact with the window that Developer tools are attached to (inspected window). This includes obtaining the tab ID for the inspected page, evaluate the code in the context of the inspected window, reload the page, or obtain the list of

devtools.inspectedWindow

ease see [Limitations of the devtools APIs](/docs/Mozilla/Add-ons/WebExtensions/Extending_the_developer_tools#limitations_of_the_devtools_apis). The `devtools.inspectedWindow` API lets a devtools extension interact with the window that the developer tools are attached to. Like all the `devtools` APIs, this API is only available to code running in the document defined in the [devtools_page](/docs/Mozilla/Add-ons/Web

devtools.inspectedWindow.getResources()

Retrieves the list of resources from the inspected page. ## Syntax ```js-nolint let gettingResources = browser.devtools.inspectedWindow.getResources() ``` ### Parameters This function takes no parameters. ### Return value A [`Promise`](/docs/Web/JavaScript/Reference/Global_Objects/Promise) fulfilled with an array of devtools.inspectedWindow.Resource. If the request fails, the promise is rejected with an error

devtools.inspectedWindow.reload()

Reloads the window that the devtools are attached to. ## Syntax ```js-nolint browser.devtools.inspectedWindow.reload( reloadOptions // object ) ``` ### Parameters - `reloadOptions` - : `object`. Options for the function, as follows: - `ignoreCache` - : `boolean`. If true, this makes the reload ignore the browser cache (as if the user had pressed Shift+Ctrl+R). - `userAgent` - : `s

JSON results · Services directory