Match URLs locally without native messaging if unnecessary
Which issue(s) this MR fixes:
What this MR does / why we need it:
This introduces a mechanism matching URL/domain patterns locally to Firefox. Too much native messaging may eat resources, and moreover it possibly triggers death of native messaging system told at the article website!327 (merged) .
With this change Firefox handles URL/domain patterns without unnecessary native messaging. As a side effect it should improve basic performance also.
How to verify the fixed issue:
See below.
The steps to verify:
- Install BrowserSelector to your system.
- Configure BrowserSelector without zone patterns.
- Go to about:debugging and load the addon as a temporary addon.
- Open debugger for the addon, and activate the console tab.
- Type "Response was" into the filtering field.
- Try browsing.
Expected result:
No log should appear in the console, because logs containing "Response was" should be reported only when the native messaging host is called.