Bug 213632 - Web Inspector: release unused backend domains/events/commands once the debuggable type is known
Summary: Web Inspector: release unused backend domains/events/commands once the debugg...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 201150
Blocks:
  Show dependency treegraph
 
Reported: 2020-06-25 17:29 PDT by Devin Rousso
Modified: 2020-06-25 17:29 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2020-06-25 17:29:04 PDT
Once legacy support for `Inspector.activateExtraDomains` is no longer needed, Web Inspector doesn't need to hold on to anything not supported by the current `WI.DebuggableType` (and associated `WI.TargetType`s) for feature checking, as once the `WI.DebuggableType` is known it will not change (nor will the associated `WI.TargetType`s).

Additionally, we could even streamline the process of ingesting `InspectorBackendCommands.js` by querying for the `WI.DebuggableType` (and associated `WI.TargetType`s) up front or even generate the data structure and model objects directly.