Open Bug 1783052 Opened 2 years ago Updated 8 months ago

Consolidate definitions of webRequest.ResourceType and declarativeNetRequest.ResourceType

Categories

(WebExtensions :: Request Handling, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: robwu, Unassigned)

References

Details

Luca asked for the definitions of webRequest.ResourceType and declarativeNetRequest.ResourceType to be merged:
https://phabricator.services.mozilla.com/D152503?id=609560#inline-843093

Note on the implementation: Schemas.jsm does not support $import on a type, so if we want to go that route, we'd have to implement $import on types first, or another way to import/"copy" type definitions from another namespace.

An alternative is to use "$ref": "webRequest.ResourceType" instead of "$ref": "ResourceType" in the DNR JSON schema, but by doing so the definition will not be exposed on the declarativeNetRequest namespace (e.g. dnr.ResourceType.MAIN_FRAME).

Yet another alternative is to just keep the current state, i.e. separate duplicate definitions.

Priority: -- → P5
Severity: -- → N/A
Priority: P5 → P3
You need to log in before you can comment on or make changes to this bug.