Index: ext/background.js |
=================================================================== |
--- a/ext/background.js |
+++ b/ext/background.js |
@@ -603,16 +603,17 @@ |
let sender = {}; |
// Add "page" and "frame" if the message was sent by a content script. |
// If sent by popup or the background page itself, there is no "tab". |
if ("tab" in rawSender) |
{ |
sender.page = new Page(rawSender.tab); |
sender.frame = { |
+ id: rawSender.frameId, |
url: new URL(rawSender.url), |
get parent() |
{ |
let frames = framesOfTabs[rawSender.tab.id]; |
if (!frames) |
return null; |