Closed Bug 1537626 Opened 5 years ago Closed 5 years ago

Update command API to latest m-c code

Categories

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

enhancement
Not set
normal

Tracking

(thunderbird67 fixed, thunderbird68 fixed)

RESOLVED FIXED
Thunderbird 68.0
Tracking Status
thunderbird67 --- fixed
thunderbird68 --- fixed

People

(Reporter: Fallen, Assigned: Fallen)

References

Details

Attachments

(1 file, 2 obsolete files)

The command API got an overhaul, most things moved into a module. Unfortunately the module hardcodes browserAction/sidebarAction/etc but I think we can get away with this.

Now that mochitests work I've also ported the tests.

Attached patch Fix - v1 (obsolete) β€” β€” Splinter Review
Attachment #9052470 - Flags: review?(geoff)

Missing hg add somewhere along the line?

Attached patch Fix - v2 (obsolete) β€” β€” Splinter Review

Yes, thanks for the note!

Attachment #9052470 - Attachment is obsolete: true
Attachment #9052470 - Flags: review?(geoff)
Attachment #9053167 - Flags: review?(geoff)
Comment on attachment 9053167 [details] [diff] [review]
Fix - v2

Review of attachment 9053167 [details] [diff] [review]:
-----------------------------------------------------------------

r+ based on the diff between the m-c files and the c-c files.

I wonder, since ext-commands.js is the same in both trees, should we link it straight from m-c like we do with ext-pkcs11.js? It would leave us prone to breakage if they change the file, but we've got plenty of stuff like that already, what's wrong with a little more? ;-) Happy either way.
Attachment #9053167 - Flags: review?(geoff) → review+
Attached patch Fix - v2 β€” β€” Splinter Review

That's fair, I guess at the time I created the ext-commands.js I was thinking I could make it influence the jsm to not add the sidebar commands.

I've started a try run just to be sure I didn't break anything locally when making the switch:

https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=4118b4b84b084720b3ae8a2fb74315a8fcc2769d

Attachment #9053167 - Attachment is obsolete: true
Attachment #9053552 - Flags: review+

Second try run fails on some unrelated test. Looks like there are some intermittent issues with the mochitests? The first failure was also not my test.

Flags: needinfo?(geoff)

That failure happens sometimes.

Flags: needinfo?(geoff)

Very well then, I'm going to assume my tests work then!

Keywords: checkin-needed

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/6db528de5a88
Make use of ExtensionShortcuts module and add commands API tests. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 68.0
Comment on attachment 9053552 [details] [diff] [review]
Fix - v2

[Approval Request Comment]
User impact if declined: Gecko Profiler does not work without this uplift
Testing completed (on c-c, etc.): this has been working fine on nightly.
Risk to taking this patch (and alternatives if risky): Would be good to have the tests run to make sure everything is working as expected.
Attachment #9053552 - Flags: approval-comm-beta?
Attachment #9053552 - 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: