mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 11:38:16 +00:00
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:
parent
69e9dc7e4c
commit
b26a3c2f1c
@ -366,10 +366,10 @@
|
||||
getService(Components.interfaces.nsIFormFillController);
|
||||
|
||||
var popup = document.getElementById(this.getAttribute("autocompletepopup"));
|
||||
if (popup)
|
||||
if (popup) {
|
||||
controller.attachToBrowser(this.docShell, popup.QueryInterface(Components.interfaces.nsIAutoCompletePopup));
|
||||
|
||||
this.mFormFillAttached = true;
|
||||
this.mFormFillAttached = true;
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</body>
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user