Skip to content

Commit

Permalink
Backed out changeset cfe4b1e6be9b (bug 1416343) for ESlint failing in…
Browse files Browse the repository at this point in the history
… modules/test/browser/browser_SitePermissions_tab_urls.js:38:14 r=backout on a CLOSED TREE
  • Loading branch information
elizabal committed Nov 15, 2017
1 parent 60940a2 commit c537e3b
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 30 deletions.
15 changes: 2 additions & 13 deletions browser/modules/test/browser/browser_SitePermissions_tab_urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

Cu.import("resource:///modules/SitePermissions.jsm", this);

function uri(url) {
return Services.io.newURI(url);
}

// This tests the key used to store the URI -> permission map on a tab.
add_task(async function testTemporaryPermissionTabURLs() {

Expand All @@ -22,15 +18,8 @@ add_task(async function testTemporaryPermissionTabURLs() {
// due to the combinatory nature of the test that is hard to fix.
requestLongerTimeout(2);


let same = [ uri("https://example.com"),
uri("https://example.com/sub/path"),
uri("https://example.com:443") ]
let different = [ uri("https://example.com"),
uri("https://name:password@example.com"),
uri("https://test1.example.com"),
uri("http://example.com"),
uri("http://example.org") ]
let same = [ "https://example.com", "https://example.com/sub/path", "https://example.com:443" ].map(Services.io.newURI);
let different = [ "https://example.com", "https://name:password@example.com", "https://test1.example.com", "http://example.com", "http://example.org" ].map(Services.io.newURI);

let id = "microphone";

Expand Down
2 changes: 1 addition & 1 deletion image/nsIIconURI.idl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
* stock images.
*/

[scriptable, builtinclass, uuid(f8fe5ef2-5f2b-43f3-857d-5b64d192c427)]
[scriptable, uuid(f8fe5ef2-5f2b-43f3-857d-5b64d192c427)]
interface nsIMozIconURI : nsIURI
{
/// iconFile: the file URL contained within this moz-icon url, or null.
Expand Down
2 changes: 1 addition & 1 deletion modules/libjar/nsIJARURI.idl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The nsIURL methods operate on the <jar-entry> part of the spec.
*/
[scriptable, builtinclass, uuid(646a508c-f786-4e14-be6d-8dda2a633c60)]
[scriptable, uuid(646a508c-f786-4e14-be6d-8dda2a633c60)]
interface nsIJARURI : nsIURL {

/**
Expand Down
2 changes: 1 addition & 1 deletion netwerk/base/nsIFileURL.idl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface nsIFile;
* an URL. The URL scheme need not be file:, since other local protocols may
* map URLs to files (e.g., resource:).
*/
[scriptable, builtinclass, uuid(e91ac988-27c2-448b-b1a1-3822e1ef1987)]
[scriptable, uuid(e91ac988-27c2-448b-b1a1-3822e1ef1987)]
interface nsIFileURL : nsIURL
{
/**
Expand Down
2 changes: 1 addition & 1 deletion netwerk/base/nsINestedURI.idl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface nsIURI;
* should implement nsINestedURI and return the http://example.com URI as its
* inner URI.
*/
[scriptable, builtinclass, uuid(6de2c874-796c-46bf-b57f-0d7bd7d6cab0)]
[scriptable, uuid(6de2c874-796c-46bf-b57f-0d7bd7d6cab0)]
interface nsINestedURI : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion netwerk/base/nsIStandardURL.idl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface nsIURI;
* It supports initialization from a relative path and provides
* some customization on how URLs are normalized.
*/
[scriptable, builtinclass, uuid(babd6cca-ebe7-4329-967c-d6b9e33caa81)]
[scriptable, uuid(babd6cca-ebe7-4329-967c-d6b9e33caa81)]
interface nsIStandardURL : nsIMutable
{
/**
Expand Down
2 changes: 1 addition & 1 deletion netwerk/base/nsIURI.idl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Encoding;
* we will need to add additional checks there for all intermediate IIDs, until
* ContentPrincipal is fixed to serialize its URIs as nsISupports (bug 662693).
*/
[scriptable, builtinclass, uuid(92073a54-6d78-4f30-913a-b871813208c6)]
[scriptable, uuid(92073a54-6d78-4f30-913a-b871813208c6)]
interface nsIURI : nsISupports
{
/************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion netwerk/base/nsIURIWithBlobImpl.idl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface nsIURI;
* nsIURIWithBlobImpl is implemented by URIs which are associated with a
* specific BlobImpl.
*/
[builtinclass, builtinclass, uuid(331b41d3-3506-4ab5-bef9-aab41e3202a3)]
[builtinclass, uuid(331b41d3-3506-4ab5-bef9-aab41e3202a3)]
interface nsIURIWithBlobImpl : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion netwerk/base/nsIURIWithPrincipal.idl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface nsIURI;
* nsIURIWithPrincipal is implemented by URIs which are associated with a
* specific principal.
*/
[scriptable, builtinclass, uuid(626a5c0c-bfd8-4531-8b47-a8451b0daa33)]
[scriptable, uuid(626a5c0c-bfd8-4531-8b47-a8451b0daa33)]
interface nsIURIWithPrincipal : nsISupports
{
/**
Expand Down
2 changes: 1 addition & 1 deletion netwerk/base/nsIURL.idl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* |
* filePath
*/
[scriptable, builtinclass, uuid(86adcd89-0b70-47a2-b0fe-5bb2c5f37e31)]
[scriptable, uuid(86adcd89-0b70-47a2-b0fe-5bb2c5f37e31)]
interface nsIURL : nsIURI
{
/*************************************************************************
Expand Down
7 changes: 5 additions & 2 deletions netwerk/test/unit/test_bug365133.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const URL = "ftp://localhost/bug365133/";
Cu.import("resource://gre/modules/NetUtil.jsm");

const tests = [
[ /* Unix style listing, space at the end of filename */
Expand Down Expand Up @@ -76,7 +75,11 @@ function storeData() {
createInstance(Ci.nsIStringInputStream);
stream.data = tests[0][0];

var url = NetUtil.newURI(URL);
var url = {
password: "",
asciiSpec: URL,
QueryInterface: XPCOMUtils.generateQI([Ci.nsIURI])
};

var channel = {
URI: url,
Expand Down
7 changes: 5 additions & 2 deletions netwerk/test/unit/test_bug484684.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const URL = "ftp://localhost/bug464884/";
Cu.import("resource://gre/modules/NetUtil.jsm");

const tests = [
// standard ls unix format
Expand Down Expand Up @@ -80,7 +79,11 @@ function storeData(status, entry) {
createInstance(Ci.nsIStringInputStream);
stream.data = tests[0][0];

var url = NetUtil.newURI(URL);
var url = {
password: "",
asciiSpec: URL,
QueryInterface: XPCOMUtils.generateQI([Ci.nsIURI])
};

var channel = {
URI: url,
Expand Down
7 changes: 5 additions & 2 deletions netwerk/test/unit/test_bug515583.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const URL = "ftp://localhost/bug515583/";
Cu.import("resource://gre/modules/NetUtil.jsm");

const tests = [
["[RWCEM1 4 1-MAR-1993 18:09:01.12\r\n" +
Expand Down Expand Up @@ -38,7 +37,11 @@ function storeData(status, entry) {
createInstance(Ci.nsIStringInputStream);
stream.data = tests[0][0];

var url = NetUtil.newURI(URL);
var url = {
password: "",
asciiSpec: URL,
QueryInterface: XPCOMUtils.generateQI([Ci.nsIURI])
};

var channel = {
URI: url,
Expand Down
7 changes: 5 additions & 2 deletions netwerk/test/unit/test_bug543805.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const URL = "ftp://localhost/bug543805/";
Cu.import("resource://gre/modules/NetUtil.jsm");

var dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
var year = new Date().getFullYear().toString();
Expand Down Expand Up @@ -58,7 +57,11 @@ function storeData(status, entry) {
createInstance(Ci.nsIStringInputStream);
stream.data = tests[0][0];

var url = NetUtil.newURI(URL);
var url = {
password: "",
asciiSpec: URL,
QueryInterface: XPCOMUtils.generateQI([Ci.nsIURI])
};

var channel = {
URI: url,
Expand Down

0 comments on commit c537e3b

Please sign in to comment.