Bug 841413 - Part 2: Don't call enablePrivilege needlessly in localstorage Private Browsing tests; r=jdm

This commit is contained in:
Ehsan Akhgari 2013-02-23 01:51:06 -05:00
parent c0a5ddb3a5
commit 62bbdc44a6
2 changed files with 0 additions and 5 deletions

View File

@ -16,7 +16,6 @@ prefBranch.setIntPref("browser.startup.page", 0);
prefBranch.setCharPref("browser.startup.homepage_override.mstone", "ignore");
function startTest() {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
mainWindow = window.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsIDocShellTreeItem)

View File

@ -8,8 +8,6 @@
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
Components.utils.import("resource://gre/modules/Services.jsm");
const Ci = Components.interfaces;
@ -50,8 +48,6 @@ function startTest() {
}
function doNextTest(aWindow) {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
info("Running test: " + currentTest);
switch (currentTest) {
// Initialy setup the quota to testing value of 1024B and