Closed Bug 1870978 Opened 2 years ago Closed 2 months ago

Open link from extensions causing history leak in private browsing mode in Fenix

Categories

(Firefox for Android :: WebExtensions, defect, P3)

Firefox 120
All
Android
defect

Tracking

()

RESOLVED DUPLICATE of bug 1699444

People

(Reporter: Tom25519, Unassigned)

References

Details

(Keywords: privacy)

Attachments

(1 obsolete file)

User Agent: Mozilla/5.0 (Android 10; Mobile; rv:120.0) Gecko/120.0 Firefox/120.0

Steps to reproduce:

1.Into private browsing mode
2.Open a webpage
3.Touch "Report Site Issue..." in 3-dots menu, and a new page will open

Actual results:

History item appears, it even still existing after restart firefox.

Expected results:

Shouldn't leave any history (or others browsing data) in private browsing mode.

Version: Firefox 120 → Firefox 122
Summary: Report site issue (using Webcompact add-on) causing history leak in private browsing mode in Fenix → Open link from extensions causing history leak in private browsing mode in Fenix

Same situation happens on uBlock Origin. Today, I report uBlock Origin filter issues, the private tab created by uBlock Origin also leaves history items.

Status: UNCONFIRMED → NEW
Ever confirmed: true

I can reproduce this problem. Can you take a look?

Flags: needinfo?(jonalmeida942)
Flags: needinfo?(cpeterson)

Ref:

  1. https://searchfox.org/mozilla-mobile/source/firefox-android/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/webextension/GeckoWebExtension.kt#258-267

GeckoEngineSession is instantiated with privateMode's default value false.

So no matter the tab is opened bu private tab or normal tab, this tab will always be normal (although it is in the private tabstray)

I add privateMode = true, , then the history item will not be generated.

  1. If you take FirefoxReality as a refer:
    https://searchfox.org/mozilla-mobile/source/FirefoxReality/app/src/common/shared/org/mozilla/vrbrowser/browser/components/GeckoWebExtension.kt#250-253

it will create session based on activesession's private mode.

Component: General → WebExtensions
Flags: needinfo?(jonalmeida942)
Flags: needinfo?(cpeterson)
Summary: Open link from extensions causing history leak in private browsing mode in Fenix → Open link from extensions causing history leak in private browsing mode in Fenix
Version: Firefox 122 → Firefox 120
See Also: → 1372178

More strangely, today I login mailbox and mozilla bugzilla, after I quit fenix and reopen, then open theses websites, they're still logged in.

(In reply to Tom25519 from comment #4)

More strangely, today I login mailbox and mozilla bugzilla, after I quit fenix and reopen, then open theses websites, they're still logged in.

This situation only happens on Fennec F-droid 121.0, but not Fenix 121.0

(In reply to Tom25519 from comment #5)

(In reply to Tom25519 from comment #4)

More strangely, today I login mailbox and mozilla bugzilla, after I quit fenix and reopen, then open theses websites, they're still logged in.

This situation only happens on Fennec F-droid 121.0, but not Fenix 121.0

Today it happen on both Fenix 121.0.1 and F-droid 121.0.

See Also: → 1873375
See Also: 1873375

The severity field is not set for this bug.
:amejia, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(amejiamarmol)
Severity: -- → S3
Flags: needinfo?(amejiamarmol)
Priority: -- → P3
Attachment #9382942 - Attachment is obsolete: true
Duplicate of this bug: 1967140
Duplicate of this bug: 1968434
Keywords: privacy

Similar issue: in private browsing, use the "Search by Image" extension to search for an image in a private tab. Click some links on the results page, and those links will be saved in your history even though they visually appear to be in private tabs. You will also be logged in to all services (e.g. Google) as if it were a non-private tab.

Tested against Fenix Nightly 141.0a1 (Build #2016096794).

I could not confirm the behaviour with the Report Broken Site button, from private mode I tapped "Send more info" from the Broken Site screen, which resulted in a private tab without a trace in normal browsing history.

However, comment #11 is reproducible. All cookies are present from normal browsing mode, the browsing history contains the pages involved.

See Also: → 2049842

The "Report Site Issue" was fixed by bug 1940541, which replaced the built-in extension with mobile-native UI (called "Report broken site").

I'll fix comment 11 in a separate bug.

Status: NEW → RESOLVED
Closed: 2 months ago
Depends on: 1940541
Duplicate of bug: CVE-2026-84127
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: