alexcoe / remote-torrent-adder

Automatically exported from code.google.com/p/remote-torrent-adder
0 stars 2 forks source link

Background page is always active even if URL matching is disabled #92

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of Chrome are you using? On what operating system?
Google Chrome   33.0.1750.124 (Official Build 251905) beta
Platform    5116.88.0 (Official Build) beta-channel daisy_spring
(HP Chromebook 11)

What client (version?) are you connecting to? Are you using SSL?
Using XBMC Frodo (OpenELEC), no SSL.

What steps will reproduce the problem?
1. Install and configure extension, disable URL matching
2. Open Task Manager with Ctrl-Esc

What is the expected output? What do you see instead?
I don't think there's a reason the background page should stay active after 
adding a torrent if URL matching is disabled.
Background page is active for this extension and using memory. 

Original issue reported on code.google.com by triskelios on 23 Feb 2014 at 4:10

GoogleCodeExporter commented 9 years ago
to be honest, i haven't followed latest developments in chrome, but to my 
knowledge there's no mechanism that lets the background page be unloaded for 
any extension after the browser is started, save for the extension disable 
function in chrome's extensions page.

the thing is that there are several ways of adding torrents using this 
extension, and the background page serves as a central hub for much of the 
functionality it provides, so shuffling everything somewhere else would 
(nowadays -- some time ago content scripts didn't have access to the extension 
settings) be possible, but kind of unnecessary.

Original comment by jul...@gmail.com on 23 Feb 2014 at 5:31

GoogleCodeExporter commented 9 years ago
I'm pretty new to Chrome development but it might be possible to convert it to 
an event page that only gets loaded if an event it registers fires and a 
content script requests it: http://developer.chrome.com/extensions/event_pages
Probably possible to keep backwards compat that way.

Original comment by triskelios on 23 Feb 2014 at 6:23

GoogleCodeExporter commented 9 years ago
might be possible. but not particularly high on the priorities list. perhaps if 
the inevitable rewrite comes along.

Original comment by jul...@gmail.com on 23 Feb 2014 at 7:28