forked from mirrors/gecko-dev
Bug 1505909 - Make PlacesUIUtils.getViewForNode resilient against dead wrapper nodes. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D33164 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
8e66288636
commit
f891581d0a
1 changed files with 4 additions and 0 deletions
|
|
@ -332,6 +332,10 @@ var PlacesUIUtils = {
|
|||
getViewForNode: function PUIU_getViewForNode(aNode) {
|
||||
let node = aNode;
|
||||
|
||||
if (Cu.isDeadWrapper(node)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (node.localName == "panelview" && node._placesView) {
|
||||
return node._placesView;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue