Add a PermissionTestUtils module
Categories
(Core :: Permission Manager, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: johannh, Assigned: emz)
References
Details
Attachments
(3 files, 1 obsolete file)
One major obstacle to dropping the nsIURI interfaces of nsIPermissionManager and SitePermissions.jsm is that a ton of tests are currently using URIs and it seems impractical to switch them all to build a principal every time (and also annoying to write new tests like this).
How about we make a PermissionTestUtils module that helps with this task by providing an interface that accepts an origin string or an nsIURI and automagically handles the conversion to principal and then calls Services.perms.addFromPrincipal
etc.
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D41028
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D41028
Updated•5 years ago
|
Comment 7•5 years ago
•
|
||
Backed out 3 changesets (bug 1531303) for causing close_window/close.py and browser_permissions_dialog.js to perma fail
push that caused the backout: https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception&classifiedState=unclassified&revision=0c75c3bac00be2683556c9dc5cde2e6426335c48
backout: https://hg.mozilla.org/integration/autoland/rev/b03aef80e76a8feb6ab77cd89a6b8f901459e563
Updated•5 years ago
|
Comment 8•5 years ago
|
||
The wd failures are not from this push:
https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception&classifiedState=unclassified&fromchange=f70cd65cd5a913c34e1799c1b6fc931aefd7e6e3&selectedJob=261548340&searchStr=linux%2Cx64%2Cdebug%2Cweb%2Cplatform%2Ctests%2Ctest-linux64%2Fdebug-web-platform-tests-wdspec-e10s-1%2Cw%28wd1%29
so commit should be:
Backed out 3 changesets (bug 1531303) for causing browser_permissions_dialog.js to perma fail
Assignee | ||
Updated•5 years ago
|
Comment 10•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e6b0f70a739a
https://hg.mozilla.org/mozilla-central/rev/31b2a7bf2932
https://hg.mozilla.org/mozilla-central/rev/20ecb90e7155
Comment 11•5 years ago
|
||
Fantastic work, thanks a lot for doing this, Paul!
Description
•