Closed Bug 1665568 Opened 9 months ago Closed 8 months ago

tabs.sendMessage(badid, msg) = "An unexpected error occurred" + "tab is null" instead of "Could not establish connection. Receiving end does not exist."

Categories

(WebExtensions :: General, defect, P3)

defect

Tracking

(firefox-esr78 unaffected, firefox82 wontfix, firefox83 fixed)

RESOLVED FIXED
83 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox82 --- wontfix
firefox83 --- fixed

People

(Reporter: robwu, Assigned: onlinericha19, Mentored)

References

(Regression)

Details

(Keywords: good-first-bug, regression)

Attachments

(1 file)

browser.tabs.sendMessage(12345, "msg"); used to reject with:

"Could not establish connection. Receiving end does not exist."

but now it rejects with:

"An unexpected error occurred"

and the global JS console shows:

tab is null ExtensionParent.jsm:309
getTopBrowsingContextId resource://gre/modules/ExtensionParent.jsm:309
normalizeArgs resource://gre/modules/ExtensionParent.jsm:324

We should fix this, by:

Duplicate of this bug: 1389298

Fixing this is very doable for beginners (with the steps mentioned above), I'll mentor this bug.

To get started, see https://wiki.mozilla.org/WebExtensions/Contribution_Onramp

Mentor: rob
Keywords: good-first-bug
See Also: → 1643176
Severity: -- → S3
Priority: -- → P3
Summary: tabs.sendMessage(baidid, msg) = "An unexpected error occurred" + "tab is null" instead of "Could not establish connection. Receiving end does not exist." → tabs.sendMessage(badid, msg) = "An unexpected error occurred" + "tab is null" instead of "Could not establish connection. Receiving end does not exist."

I would like to give this a shot. Setting up the dev environment right now would try to have a patch ready soon.

Assignee: nobody → onlinericha19
Status: NEW → ASSIGNED
Pushed by rmaries@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/37f7e8b9f72b
Throw no receiver error if tab is not available. r=robwu
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch

Thanks so much, Richa! 🎉 Your contribution has been added to our recognition wiki: https://wiki.mozilla.org/Add-ons/Contribute/Recognition

Welcome onboard! We look forward to seeing you around. 😎

Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.