Closed Bug 1803255 Opened 2 years ago Closed 1 year ago

Fix and enable the remaining tests with the new 3-pane

Categories

(Thunderbird :: Mail Window Front End, task)

Tracking

(thunderbird_esr102 unaffected)

RESOLVED FIXED
111 Branch
Tracking Status
thunderbird_esr102 --- unaffected

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Depends on 1 open bug, Blocks 2 open bugs, Regressed 1 open bug)

Details

Attachments

(18 files, 1 obsolete file)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
No description provided.

This changes browser_ext_tabs_events.js to stop expecting page load events when switching tabs.
It also fixes the case where about:message loads after tabmail.openTab returns, or where it's in a standalone message window.

Depends on D164169

Depends on: 1805375

These tests are mostly duplicates of existing tests, so if the changes look familiar it's because I've just fixed the same thing a second time!

This will make things a lot easier for several WebExtension APIs.

In that code tabs are represented by tabmail tabInfo objects, or if not in the main window, by the window itself. This code provides direct access to those objects.

The non-working part will be handled in another bug.

Depends on D165242

Depends on: 1806938

This test is broken on Windows with new mail tabs for reasons I don't understand. Rewriting some parts using existing utility functions fixes it somehow.

These tests all pointlessly attempt to remove files when cleaning up. browser_mailTabsAndWindows.js fails to do so on Windows and breaks browser_spacesToolbar.js.

Depends on D166513

Attachment #9311703 - Attachment description: Bug 1803255 - Fix test browser_spacesToolbar.js. r=#thunderbird-reviewers → Bug 1803255 - Fix broken test browser_spacesToolbar.js. r=#thunderbird-reviewers

The code was emitting remote content notifications using the BrowsingContext of the remote content, but only checking the topmost BrowsingContext, so it didn't work when iframes got involved.

Comment on attachment 9311707 [details]
Bug 1803255 - Fix broken test browser_generalContentPolicy.js. r=BenC

Revision D166517 was moved to bug 1799764. Setting attachment 9311707 [details] to obsolete.

Attachment #9311707 - Attachment is obsolete: true
Attachment #9311702 - Attachment description: Bug 1803255 - Fix broken test browser_attachMenu.js. r=#thunderbird-reviewers → Bug 1803255 - Fix broken test browser_attachMenu.js. r=aleca
Attachment #9311703 - Attachment description: Bug 1803255 - Fix broken test browser_spacesToolbar.js. r=#thunderbird-reviewers → Bug 1803255 - Fix broken test browser_spacesToolbar.js. r=aleca

This fixes the test with the new mail tabs, which don't count S/MIME messages as read if they can't be decrypted. It's been broken since bug 1805848.
The message body now matches that of mail/test/browser/smime/data/multipart-alternative.eml, where I think I got the original body too.

Attachment #9312759 - Attachment description: Bug 1803255 - Fix browser_mailTelemetry.js. r=KaiE → Bug 1803255 - Fix browser_mailTelemetry.js and browser_viewMessageSecurity.js. r=KaiE

This is failing on Windows trying to clean up a non-empty directory.

This just needed updating for the new mail tabs.

I never added the platform variation of the window title.

Attachment #9312760 - Attachment description: Bug 1803255 - Fix browser_perm_decrypt.js on Windows. r=#thunderbird-reviewers → Bug 1803255 - Fix browser_perm_decrypt.js on Windows. r=aleca
Attachment #9312770 - Attachment description: Bug 1803255 - Fix browser_viewMessage.js. r=#thunderbird-reviewers → Bug 1803255 - Fix browser_viewMessage.js. r=freaktechnik
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Whiteboard: [ash]
Target Milestone: --- → 111 Branch
Regressions: 1811246
Regressions: 1811247
Blocks: 1825869
Regressions: 1837247
Regressions: 1832149
Regressions: CVE-2024-1936
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: