Open Bug 1880724 Opened 1 year ago Updated 8 months ago

Clicking link in Thunderbird opens Firefox, but doesn't proceed with link

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 123
defect

Tracking

()

UNCONFIRMED

People

(Reporter: igor.mironchik, Unassigned)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0

Steps to reproduce:

I click link in email body in Thunderbird. Opens new Firefox window to proceed with link and open a web page.

Actual results:

In address bar is nothing, Firefox doesn't do anything.

Expected results:

Opens a web page from link in Thunderbird.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Does other app works? Can you open URL link from terminal for instance?
Thanks.

Flags: needinfo?(igor.mironchik)

Hello. From terminal, if I type, for example:

firefox https://www.google.com

works, when Firefox is not launched, or launched in working state.

But if I first (when Firefox is not launched) I click link in Thunderbird, Firefox launches, but link doesn't proceed. And if in this state of Firefox I type from terminal:

firefox https://www.google.com

Firefox opens second Tab, I see in address bar my URL, but nothing happens, link doesn't proceed.

Flags: needinfo?(igor.mironchik)
Attached image firefox.gif

Look at this GIF, I recorded the issue, and working launch.

Please attach about:support page.
Thanks.

Flags: needinfo?(igor.mironchik)
Attached file info.zip

I attached support page. And one more info: from other applications links work.

Flags: needinfo?(igor.mironchik)

Can you try to edit /usr/bin/firefox and log which args are passed to the launch script?
Thanks.

Flags: needinfo?(igor.mironchik)
Attached file firefox.sh

This is a script that /usr/bin/firefox was linked to...

Flags: needinfo?(igor.mironchik)

Wait...

I printed args set to Firefox, when it launched from Thunderbird. And there only a URL, like:

https://bugzilla.mozilla.org/show_bug.cgi?id=1880724

I mean, if you run firefox from terminal as:

/usr/bin/firefox bugzilla.mozilla.org

is the bugzilla page opened? I guess so. And can you check how Firefox is executed from TB, if the call also contains the URL?

You may add echo to print params before exec to firefox.sh script:

exec $MOZ_LIBDIR/$MOZ_APP_NAME "$@"

like

echo $MOZ_LIBDIR/$MOZ_APP_NAME "$@" > ~/ff-run.txt 2>&1
exec $MOZ_LIBDIR/$MOZ_APP_NAME "$@"

and then check ~/ff-run.txt file how Firefox is launched.

I got:

/usr/lib/firefox/firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1880724

So Firefox was launched from Thunderbird. And I got the described issue.

So if you run Firefox from terminal as /usr/lib/firefox/firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1880724 it works but if it's launched from TB it's broken, right? I wonder why the same command once works and once fails.

Priority: -- → P3

So if you run Firefox from terminal as /usr/lib/firefox/firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1880724 it works but if it's launched from TB it's broken, right? I wonder why the same command once works and once fails.

Yes. I don't have any idea too...

Does TB behave the same if Firefox is already running? It should open URL in already running FF instance.

Does TB behave the same if Firefox is already running?

No, in this case all works like a charm.

If it matters, I'm on:

Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.5.0-18-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Manufacturer: HP
Product Name: HP ProBook 640 G3

Firefox and Thunderbird installed via apt.

The issue is still there. And I want to add that Firefox doesn't proceed with links texted in address bar if Firefox opened by clicking link in Thunderbird. New tabs behaves the same. I was forced to close Firefox and open new instance to have ability to proceed with address bar.

Can you try 'xdg-open http://www.google.com' command from terminal? Does it open Firefox with google as expected?

Flags: needinfo?(igor.mironchik)

xdg-open http://www.google.com opens Firefox and proceed to Google, everything works.

Flags: needinfo?(igor.mironchik)

(In reply to igor.mironchik from comment #21)

xdg-open http://www.google.com opens Firefox and proceed to Google, everything works.

xdg-open standard system-wide way how to open particular file. If that works, ti means there's a bug in your Thunderbird config and Thunderbird doesn't follow system settings but uses its own. You may try to check if there's set any custom html file handler or so - you may use system default.

You may check Edit -> Settings and 'Files & Attachments' section what's configured for html links.

In that settings I have a line for PDF only. In Config Editor I don't see any changed values for this kind of issues.

Just caught myself on interesting thought - what if this problem is not in systems calls, but in some library that used both in Thunderbird and Firefox? I'm on Linux using system installed Mozilla products... Maybe...

I think TB opens Firefox in some non-standard way which doesn't pass the URL. But frankly I have no idea how. You may try to create a new clean TB profile (run thunderbird -P on terminal) and check it...and then perhaps copy messages to the new profile and use it.

No, it didn't help. I deleted all profiles with all files in dialog from thunderbird -P, and created new default profile. The issue is here.

Solution in the answer works for me...

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: