зеркало из https://github.com/mozilla/pjs.git
Bug 764003 - Remove enablePrivilege calls from settings and contacts API tests. r=bent
This commit is contained in:
Родитель
ff9787a741
Коммит
dafa1cd8f3
|
@ -19,14 +19,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id={674720}
|
|||
<pre id="test">
|
||||
<script class="testbody" type="text/javascript">
|
||||
|
||||
"use strict"
|
||||
"use strict";
|
||||
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
Components.classes["@mozilla.org/permissionmanager;1"]
|
||||
.getService(Components.interfaces.nsIPermissionManager)
|
||||
.add(SpecialPowers.getDocumentURIObject(window.document),
|
||||
"webcontacts-manage",
|
||||
Components.interfaces.nsIPermissionManager.ALLOW_ACTION);
|
||||
SpecialPowers.addPermission("webcontacts-manage", true, document);
|
||||
|
||||
// For Sorting
|
||||
var c1 = {
|
||||
|
@ -526,12 +521,6 @@ var steps = [
|
|||
req.onsuccess = onUnwantedSuccess;
|
||||
req.onerror = function() { ok(true, "Successfully declined updating old contact!"); next(); };
|
||||
},
|
||||
function() {
|
||||
ok(true, "Saving old contact, should abort!");
|
||||
req = mozContacts.save(findResult1)
|
||||
req.onsuccess = onUnwantedSuccess;
|
||||
req.onerror = function() { ok(true, "Successfully declined updating old contact!"); next(); };
|
||||
},
|
||||
function () {
|
||||
ok(true, "Retrieving a specific contact by ID");
|
||||
var options = {filterBy: ["id"],
|
||||
|
|
|
@ -19,19 +19,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id={678695}
|
|||
<pre id="test">
|
||||
<script class="testbody" type="text/javascript">
|
||||
|
||||
"use strict"
|
||||
"use strict";
|
||||
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
Components.classes["@mozilla.org/permissionmanager;1"]
|
||||
.getService(Components.interfaces.nsIPermissionManager)
|
||||
.add(SpecialPowers.getDocumentURIObject(window.document),
|
||||
"websettings-read",
|
||||
Components.interfaces.nsIPermissionManager.ALLOW_ACTION);
|
||||
Components.classes["@mozilla.org/permissionmanager;1"]
|
||||
.getService(Components.interfaces.nsIPermissionManager)
|
||||
.add(SpecialPowers.getDocumentURIObject(window.document),
|
||||
"websettings-readwrite",
|
||||
Components.interfaces.nsIPermissionManager.ALLOW_ACTION);
|
||||
SpecialPowers.addPermission("websettings-read", true, document);
|
||||
SpecialPowers.addPermission("websettings-readwrite", true, document);
|
||||
|
||||
function onUnwantedSuccess() {
|
||||
ok(false, "onUnwantedSuccess: shouldn't get here");
|
||||
|
|
Загрузка…
Ссылка в новой задаче