Re:Show HN: Where Adblock+ injects 20K CSS rules, HTTPSB inj...
by kevingadd on Monday May 19, 2014 @03:06AM
(#7766080)
Plugin memory usage tracking is only realistically possible for Chrome where plugins run in a sandbox with a really limited API. Even then, if the plugin manages to allocate memory inside a page's sandbox (for example, by injecting some CSS or JS in there), the reporting will be wrong.
The adblock plus problem is in fact one of those - it injects styles into pages in order to filter ads, which increases the memory footprint of the page. So neither Firefox nor Chrome can tell you 'adblock plus is increasing memory usage by X', because the memory usage is hidden along with everything else owned by the page, not by the addon.
Re:Show HN: Where Adblock+ injects 20K CSS rules, HTTPSB inj...
by cpeterso on Monday May 19, 2014 @03:25AM
(#7766143)
Firefox is adding "add-on compartments" (bug 990729) that allocate separate memory arenas for each add-on. Firefox will be able to use this information to track (most) memory usage for each add-on.
Re:Show HN: Where Adblock+ injects 20K CSS rules, HTTPSB inj...
by nnethercote on Monday May 19, 2014 @03:34AM
(#7766173)
It can already measure some parts of add-on memory usage, and you can see this by looking for "add-ons" in about:memory. Bug 990729 will improve the accuracy of the measurements.
Re:Show HN: Where Adblock+ injects 20K CSS rules, HTTPSB inj...
by Spittie on Monday May 19, 2014 @04:38AM
(#7766381)
There is also this addon (https://addons.mozilla.org/en-us/firefox/addon/about-addons-...) which has a somewhat nicer interface.
I don't think most users want pop-ups about technical details in browsers. Sublime text is a different story - it's meant for tech folks.