Closed Bug 935291 Opened 11 years ago Closed 11 years ago

Request types that prompt when the saved permission is UNKNOWN do not work.

Categories

(Firefox OS Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: reuben, Assigned: reuben)

References

Details

(Keywords: regression)

Attachments

(2 files)

Looks like bug 853356 regressed this.

STR: open https://people.mozilla.org/~rmorais/na.html in the Browser app. No prompt is shown.

What happens is that handleExistingPermission() checks if the request is DENY or UNKNOWN and it's *not* a case that should prompt for unknown, in order to cancel the request right away. It doesn't do anything when the request *is* a case that should prompt for unknown, leaving the request type untouched, and then back in prompt() we filter away requests that have type != PROMPT.
Attachment #827698 - Flags: review?(fabrice)
blocking-b2g: --- → 1.3?
Keywords: regression
I also found the same problem while I writing patch for bug 898949. Here is my discovery and proposal:
1. Browser app will return UNKNOWN for these permission, we can simply transfer them into PROMPT before doing any examination.
2. For aggregated permission such as video/audio capturing, the deny field is not correctly set for every permission request. Therefore, the second permission request will be filter out by http://mxr.mozilla.org/mozilla-central/source/b2g/components/ContentPermissionPrompt.js#249 . We need to ensure every permission request is examined in handledByApp().
Attachment #827760 - Flags: feedback?(reuben.bmo)
Attachment #827760 - Flags: feedback?(fabrice)
Shouldn't we wait for bug 853356 to be fix properly?
Yea, now that bug 853356 was backed out this should probably be fixed there.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Attachment #827698 - Flags: review?(fabrice)
Attachment #827760 - Flags: feedback?(fabrice)
Attachment #827760 - Flags: feedback?(reuben.bmo)
blocking-b2g: 1.3? → ---
Bug 951997, testcase for this bug.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: