зеркало из https://github.com/mozilla/gecko-dev.git
7f748ac663
Calls to targetFront.isTopLevel can happen after a given target is destroyed, and in such case `getTrait` was throwing as the `client` property of the target is nullified. To fix this, we're directly checking if the targetForm has a `isTopLevelTarget`, and if not, we default to the property we set in `setTargetType`. Another issue was caused by the `_url` property, used in the `url` getter, being nullified when in TargetMixin#destroy, which was making the WorkerDescriptor#name to throw. We now check that the url isn't null before trying to use it. Differential Revision: https://phabricator.services.mozilla.com/D117011 |
||
---|---|---|
.. | ||
client | ||
docs | ||
platform | ||
server | ||
shared | ||
startup | ||
.eslintrc.js | ||
.eslintrc.xpcshell.js | ||
CODE_OF_CONDUCT.md | ||
moz.build | ||
templates.mozbuild | ||
tsconfig.json |