Match URLs locally without native messaging if unnecessary

Which issue(s) this MR fixes:

#16

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:

  1. Install BrowserSelector to your system.
  2. Configure BrowserSelector without zone patterns.
  3. Go to about:debugging and load the addon as a temporary addon.
  4. Open debugger for the addon, and activate the console tab.
  5. Type "Response was" into the filtering field.
  6. 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.

Merge request reports

Loading