Bug 850730 - Do not add browser handlers to about:blank. r=gavin

This commit is contained in:
Frank Yan 2013-03-13 12:15:20 -07:00
parent de1c68a4b9
commit 02ebf7fa91

View File

@ -4737,6 +4737,7 @@ var TabsProgressListener = {
if (aStateFlags & Ci.nsIWebProgressListener.STATE_STOP &&
Components.isSuccessCode(aStatus) &&
doc.documentURI.startsWith("about:") &&
!doc.documentURI.toLowerCase().startsWith("about:blank") &&
!doc.documentElement.hasAttribute("hasBrowserHandlers")) {
// STATE_STOP may be received twice for documents, thus store an
// attribute to ensure handling it just once.