Closed
Bug 1211591
Opened 9 years ago
Closed 9 years ago
nsPermissionsManager.cpp references non-existent appId column in moz_perms table
Categories
(Core :: Permission Manager, defect)
Core
Permission Manager
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: bkelly, Assigned: nika)
References
Details
Attachments
(2 files, 1 obsolete file)
See this: http://mxr.mozilla.org/mozilla-central/source/extensions/cookie/nsPermissionManager.cpp#2327 Which was introduced in this changeset: http://hg.mozilla.org/mozilla-central/rev/d4cc20fc3973
Assignee | ||
Comment 1•9 years ago
|
||
This initial query to clear the database was initially removed because of the removal of the appId column, and replaced with the following logic which parses the origin strings to obtain the appId property, and then removes those entries using `AddInternal`. Unfortunately, during a rebase, it appears as though the code crept back into the codebase. I'm not sure why this codepath wasn't ever tested before bkelly noticed it, but we should probably add a test of some form which actually runs the RemovePermissionsForApp codepath, to ensure that it actually works. try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=d063a0c5c2c9 (I think that this patch should work correctly, and fix the problem, but I would also want to add another test, to make sure that this code path isn't neglected in the future)
Attachment #8669853 -
Flags: review?(bkelly)
Assignee | ||
Updated•9 years ago
|
Attachment #8669853 -
Flags: review?(bkelly) → review?(josh)
Comment 2•9 years ago
|
||
Comment on attachment 8669853 [details] [diff] [review] Remove incorrect sql statement from nsPermissionManager::RemovePermissionsForApp Review of attachment 8669853 [details] [diff] [review]: ----------------------------------------------------------------- Please ensure this is tested before merging :)
Attachment #8669853 -
Flags: review?(josh) → review+
Assignee | ||
Comment 3•9 years ago
|
||
Re-uploaded with correct r=jdm - because why not
Attachment #8669853 -
Attachment is obsolete: true
Assignee | ||
Comment 4•9 years ago
|
||
Here are some tests for RemovePermissionForApp.
Attachment #8670321 -
Flags: review?(josh)
Updated•9 years ago
|
Attachment #8670321 -
Flags: review?(josh) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/0b75225d75f7 https://hg.mozilla.org/integration/mozilla-inbound/rev/becb0ef36136
https://hg.mozilla.org/mozilla-central/rev/0b75225d75f7 https://hg.mozilla.org/mozilla-central/rev/becb0ef36136
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•