This adds webInspector.panels.onResourceLinkClicked which allows extensions to intercept request to display resources. In case an extension adds a listener to this event, the default handling in front-end is disabled (i.e. resources are not opened in the resource panel).
Created attachment 108146 [details]
Comment on attachment 108146 [details]
As discussed offline, there should be one handler for the event and there should be a way to explicitly specify which extension handles the event(in case there are many): either a setting or a popup dialog with a list of potential handlers.
Created attachment 108638 [details]
- only allow one handler to receive an event;
- added handler selection to the Settings screen;
- changed API interface from Event to a method that sets handler
Comment on attachment 108638 [details]
HandlerRegistry.js is missing
Created attachment 108643 [details]
- added missing file
Comment on attachment 108643 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=108643&action=review
> + // Only send command if we either removed and existing handler or added handler and had none before.
typo: removed and existing
Created attachment 108646 [details]
Created attachment 108647 [details]
Manually committed r95942: http://trac.webkit.org/changeset/95942