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)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: u279076, Assigned: u279076)
References
Details
(Whiteboard: [lib])
Attachments
(1 file, 1 obsolete file)
1.34 KB,
patch
|
u279076
:
review+
|
Details | Diff | Splinter Review |
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.
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 4•14 years ago
|
||
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.
Updated•14 years ago
|
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+
Comment on attachment 535654 [details] [diff] [review]
Patch v1.1 [checked-in]
Landed on default:
http://hg.mozilla.org/qa/mozmill-tests/rev/eb8aa5555a68
Attachment #535654 -
Attachment description: Patch v1.1 → Patch v1.1 [checked-in]
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Component: Mozmill Tests → Mozmill Shared Modules
Updated•13 years ago
|
Component: Mozmill Shared Modules → Mozmill Tests
Updated•13 years ago
|
Whiteboard: [shared module] → [lib]
Updated•6 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•