av9ash/GitBugs huggingface dataset:
Bug: Using the Delete column in the "Search Messages…" window may also delete other messages and may break keyboard navigation.
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2025-03-04 15:09:42+00:00
Resolved: 2025-03-05 10:29:04+00:00

__Steps to reproduce:__
1. Open the context menu of a real folder and select "Search Messages…".
2. Click on the icon with the tooltip "Select columns to display" and enable "Delete".
3. Enter a search term that will return results.
4. Multi-select two or more messages.
5. Click on the trash icon of one of the selected messages.
6. Click on the trash icon of an unselected message.
7. Press the up or down arrow key.

__Expected result:__
After step 5, only the clicked message is being deleted.
After step 6, the clicked message is being deleted, keyboard navigation remains functional.

__Actual result:__
After step 5, all selected messages are being deleted.
After step 6, the clicked message is being deleted, but keyboard navigation does not remain functional.
After step 7, the error console displays
```
Error: We do not implement timed selection. TreeSelection.mjs:205:11
    timedSelect chrome://messenger/content/TreeSelection.mjs:205
    _moveByOffset chrome://global/content/elements/tree.js:1437
    setupEventListeners chrome://global/content/elements/tree.js:955
Uncaught NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "We do not implement timed selection." {file: "chrome://messenger/content/TreeSelection.mjs" line: 205}]'[JavaScript Error: "We do not implement timed selection." {file: "chrome://messenger/content/TreeSelection.mjs" line: 205}]' when calling method: [nsITreeSelection::timedSelect]
    _moveByOffset chrome://global/content/elements/tree.js:1437
    setupEventListeners chrome://global/content/elements/tree.js:955
tree.js:1437
    _moveByOffset chrome://global/content/elements/tree.js:1437
    setupEventListeners chrome://global/content/elements/tree.js:955
```
Bug: docker-image-tb-snap failure python3 no such file or directory
Status: ASSIGNED
Priority: --
Created: 2025-03-04 15:15:12+00:00
Resolved: 2025-03-04 16:43:51+00:00

/scripts/make_venv.sh: line 21: /snap/snapcraft/current/bin/python3: No such file or directory

https://firefox-ci-tc.services.mozilla.com/tasks/groups/Q9bcsUjuRKatFLKZzyJGJQ
https://firefox-ci-tc.services.mozilla.com/tasks/QTnnfKL6RUWZjqBs6Uo1QA

Debugging:

```
0.345 + echo PATH=/snap/snapcraft/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0.345 + ls -al /usr/bin/python3
0.345 PATH=/snap/snapcraft/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0.348 lrwxrwxrwx 1 root root 10 Aug  8  2024 /usr/bin/python3 -> python3.10
0.348 + ls -al /snap/snapcraft/current/bin/python3
0.352 lrwxrwxrwx 1 root root 21 Feb 25 19:29 /snap/snapcraft/current/bin/python3 -> ../usr/bin/python3.12
0.353 + ls -al /snap/snapcraft/current/bin/python3.12
0.356 lrwxrwxrwx 1 root root 7 Feb 25 19:14 /snap/snapcraft/current/bin/python3.12 -> python3
0.356 + python3 --help
0.357 /scripts/make_venv.sh: line 24: /snap/snapcraft/current/bin/python3: No such file or directory
```
So the path exists for /snap/snapcraft/current/bin/python3. My guess is the snap is strict confinement and won't allow calling /snap/snapcraft/current/bin/python3 from outside the snap.

Switching to /usr/bin/python3 in make_venv.sh fixes the issue.
Bug: snapcraft path is incorrect in docker/tb-snap/repack.sh
Status: ASSIGNED
Priority: --
Created: 2025-03-04 21:58:57+00:00
Resolved: 2025-03-05 07:46:00+00:00

```
~/src/thunderbird/comm-central/taskcluster$ which snapcraft
/snap/bin/snapcraft
~/src/thunderbird/comm-central/taskcluster$ snapcraft --version
snapcraft 8.7.1
~/src/thunderbird/comm-central/taskcluster$ /snap/bin/snapcraft --version
snapcraft 8.7.1
~/src/thunderbird/comm-central/taskcluster$ /snap/snapcraft/current/bin/snapcraft --version
Traceback (most recent call last):
  File "/snap/snapcraft/current/bin/snapcraft", line 5, in <module>
    from snapcraft.application import main
ModuleNotFoundError: No module named 'snapcraft'
```
I believe /snap/bin/ needs to be in the path at in docker/tb-snap/Dockerfile:
ENV PATH="$SNAP/bin:$PATH"

The only snap directory I have locally in my PATH is /snap/bin.
Bug: Exchange AutoDiscover: Fix code to show username field
Status: ASSIGNED
Priority: --
Created: 2025-03-05 00:24:44+00:00
Resolved: 2025-03-05 00:58:51+00:00

(Re-filing the confusing bug 1907443)

In account setup, with Exchange AutoDiscover, we show a username field, but only when necessary, that is, when the server returns a HTTP 401.

That old code is racy. Only by coincidence, in TB 128, that race does not actually happen, because the new OAuth2 prompt during AutoDiscover waits for user input and blocked the racing function.

This is a fix that makes this code cleaner, more reliable, and not racy anymore.
Bug: Exchange AutoDiscover: 'No such host' errors are no longer handled correctly - statusText vs. status [regression]
Status: ASSIGNED
Priority: --
Created: 2025-03-05 00:26:52+00:00
Resolved: 2025-03-05 07:27:52+00:00

(Re-filing bug 1907443 with less confusion)

In account setup, Exchange AutoDiscover, we try server names (like autodiscover.example.com) that may not exist. So, "host not found", firewalls blackholing us and never responding (not even a "no such host"), and similar errors are normal and common, by the very nature.

As of bug 1397646, `FetchHTTP` can't reliably use `statusText` any more as a means of detecting network failures. So if the autodiscover server doesn't provide any status text (e.g. because it uses HTTP/2), `FetchHTTP` now misidentifies these as network failures.

The fix is to use the `status` property instead.
Bug: Thunderbird-136.0 doesn't compile with "--disable-thunderbird-rust" option
Status: UNCONFIRMED
Priority: --
Created: 2025-03-05 12:10:21+00:00
Resolved: 2025-03-05 13:55:04+00:00

Steps to reproduce:

Try to compile the newest release 136.0 with `--disable-thunderbird-rust` option.


Actual results:

Linking phase failed to:
```
9:46.62 ld.lld: error: undefined symbol: nsLinuxSysTrayHandlerConstructor
```
```
 
 9:46.62 ld.lld: error: undefined symbol: nsLinuxSysTrayHandlerConstructor
 9:46.62 >>> referenced by StaticComponents.cpp
 9:46.62 >>>               ../../../xpcom/components/StaticComponents.o:(mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**))
 9:46.74 x86_64-pc-linux-gnu-clang++-19: error: linker command failed with exit code 1 (use -v to see invocation)
 9:46.74 gmake[4]: *** [/var/tmp/portage/mail-client/thunderbird-136.0/work/thunderbird-136.0/config/rules.mk:539: ../../../dist/bin/libxul.so] Error 1 
```
Find the full build.log attached.


Expected results:

At least with the 128esr releases, "--disable-thunderbird-rust" option can be turned off and the thunderbird-esr will compile just fine. Hence I think it's a bug in the 136.0 release.
Bug: JavaScript error: resource://gre/modules/ExtensionCommon.sys.mjs, line 1597: Error: Module 'contextualIdentities' already registered
Status: NEW
Priority: --
Created: 2025-03-05 16:18:11+00:00
Resolved: 2025-03-05 16:18:11+00:00

At Thunderbird startup I get this in the native console
```JavaScript error: resource://gre/modules/ExtensionCommon.sys.mjs, line 1597: Error: Module 'contextualIdentities' already registered```
Bug: Intermittent comm/mail/components/extensions/test/browser/browser_ext_messageDisplayScripts_mv3.js | The 'readyState' value at state #1 should be correct - "interactive" == "complete"
Status: NEW
Priority: P5
Created: 2025-03-05 16:52:48+00:00
Resolved: 2025-03-05 20:04:31+00:00

**Filed by:** brendan [at] thunderbird.net
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=497644075&repo=comm-central
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/f5TSXjMKTE6OgVzSIYu1xg/runs/0/artifacts/public/logs/live_backing.log

---
```

```
Bug: Open profile folder buttons do not open the directory for packaged (MSIX/AppX) installations
Status: UNCONFIRMED
Priority: --
Created: 2025-03-05 19:24:11+00:00
Resolved: 2025-03-05 20:05:57+00:00

Steps to reproduce:

1. Make sure that the "%APPDATA%\Thunderbird" directory does not exist.
2. Install Thunderbird using the MS Store.
3. Open menu > Help > Troubleshooting Information.
4. Press Open Folder next to Profile Folder.


Actual results:

"%LOCALAPPDATA%\Packages\MozillaThunderbird.MZLA_h5892qc0xkpca\LocalCache\Roaming\Thunderbird\Profiles\example" should be opened in the explorer.


Expected results:

Thunderbird attempts to open "%APPDATA%\Thunderbird\Profiles\example" in the explorer, causing an error.
Bug: Intermittent comm/mail/base/test/browser/browser_threads.js | icon should be visible - false == true
Status: NEW
Priority: P5
Created: 2025-03-05 19:59:08+00:00
Resolved: 2025-03-05 19:59:16+00:00

**Filed by:** mkmelin [at] iki.fi
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=497713444&repo=comm-central
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/RxublRIkSFirptZKTOIEQg/runs/0/artifacts/public/logs/live_backing.log

---
```

```
Bug: Some add-on optional permissions are not kept after Thunderbird is closed
Status: RESOLVED
Priority: --
Resolution: INVALID
Created: 2025-03-05 20:00:52+00:00
Resolved: 2025-03-05 20:12:47+00:00

When using optional permissions, the given ones are not retained after Thunderbird is closed.
In my tests `messagesTagsList`, `messagesTags`, `messagesUpdate` and `messagesMove` are not kept, while `tabs` is kept.
I have not tested all permissions.
Bug: Cannot paste text from Word into body of email
Status: UNCONFIRMED
Priority: --
Created: 2025-03-05 23:33:53+00:00
Resolved: 2025-03-05 23:34:35+00:00

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36

Steps to reproduce:

tried to paste text from Word into body of email.  It looked like it was there when I pressed Save, but after it closed and it opened it, none of the text that I pasted was there.