Ignore port connection without tab

Fixes #255
This commit is contained in:
kkapsner 2018-09-13 22:50:10 +02:00
parent b0e1e69ec9
commit 456c21cb04
2 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,10 @@
message("register port listener");
browser.runtime.onConnect.addListener(function(port){
notice("got port", port);
if (!port.sender.tab){
notice("got port without tab = Firefox bug:", port);
return;
}
verbose("send back the tab id", port.sender.tab.id);
verbose("send back the persistent random seeds", persistentRndStorage.persistentRnd);
port.postMessage({

View File

@ -13,6 +13,7 @@ Version 0.5.4:
fixes:
- window and audio API were always blocked when using any of the "block ..." modes
- canvas content was not stored to be displayed when wanted
- hovering over toolbar icon created error in the browser console
known issues:
- if a data URL is blocked the page action button does not appear