Hi all,
Following
recent work in the WebExtensions Community Group, M130 introduces changes to how developer tools contexts are identified in the runtime.getContexts() API.
These changes were contributed by Microsoft and we're grateful for their continued support improving the extensions platform in Chromium.
Previously, any DevTools page, panel or sidebar pane added by an extension would be identified with the chrome.runtime.ContextType.TAB type.
Starting in M130:
- The chrome.runtime.ContextType.DEVELOPER_TOOLS type is used for these contexts.
- The `windowId` will be set to the ID of the DevTools window if DevTools is undocked, or the ID of the window DevTools is docked to.
- The `tabId` and `frameId` properties will always be `-1`.
We don’t expect this change to have a significant impact, but you may need to update your code if you are relying on these values.
Please let us know if you have any feedback.
Thanks,
Oliver on behalf of Chrome Extensions DevRel