Closed Bug 1852838 Opened 2 years ago Closed 2 years ago

Make use of SitePermissions module in Data Manager

Categories

(SeaMonkey :: Passwords & Permissions, task)

Tracking

(seamonkey2.53+ fixed)

RESOLVED FIXED
Tracking Status
seamonkey2.53 + fixed

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

Details

(Whiteboard: SM2.53.18)

Attachments

(1 file)

At the moment there is some code and entity duplication between the permissions part of Data Manager and the SitePermissions module, so look at reducing that.

[Approval Request Comment]
Regression caused by (bug #): n/a
User impact if declined: none
Testing completed (on m-c, etc.): 2.53.18
Risk to taking this patch (and alternatives if risky): low
String changes made by this patch: Removal of 15 and addition of 7 strings

Removed duplication in getting of permission labels and getting the default permission for a type.

Attachment #9352797 - Flags: review?(frgrahl)
Attachment #9352797 - Flags: approval-comm-release?

One thing that might need changing is the string for:
permission.object.label

At the moment its is Run Plugins and I'm fairly sure it's not anything to do with plugins in the expected sense.

SitePermissions seems to not know about:
permission.allowXULXBL.label = Use XUL/XBL Markup
permission.login-saving.label = Save Passwords
permission.object.label = Run Plugins
permission.offline-app.label = Offline Web Applications
permission.script.label = Run Scripts
permission.stylesheet.label = Load Stylesheets
permission.trackingprotection.label = Tracking Activity

esr60 version: https://searchfox.org/mozilla-esr60/source/browser/modules/SitePermissions.jsm#578

It would return a default permission unknown at least. Did you test one of these?

Flags: needinfo?(iannbugzilla)

(In reply to Frank-Rainer Grahl (:frg) from comment #3)

SitePermissions seems to not know about:
permission.allowXULXBL.label = Use XUL/XBL Markup
permission.login-saving.label = Save Passwords
permission.object.label = Run Plugins
permission.offline-app.label = Offline Web Applications
permission.script.label = Run Scripts
permission.stylesheet.label = Load Stylesheets
permission.trackingprotection.label = Tracking Activity

esr60 version: https://searchfox.org/mozilla-esr60/source/browser/modules/SitePermissions.jsm#578

It would return a default permission unknown at least. Did you test one of these?

Yes, I tested adding a permission in Data Manager both with and without the patch and compared behaviour to check nothing had changed.

Flags: needinfo?(iannbugzilla)

Comment on attachment 9352797 [details] [diff] [review]
1852838-dataman-perms-25318.patch

LGTM

Attachment #9352797 - Flags: review?(frgrahl)
Attachment #9352797 - Flags: review+
Attachment #9352797 - Flags: approval-comm-release?
Attachment #9352797 - Flags: approval-comm-release+

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/dfb79d1a9e8d
Make use of SitePermissions module in Data Manager. r=frg

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: