diff --git a/toolkit/content/widgets/browser.xml b/toolkit/content/widgets/browser.xml index ceaa3e1a5fa3..cce5bf0cf96b 100644 --- a/toolkit/content/widgets/browser.xml +++ b/toolkit/content/widgets/browser.xml @@ -68,14 +68,14 @@ @@ -179,7 +179,7 @@ aURI = "about:blank"; if (aCharset) { - try { + try { this.docShell.parentCharset = this.mAtomService.getAtom(aCharset); } catch (e) { @@ -252,7 +252,7 @@ readonly="true"/> null @@ -404,14 +404,14 @@ return null; this._fastFind = Components.classes["@mozilla.org/typeaheadfind;1"] - .createInstance(Components.interfaces.nsITypeAheadFind); + .createInstance(Components.interfaces.nsITypeAheadFind); this._fastFind.init(this.docShell); } return this._fastFind; ]]> - + @@ -458,8 +458,7 @@ Components.classes['@mozilla.org/preferences-service;1'] - .getService(Components.interfaces.nsIPrefService) - .getBranch(null); + .getService(Components.interfaces.nsIPrefBranch); @@ -527,13 +526,13 @@ var controller = Components.classes["@mozilla.org/satchel/form-fill-controller;1"]. getService(Components.interfaces.nsIFormFillController); controller.detachFromBrowser(this.docShell); - + this.mFormFillAttached = false; } ]]> - + @@ -598,7 +597,6 @@ if (!tabBrowser || tabBrowser.mCurrentBrowser == this) this.fastFind.setDocShell(this.docShell); - if (this._scrollable) { var doc = this._scrollable.ownerDocument || this._scrollable.document; @@ -639,7 +637,7 @@ this.pageReport.push(obj); this.pageReport.reported = false; this.updatePageReport(); - ]]> + ]]> @@ -657,7 +655,7 @@ securityUI.init(this.contentWindow); } } - + return this.docShell.securityUI; ]]> @@ -722,7 +720,7 @@ false - + false @@ -746,7 +744,7 @@ .getService(Components.interfaces.nsIObserverService); os.addObserver(this, "browser:purge-session-history", false); // wire up session history - this.webNavigation.sessionHistory = + this.webNavigation.sessionHistory = Components.classes["@mozilla.org/browser/shistory;1"] .createInstance(Components.interfaces.nsISHistory); // enable global history @@ -769,7 +767,7 @@ this.addEventListener("DOMPopupBlocked", this.onPopupBlocked, true); ]]> - + - + @@ -825,7 +823,7 @@ 0) this.sessionHistory.PurgeHistory(purge); ]]> @@ -881,7 +879,7 @@ ]]> - + @@ -1127,7 +1125,7 @@ var x = this._screenX - this._startX; var y = this._screenY - this._startY; - + if ((x > this._AUTOSCROLL_SNAP || x < -this._AUTOSCROLL_SNAP) || (y > this._AUTOSCROLL_SNAP || y < -this._AUTOSCROLL_SNAP)) this._ignoreMouseEvents = false; @@ -1232,10 +1230,11 @@ } if (warn && !browseWithCaretOn) { var checkValue = {value:false}; - promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService); + var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] + .getService(Components.interfaces.nsIPromptService); - var buttonPressed = promptService.confirmEx(window, - this.mStrBundle.GetStringFromName('browsewithcaret.checkWindowTitle'), + var buttonPressed = promptService.confirmEx(window, + this.mStrBundle.GetStringFromName('browsewithcaret.checkWindowTitle'), this.mStrBundle.GetStringFromName('browsewithcaret.checkLabel'), promptService.STD_YES_NO_BUTTONS, null, null, null, this.mStrBundle.GetStringFromName('browsewithcaret.checkMsg'),