43 var
ios =
Cc[
"@mozilla.org/network/io-service;1"].
45 var channel = ios.newChannel(
"about:privatebrowsing",
null,
null);
46 var input = channel.open();
47 var sinput =
Cc[
"@mozilla.org/scriptableinputstream;1"].
51 if (!sinput.read(1024).length)
56 }
catch (ex
if (
"result" in ex && ex.result ==
Cr.NS_ERROR_MALFORMED_URI)) {
71 pb.privateBrowsingEnabled =
true;
77 pb.privateBrowsingEnabled =
false;
function run_test_on_service()
getService(Ci.sbIFaceplateManager)
function run_test_on_all_services()
var PRIVATEBROWSING_CONTRACT_ID
function is_about_privatebrowsing_available()