gorhill / uBlock

uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.
GNU General Public License v3.0
47.37k stars 3.15k forks source link

excessive opening of the tab #3295

Closed raingart closed 6 years ago

raingart commented 6 years ago

I have suffered for a long time but it bothered me (strange but probably only me). When you open the pages options uBlock, to redirects chrome://extensions/ to redirect to the popup extensions and open to the setting uBlock. I have a question - why to open extensions page (and popup "options_ui")? why not open the options page to direct? Regards Raingart

gorhill commented 6 years ago

By design. uBO's options can only fit in a whole tab, so redirection is needed to make the whole tab open rather than a useless embedded frame in the chrome://extensions/ page, which is forced upon by Chrome.

uBlock-user commented 6 years ago

This doesn't happen on uMatrix, so why only with uBlock Origin ?

gorhill commented 6 years ago

https://developer.chrome.com/extensions/optionsV2#migration (my emphasis):

At least until Chrome 40 is stable, you should specify both the options_ui and the options_page fields.

Older versions of Chrome will only recognize options_page, and only open in tabs. Chrome 40 and onwards prefer to use the options_ui field if it's specified.

[...]

In a future version of Chrome, any extension which specifies options_page will change to match the options_ui behavior - most importantly, they will always be embedded in chrome://extensions - so migrate as soon as possible.

@uBlock-user uMatrix still uses options_page, but it also needs to move to options_ui, as stated by Chrome documentation.

gorhill commented 6 years ago

uBO does not access the file system on its own, the option exists only to let you import filter lists which URL is a file on your computer.

uBlock-user commented 6 years ago

@gorhill So you're saying the uBO behaviour will happen with uMatrix soon ? That sucks.

jspenguin2017 commented 6 years ago

But why is a new tab needed? Why not just replace the current tab (chrome://extensions) with the dashboard?