Closed Bug 658425 Opened 14 years ago Closed 14 years ago

Move special-casing for passwords to the Site object

Categories

(Firefox :: Settings UI, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 7

People

(Reporter: Margaret, Assigned: Gavin)

References

Details

Attachments

(1 file)

Password permissions are handled by the login manager, while other permissions are handled by the permission manager. Right now we special-case passwords in updatePermissions and onPermissionCommand in the AboutPermissions object, but it might be cleaner to handle it directly in the Site object.
Attached patch patchSplinter Review
untested, for the moment!
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #534462 - Flags: feedback?
Comment on attachment 534462 [details] [diff] [review] patch This looks good to me. I tested it manually, and it works as expected. The tests in brower_permissions.js also pass.
Attachment #534462 - Flags: feedback? → feedback+
Attachment #534462 - Flags: review+
Flags: in-testsuite-
Target Milestone: --- → Firefox 7
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Jorge: why did you add dev-doc-needed? This is an about:permissions implementation detail that shouldn't really matter to anyone else...
Shouldn't the Site object be documented somewhere so that extensions can use it?
No - it's not relevant to anything outside of about:permissions code (it isn't globally usable).
Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: