Skip to content

Commit

Permalink
Issue mozilla#31 - little documentation, extra space nit
Browse files Browse the repository at this point in the history
  • Loading branch information
xabolcs committed Nov 8, 2012
1 parent cc899b5 commit 22afc5a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions extension/chrome/content/suite.js
Expand Up @@ -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)
Expand Down

0 comments on commit 22afc5a

Please sign in to comment.