Closed Bug 1788991 Opened 2 years ago Closed 2 years ago

Add Messaging Trigger for the nth Closed Tab

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
106 Branch
Iteration:
106.2 - Sept 5 - Sept 16
Tracking Status
firefox106 --- verified

People

(Reporter: mviar, Assigned: mviar)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

To enable the message created in bug 1783684, add a messaging trigger for the user closing the nth tab in a session.

We should be able to use something like SessionStore.getClosedTabData(window).length to determine the number of closed tabs.

Assignee: nobody → mviar
Iteration: 106.1 - Aug 22 - Sept 2 → 106.2 - Sept 5 - Sept 16
Attachment #9293824 - Attachment is obsolete: true
Attachment #9293825 - Attachment description: WIP: Bug 1788991 - Add Messaging Trigger for the nth Closed Tab → Bug 1788991 - Add Messaging Trigger for the nth Closed Tab
Attachment #9293825 - Attachment description: Bug 1788991 - Add Messaging Trigger for the nth Closed Tab → WIP: Bug 1788991 - Add Messaging Trigger for the nth Closed Tab
Attachment #9293825 - Attachment description: WIP: Bug 1788991 - Add Messaging Trigger for the nth Closed Tab → Bug 1788991 - Add Messaging Trigger for the nth Closed Tab
Pushed by mviar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/658be3acc41a Add Messaging Trigger for the nth Closed Tab r=dmose,Mardak

Backed out changeset 658be3acc41a (bug 1788991) for causing bc failures in toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_docs.js

Backout link: https://hg.mozilla.org/integration/autoland/rev/d42949e00612e6f14ef5e0f5da4af9141572bb95

Push with failures

Failure log

TEST-UNEXPECTED-FAIL | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_docs.js | Uncaught exception in test - at :0 - SyntaxError: JSON.parse: expected double-quoted property name at line 250 column 11 of the JSON data
Flags: needinfo?(mviar)

Ah, this test didn't run on my try auto run. Will be sure to run manually next time I update schemas. I've removed the trailing comma and will attept to reland.

Flags: needinfo?(mviar)
Pushed by mviar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eab86690194c Add Messaging Trigger for the nth Closed Tab r=dmose,Mardak
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
Blocks: 1790835
Blocks: 1790880
Blocks: 1792226

I have verified this enhancement using the latest Firefox Beta 106.0b7 (Build ID: 20221002185807) on Windows 10x64, macOS 12.3.1 and Linux Mint 20.3 and I can confirm the following:

  • The Firefox View CFR message is triggered after the 3 closed tabs and having a profile age of at least 2 days.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: