Closed Bug 1754376 Opened 2 years ago Closed 2 years ago

Broken click handler in conent tabs and WebExtension Windows

Categories

(Thunderbird :: Add-Ons: General, defect)

defect

Tracking

(thunderbird_esr91 wontfix)

RESOLVED FIXED
99 Branch
Tracking Status
thunderbird_esr91 --- wontfix

People

(Reporter: TbSync, Assigned: darktrojan)

Details

Attachments

(1 file, 1 obsolete file)

STR:

Create a simple html page with an <h1 id="test">some header</h1> and a link to "#test" somewhere at the bottom after a lot of text to jump back to the top. Load that page with browser.tabs.create({url}) or browser.windows.create({type: "popup", url}). The link does not work in Thunderbird. It does in Firefox.

This is not only limited to WebExtension windows, but also affects standard content tabs.

There is a standard click handler invoked, which calls ContentDispatchChooser.jsm and tries to access gBrowser.getTabDialogBox which we do not have.

https://searchfox.org/mozilla-central/rev/b697834e78a3ef7613e2fa57c07624b1d9d1c909/toolkit/mozapps/handling/ContentDispatchChooser.jsm#540

But I guess this itself is wrong already. I have not found where that is hooked up to our tabs/windows.

The Gecko link-handling code thinks that Thunderbird doesn't handle these protocols, so if you click on a link it tries to open that link outside of Thunderbird.

The test in this patch wouldn't actually catch this problem (it's uses only HTTP) but might catch related problems in the future, so I'm upgrading it while I remember.

Assignee: john → geoff
Status: NEW → ASSIGNED
Attachment #9263000 - Attachment is obsolete: true

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/e47825b0f3c9
Expose file: javascript: and moz-extension: protocol URLs. r=john.bieling

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: