1
0
Fork 0
firefox/netwerk/test/browser/browser_bug1535877.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

17 lines
465 B
JavaScript

"use strict";
add_task(_ => {
// Check that create instance and the service getter all return the same object.
let etld = Cc["@mozilla.org/network/effective-tld-service;1"].createInstance(
Ci.nsIEffectiveTLDService
);
Assert.equal(etld, Services.eTLD);
// eslint-disable-next-line mozilla/use-services
let etld2 = Cc["@mozilla.org/network/effective-tld-service;1"].getService(
Ci.nsIEffectiveTLDService
);
Assert.equal(etld, etld2);
});