Open Bug 1543613 Opened 5 years ago Updated 2 years ago

Use DevTools specific blocking reason for manual resource blocking

Categories

(DevTools :: Netmonitor, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: Honza, Unassigned)

References

(Blocks 1 open bug)

Details

This is a follow up for bug 1151368

See also this comment:
https://phabricator.services.mozilla.com/D26579#789734

We are currently using the following code to manually block selected resources:

channel.cancel(Cr.NS_BINDING_ABORTED);

But, we could define a new DevTools specific error and extend the existing list here:

https://searchfox.org/mozilla-central/source/__GENERATED__/xpcom/base/ErrorList.h#880-889

This new DevTools realted blocking reason would be consequently exposed to the user in the same way as other blocking reasons (CORS, CSP, etc.). See also bug 1493599

Honza

Type: defect → enhancement
Depends on: 1493599, 1151368
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.