Closed Bug 660079 Opened 14 years ago Closed 14 years ago

Add helper method to reset permissions in Utils.js

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: u279076, Assigned: u279076)

References

Details

(Whiteboard: [lib])

Attachments

(1 file, 1 obsolete file)

This is a dependency for the Safe Browsing tests. Basically, domains are whitelisted when the Ignore Warning button is selected (as designed for Firefox 6 onward). This breaks the tests which assume the domain to always be blacklisted. The interim solution, until an API rewrite is done, is to create a helper method which will reset the permissions and keep the test domain blacklisted.
Assignee: nobody → anthony.s.hughes
Status: NEW → ASSIGNED
Attached patch Patch v1.0 (obsolete) — Splinter Review
Patch to add nsIPermissionManager::remove(host,type) helper function to the Utils API.
Attachment #535496 - Flags: review?(gmealer)
(In reply to comment #1) > Created attachment 535496 [details] [diff] [review] [review] > Patch v1.0 > > Patch to add nsIPermissionManager::remove(host,type) helper function to the > Utils API. NOTE: I've tested this with SafeBrowsingWarningPages and it fixes the failure.
Comment on attachment 535496 [details] [diff] [review] Patch v1.0 Looks fine, r+. Since I'm not sure what branch(es) this applies to, please go ahead and land.
Attachment #535496 - Flags: review?(gmealer) → review+
Comment on attachment 535496 [details] [diff] [review] Patch v1.0 >+ * @param {AUTF8String} aHost >+ * The host whose permission will be removed >+ * @param {string} aType >+ * The type of permission to be removed Simply use 'String' in both cases. From the JS side we do not differentiate between different string types.
Whiteboard: [shared module]
A Pivotal Tracker story has been created for this Bug: https://www.pivotaltracker.com/story/show/13898737
Patch with Henrik's nit addressed. This patch will be checked in shortly. Again, this only affects Firefox 6.0+ branches.
Attachment #535496 - Attachment is obsolete: true
Attachment #535654 - Flags: review+
Attachment #535654 - Attachment description: Patch v1.1 → Patch v1.1 [checked-in]
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Component: Mozmill Tests → Mozmill Shared Modules
Component: Mozmill Shared Modules → Mozmill Tests
Whiteboard: [shared module] → [lib]
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: