Closed Bug 1794711 Opened 2 years ago Closed 2 years ago

Pending Intent requires FLAG_IMMUTABLE or FLAG_MUTABLE

Categories

(GeckoView :: General, defect, P2)

All
Android
defect

Tracking

(firefox107 wontfix, firefox108 wontfix, firefox109 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
firefox107 --- wontfix
firefox108 --- wontfix
firefox109 --- fixed

People

(Reporter: dbaker, Assigned: dbaker)

Details

(Keywords: crash)

Attachments

(2 files)

PendigingIntent needs to have a immutable or mutable flag set.

STR:

  • Build and run geckoview_example
  • Navigate to a site that will ask for camera/microphone permissions.
  • Click to allow

Expected Results:

  • App will function

Actual Results:

  • Crash is seen using geckoview_example

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)

Dan, can you reproduce this crash in Android Firefox or Focus? What site did you test?

I don't have the geckoview_example app on my device. I was not able to reproduce the crash in Firefox when testing the camera/microphone permissions on https://permission.site/, so this bug might be specific to geckoview_example.

Severity: -- → S3
Flags: needinfo?(cpeterson)
Keywords: crash
Summary: Pending Intenet requires FLAG_IMMUTABLE or FLAG_MUTABLE → Pending Intent requires FLAG_IMMUTABLE or FLAG_MUTABLE

Chris, this is specific I believe to the geckoview_example project the site you listed crashed for me when requesting camera permissions. If you also see the link I posted https://searchfox.org/mozilla-central/rev/f118dae98073bc17efb8604a32abfcb7b4e05880/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java#2390 you can see that the PendingIntent in the example project is not passing a flag as is required with Android 12.

Assignee: nobody → dbaker
Status: NEW → ASSIGNED
Attachment #9305905 - Attachment is obsolete: true
Attachment #9305908 - Attachment description: Bug 1794711 - Fixed lint error. → Bug 1794711 - Adding missing PendingIntent flag required with Android 12.

(In reply to Dan Baker[:dbaker] from comment #3)

Chris, this is specific I believe to the geckoview_example project

In that case, we won't need to uplift the fix to Beta. Setting status-firefox108=wontfix.

Priority: -- → P2
Attachment #9305905 - Attachment is obsolete: false
Pushed by dbaker@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6afebd3d000e Adding flag required with Android 12. https://hg.mozilla.org/integration/autoland/rev/06f8b1b11f82 Adding missing PendingIntent flag required with Android 12. r=geckoview-reviewers,owlish
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: