Support unknown capability values in the sitePermissions.xul dialog.

RESOLVED FIXED in Firefox 57

Status

()

P3
normal
RESOLVED FIXED
a year ago
10 months ago

People

(Reporter: prathiksha, Assigned: prathiksha)

Tracking

unspecified
Firefox 58
Points:
---

Firefox Tracking Flags

(firefox57 fixed, firefox58 fixed)

Details

MozReview Requests

()

Submitter Diff Changes Open Issues Last Updated
Loading...
Error loading review requests:

Attachments

(1 attachment)

Comment hidden (empty)
(Assignee)

Updated

a year ago
Assignee: nobody → prathikshaprasadsuman
(Assignee)

Updated

a year ago
Status: NEW → ASSIGNED
Priority: -- → P3
Comment hidden (mozreview-request)

Comment 2

11 months ago
mozreview-review
Comment on attachment 8914372 [details]
Bug 1388107 - Support unknown capability values in the sitePermissions.xul dialog.

https://reviewboard.mozilla.org/r/185648/#review191452

Thanks!

::: browser/components/preferences/sitePermissions.js:74
(Diff revision 1)
>        return;
>  
>      let permission = subject.QueryInterface(Components.interfaces.nsIPermission);
>  
> -    // Ignore unrelated permission types.
> -    if (permission.type !== this._type)
> +    // Ignore unrelated permission types and permissions with unknown states.
> +    let states = [SitePermissions.ALLOW, SitePermissions.BLOCK, SitePermissions.PROMPT];

Nit: you could make this a constant
Attachment #8914372 - Flags: review?(jhofmann) → review+
Comment hidden (mozreview-request)
(Assignee)

Updated

11 months ago
Keywords: checkin-needed

Comment 4

11 months ago
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/85888997be88
Support unknown capability values in the sitePermissions.xul dialog. r=johannh
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/85888997be88
Status: ASSIGNED → RESOLVED
Last Resolved: 11 months ago
status-firefox58: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
(Assignee)

Comment 6

11 months ago
Comment on attachment 8914372 [details]
Bug 1388107 - Support unknown capability values in the sitePermissions.xul dialog.

Approval Request Comment
[Feature/Bug causing the regression]: Bug 1373206
[User impact if declined]: chances of site permissions dialog breaking
[Is this code covered by automated tests?]: no
[Has the fix been verified in Nightly?]: no
[Needs manual test from QE? If yes, steps to reproduce]: no
[List of other uplifts needed for the feature/fix]: no
[Is the change risky?]: no
[Why is the change risky/not risky?]: just an edge case fix
[String changes made/needed]: no
Attachment #8914372 - Flags: approval-mozilla-beta?

Updated

10 months ago
status-firefox57: --- → affected

Comment 7

10 months ago
Comment on attachment 8914372 [details]
Bug 1388107 - Support unknown capability values in the sitePermissions.xul dialog.

Photon polish, Beta57+
Attachment #8914372 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment 8

10 months ago
bugherderuplift
https://hg.mozilla.org/releases/mozilla-beta/rev/8eb38d9ed82c
status-firefox57: affected → fixed
You need to log in before you can comment on or make changes to this bug.