Closed Bug 1885171 Opened 2 months ago Closed 15 days ago

Javascript prompts from a private browsing page do not put the on-screen (Gboard) keyboard in incognito mode

Categories

(Fenix :: Privacy, defect)

Firefox 123
All
Android
defect

Tracking

(firefox127 verified)

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- verified

People

(Reporter: 98zo3klq4, Assigned: tthibaud)

References

Details

(Whiteboard: [fxdroid][group4])

Attachments

(2 files)

Steps to reproduce:

  1. Open a private browsing session
  2. Go to a page that triggers a prompt using Javascript's window.prompt() method, e.g. https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_prompt and click the "Try it" button
  3. Put the cursor in the prompt dialog

Actual results:

Observe the shown on-screen keyboard (Gboard on my device) not being in incognito mode (no 'incognito' icon in the top left corner). Texts entered into the prompt will be added to the suggestions (depending on keyboard settings) and shown in other contexts.

Expected results:

I would expect the keyboard to be opened in incognito mode. This works fine for e.g. HTML inputs on pages in private browsing sessions, but apparently not for prompts.

Hi! Thanks for your report! Unfortunately I was unable to reproduce this issue following your described steps on Firefox Nightly 125 (2024-03-18), and Firefox Release 123.0 using a Samsung A32 with Android 13.

Is it possible for you to provide us more details:

  • the device and Android version you have encountered this issue on
  • the Firefox version
  • a short video with this issue?

Thanks!

Flags: needinfo?(98zo3klq4)

I could reproduce the bug on a Pixel 7, Android 14, Firefox Nightly 127.

Thanks for the bug report!

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(98zo3klq4)
Whiteboard: [fxdroid][group4]
Severity: -- → S3
Assignee: nobody → tthibaud
Status: NEW → ASSIGNED
Pushed by tthibaud@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ea25d02dac47
set private keyboard on Javascript prompts in private browsing r=android-reviewers,boek
Status: ASSIGNED → RESOLVED
Closed: 15 days ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Flags: qe-verify+
Attached image keyboard.JPEG

Verified as fixed on the latest Nightly from 08.05.2024 with Google Pixel 7 PRO (Android 14).

Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: