зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1580866 - PermissionTestUtils should throw for undefined r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D66413 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a4252890b4
Коммит
679f1a2799
|
@ -29,7 +29,7 @@ function convertToPrincipal(subject) {
|
|||
if (typeof subject === "string") {
|
||||
return secMan.createContentPrincipalFromOrigin(subject);
|
||||
}
|
||||
if (subject == null || subject instanceof Ci.nsIURI) {
|
||||
if (subject === null || subject instanceof Ci.nsIURI) {
|
||||
return secMan.createContentPrincipal(subject, {});
|
||||
}
|
||||
throw new Error(
|
||||
|
|
Загрузка…
Ссылка в новой задаче