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)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: reuben, Assigned: reuben)
References
Details
(Keywords: regression)
Attachments
(2 files)
1.15 KB,
patch
|
Details | Diff | Splinter Review | |
3.40 KB,
patch
|
Details | Diff | Splinter Review |
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)
Updated•11 years ago
|
blocking-b2g: --- → 1.3?
Keywords: regression
Comment 1•11 years ago
|
||
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)
Comment 2•11 years ago
|
||
Shouldn't we wait for bug 853356 to be fix properly?
Assignee | ||
Comment 3•11 years ago
|
||
Yea, now that bug 853356 was backed out this should probably be fixed there.
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Updated•11 years ago
|
Attachment #827698 -
Flags: review?(fabrice)
Updated•11 years ago
|
Attachment #827760 -
Flags: feedback?(fabrice)
Assignee | ||
Updated•11 years ago
|
Attachment #827760 -
Flags: feedback?(reuben.bmo)
Updated•11 years ago
|
blocking-b2g: 1.3? → ---
Comment 4•11 years ago
|
||
Bug 951997, testcase for this bug.
You need to log in
before you can comment on or make changes to this bug.
Description
•