Open Bug 1944183 Opened 5 months ago Updated 3 months ago

Firefox Android accesses device location data when trying to print a web page

Categories

(GeckoView :: General, defect)

Firefox 134
Unspecified
Android
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: sarentasciyan, Unassigned, NeedInfo)

Details

Attachments

(2 files)

Firefox for Android

Steps to reproduce:

I pressed the 3 dots to open the menu.
Then I pressed on the "Print" menu item.

Actual results:

Print view is displayed with "Save as PDF" option preselected. At this stage my notification bar displays that the location data is being accessed (on Lineage OS there is a green location icon appearing).

Expected results:

Everything was ok, except for the location data being accessed for printing.

OS: Unspecified → Android
Version: Firefox 133 → Firefox 134

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

Component: Untriaged → General
Product: Firefox → Fenix

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

For more information, please visit BugBot documentation.

Flags: needinfo?(towhite)
Flags: needinfo?(towhite)
Product: Fenix → GeckoView

Thank you for reporting, Saren!

A couple of questions:

  • Does this only happen on Lineage OS?
  • Does this happen every time you print?
    • We need to eliminate that another background service wasn't accessing location simultaneously as printing, if this only happened once.
Flags: needinfo?(sarentasciyan)

I now had to chance to try on Motorola some Google phone, and it doesn't happen there.
It happens every time on my Lineage OS.

Flags: needinfo?(sarentasciyan)

It would be great to verify if this reproduces on other flavours of Android

Flags: qe-verify+

I wasn't able to reproduce this issue on Firefox Nightly 138 (2025-03-07), Firefox 137 beta 2 and Firefox 136 on Google Pixel 8 (Android 15), Samsung Galaxy S24 Ultra (Android 14), Lenovo Tab P11 (Android 13), Xiaomi 12T (Android 12), Nothing Phone 1 (Android 12), Oppo Find X3 Neo (Android 11). I confirm that the location is not requested on Print Preview.
Unfortunately, we don't have a device with Lineage OS to verify the behavior there as well.

Please let me know if any additional testing is required from the QA side.

Flags: qe-verify+

Here are screenshots from my side and please let me know if I can do anything to investigate this further. I find this peculiar. If there are any components, which are used by the app from the operating system, I can bring this up on the LineageOS side? FYI: the location access disappears after short while (green icon on top).

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

For more information, please visit BugBot documentation.

Flags: needinfo?(bugzeeeeee)

If there are any components, which are used by the app from the operating system, I can bring this up on the LineageOS side?

Yeah, I agree this is peculiar. Asking LineageOS about it would be a good next step because the print screen is OS provided. Essentially, a request to print launches an OS provided com.android.printspooler.ui.PrintActivity. (Example Google Android one.)

GV/Fenix/Focus are using an implementation called GeckoViewPrintDocumentAdapter. This is an extension of the system defined PrintDocumentAdapter. This is how the OS PrintActivity is launched and interacted with.

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

Attachment

General

Creator:
Created:
Updated:
Size: