Closed
Bug 1404213
Opened 7 years ago
Closed 7 years ago
Why runtime.onMessage listener passed sender has not "tab" property when Firefox Responsive Design Mode?
Categories
(WebExtensions :: Android, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1394841
People
(Reporter: 626954412, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
Build ID: 20170928220658
Steps to reproduce:
// content script
browser.runtime.sendMessage('hello');
// background script
browser.runtime.onMessage.addListener(function(data ,sender){
console.log(sender.tab);//will undefined when Firefox Responsive Design Mode
});
Actual results:
I can not find anything from
- https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/runtime/MessageSender
- https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Differences_between_desktop_and_Android
- https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs
Expected results:
has tab property like Firefox desktop normal mode.
Updated•7 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•