Closed Bug 1630840 Opened 5 years ago Closed 5 years ago

Browser action properties aren't updated in the current tab

Categories

(Thunderbird :: Add-Ons: Extensions API, defect)

defect

Tracking

(thunderbird76 fixed)

RESOLVED FIXED
Thunderbird 77.0
Tracking Status
thunderbird76 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

Details

(Keywords: regression)

Attachments

(1 file)

Calling things like browser.browserAction.enable with the tab ID of the current tab does not update the browser action in the current tab until switching tabs. We have a test that should've caught this, but it switches tabs every time it checks properties, so it didn't.

Attachment #9141146 - Flags: review?(mkmelin+mozilla)
Attachment #9141146 - Flags: approval-comm-beta?
Comment on attachment 9141146 [details] [diff] [review] 1630840-browseraction-properties-1.diff Review of attachment 9141146 [details] [diff] [review]: ----------------------------------------------------------------- r=mkmelin
Attachment #9141146 - Flags: review?(mkmelin+mozilla) → review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/71abdc0e3d3f
Fix updating browserAction properties in the current tab. r=mkmelin DONTBUILD

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 77.0

(In reply to Geoff Lankow (:darktrojan) from comment #0)

Calling things like browser.browserAction.enable with the tab ID of the current tab does not update the browser action in the current tab until switching tabs. We have a test that should've caught this, but it switches tabs every time it checks properties, so it didn't.

So the test isn't (easily) fixed?

Flags: needinfo?(geoff)

It's fixed. I added a new piece which doesn't switch tabs.

Flags: needinfo?(geoff)
Attachment #9141146 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: