NoCoin
NoCoin copied to clipboard
"White list for 1 min" in some cases is not work
Reproduce steps:
- Goto https://coin-hive.com/ website.
- Click "White list for 1 min" in "No Coin" popup.
- Click "Start Mining" on homepage.
- 1 min later, mining still working.
I don't know it is bug or not?
Ps. My userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36"
Thanks for the bug report, I will see if I can find a Mac to repro this. In the meantime, could you right click on the extension and inspect the pop-up while on coin-hive.com? Are there any errors in the console?
Nope, nothing appears on console.
The coin-hive will create few Workers
in background for mining, and i want to know that do we have the close Workers
permission in content/background scripts of chrome extension? (I tried to find out, but not found yet.)
so If not, may be force refresh main page when 1 or 30 min(s) later.
how's this idea?
Oh sorry, I misunderstood the original request.
This is a bit of an edge case. The risk of reloading a page once the whitelist is expired is that a user would have content in progress that he would loose if the page would be refreshed. By navigating away the blocking would kick in anyway. I guess an enhancement would be to notify the user that website is not white listed any more but I guess that's very low priority.
You could add an option where the user could select if it turns off the mining, notifies the user, or neither.
Alternatively, and this is a more complex solution, you could have it wait until it finished the jobs currently in progress and then stops.