Permalink
Browse files

Issue #31 - little documentation, extra space nit

  • Loading branch information...
1 parent cc899b5 commit 22afc5af66de728d25ea81f0eb3ebf5198900d52 @xabolcs committed Nov 8, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 extension/chrome/content/suite.js
@@ -102,10 +102,16 @@ getWindowTitleForNavigator: function (aBrowser) {
}
newTitle += modifier;
+ /**
+ * If location bar is hidden and the URL type supports a host,
+ * add the scheme and host to the title to prevent spoofing.
+ * XXX https://bugzilla.mozilla.org/show_bug.cgi?id=22183#c239
+ * (only for schemes that support a host)
+ */
try {
if (docElement.getAttribute("chromehidden").indexOf("location") != -1) {
- var uri = aBrowser.mURIFixup.createExposableURI(
- aBrowser.mCurrentBrowser.currentURI);
+ var uri = aBrowser.mURIFixup.createExposableURI(
+ aBrowser.mCurrentBrowser.currentURI);
if (uri.schemeIs("about"))
newTitle = uri.spec + sep + newTitle;
else if (uri.host)

0 comments on commit 22afc5a

Please sign in to comment.