Open Bug 1706532 Opened 3 years ago Updated 2 years ago

Permissions prompt has extra focus-able button?

Categories

(Firefox :: Site Permissions, defect, P2)

defect

Tracking

()

People

(Reporter: j.heavener, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [foxfooding][internal] [proton-foxfooding] [proton-doorhangers] [priority:2b])

Attachments

(1 file)

I'm going to have a hard time describing this. Best to refer to the attached video.

steps to reproduce/what did you do?

  • Navigate to a web page that attempts to open a pop-up window
  • Observe the new permissions icon/prompt in the address bar
  • Using the keyboard, tab around the address bar icons

expected behavior/ what did you think will happen?

  • The dual "slider + blocked window" icon button is wholly focus-able
  • Hitting tab again would take me to the address field

actual behavior/ what actually happened?

  • The dual "slider + blocked window" icon button is wholly focus-able, but...
  • Hitting tab again focuses again on just the "blocked window" icon, as if it were an additional nested button

additional notes

If you focus on the two-icon button, hit enter so the prompt is visible, and then hit escape the prompt disappears. If you do this while focused just on the "blocked window" icon, hitting escape does not make the prompt disappear.

Whiteboard: [foxfooding][internal] [proton-foxfooding]
Priority: -- → P2
Whiteboard: [foxfooding][internal] [proton-foxfooding] → [foxfooding][internal] [proton-foxfooding] [proton-doorhangers] [priority:2b]
Component: Foxfooding → General

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(dtownsend)
Severity: -- → S4
Flags: needinfo?(dtownsend)

The Bugbug bot thinks this bug should belong to the 'Firefox::Address Bar' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: General → Address Bar
Component: Address Bar → Site Permissions

I'm working on a custom Keyboard that will need to access the micrphone for speech recognition. The system that actually uses speech recognition is already in place, but I wanted to prompt the user to give permission only at the moment they press the microphone button. The issue is that the code I'm used to use

if (ContextCompat.checkSelfPermission(...) == PackageManager.PERMISSION_DENIED) {
ActivityCompat.requestPermissions(activity, permissions, 0);
}
requires an activity, which I cannot access from an Input Method Service. https://www.pakistangk.com/ I actually managed to make it work by creating a new activity and piping all the permissions requests there, but I'd like it to not hide the Keyboard when doing so. Here's how I start the new Activity:

Intent intent = new Intent(this, PermissionsActivity.class); //this being the Input Method Service
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
intent.putExtra(PermissionsActivity.PERMISSIONS_EXTRA, permissions array);

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

Attachment

General

Creator:
Created:
Updated:
Size: