author | Kris Maglione <maglione.k@gmail.com> |
Wed, 14 Aug 2019 13:12:43 -0700 | |
changeset 488080 | 6be9318b094dccdad2bf3c903b8e2c583ed26c78 |
parent 488079 | 6692575191f32991dd8ceb2b108dd2adaba576f0 |
child 488081 | 504f777152d8c38d2ac11577da8b1cf84fd8524d |
push id | 36435 |
push user | cbrindusan@mozilla.com |
push date | Thu, 15 Aug 2019 09:46:49 +0000 |
treeherder | mozilla-central@0db07ff50ab5 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | eslint-fix |
bugs | 1572903 |
milestone | 70.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/testing/specialpowers/content/WrapPrivileged.jsm +++ b/testing/specialpowers/content/WrapPrivileged.jsm @@ -35,17 +35,19 @@ function isWrappable(x) { if (typeof x === "object") { return x !== null; } return typeof x === "function"; } function isWrapper(x) { try { - return isWrappable(x) && typeof x.SpecialPowers_wrappedObject !== "undefined"; + return ( + isWrappable(x) && typeof x.SpecialPowers_wrappedObject !== "undefined" + ); } catch (e) { // If `x` is a remote object proxy, trying to access an unexpected property // on it will throw a security error, even though we're chrome privileged. // However, remote proxies are not SpecialPowers wrappers, so: return false; } }