Bug 312308 - tabbrowser: closing tab throws exception when no "autocompletepopup" attribute is set, patch by Garrett Davis <gdavis@nsisoftware.com> r=me

This commit is contained in:
bsmedberg@covad.net 2007-08-21 22:00:48 -07:00
parent ac0dc76ea6
commit 17e843b20a

View File

@ -1066,7 +1066,8 @@
b.setAttribute("message", "true");
b.setAttribute("contextmenu", this.getAttribute("contentcontextmenu"));
b.setAttribute("tooltip", this.getAttribute("contenttooltip"));
b.setAttribute("autocompletepopup", this.getAttribute("autocompletepopup"));
if (this.hasAttribute("autocompletepopup"))
b.setAttribute("autocompletepopup", this.getAttribute("autocompletepopup"));
// Add the Message and the Browser to the box
var vbox = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",