Bug 1067325 - Fix line endings in several browser / toolkit files. r=mconley

This commit is contained in:
J. Ryan Stinnett 2015-05-23 18:17:50 -05:00
parent 16b5714c43
commit b4e49ea508
7 changed files with 56 additions and 56 deletions

View File

@ -198,7 +198,7 @@ pref("app.update.url", "https://aus4.mozilla.org/update/3/%PRODUCT%/%VERSION%/%B
pref("app.update.idletime", 60); pref("app.update.idletime", 60);
// Whether or not we show a dialog box informing the user that the update was // Whether or not we show a dialog box informing the user that the update was
// successfully applied. This is off in Firefox by default since we show a // successfully applied. This is off in Firefox by default since we show a
// upgrade start page instead! Other apps may wish to show this UI, and supply // upgrade start page instead! Other apps may wish to show this UI, and supply
// a whatsNewURL field in their brand.properties that contains a link to a page // a whatsNewURL field in their brand.properties that contains a link to a page
// which tells users what's new in this new update. // which tells users what's new in this new update.
@ -225,10 +225,10 @@ pref("app.update.service.enabled", true);
pref("extensions.update.enabled", true); pref("extensions.update.enabled", true);
pref("extensions.update.url", "https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%&currentAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%"); pref("extensions.update.url", "https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%&currentAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%");
pref("extensions.update.background.url", "https://versioncheck-bg.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%&currentAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%"); pref("extensions.update.background.url", "https://versioncheck-bg.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%&currentAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%");
pref("extensions.update.interval", 86400); // Check for updates to Extensions and pref("extensions.update.interval", 86400); // Check for updates to Extensions and
// Themes every day // Themes every day
// Non-symmetric (not shared by extensions) extension-specific [update] preferences // Non-symmetric (not shared by extensions) extension-specific [update] preferences
pref("extensions.dss.enabled", false); // Dynamic Skin Switching pref("extensions.dss.enabled", false); // Dynamic Skin Switching
pref("extensions.dss.switchPending", false); // Non-dynamic switch pending after next pref("extensions.dss.switchPending", false); // Non-dynamic switch pending after next
// restart. // restart.
@ -359,7 +359,7 @@ pref("browser.altClickSave", false);
pref("browser.download.debug", false); pref("browser.download.debug", false);
// Number of milliseconds to wait for the http headers (and thus // Number of milliseconds to wait for the http headers (and thus
// the Content-Disposition filename) before giving up and falling back to // the Content-Disposition filename) before giving up and falling back to
// picking a filename without that info in hand so that the user sees some // picking a filename without that info in hand so that the user sees some
// feedback from their action. // feedback from their action.
pref("browser.download.saveLinkAsFilenameTimeout", 4000); pref("browser.download.saveLinkAsFilenameTimeout", 4000);
@ -390,7 +390,7 @@ pref("browser.search.jarURIs", "chrome://browser/locale/searchplugins/");
// pointer to the default engine name // pointer to the default engine name
pref("browser.search.defaultenginename", "chrome://browser-region/locale/region.properties"); pref("browser.search.defaultenginename", "chrome://browser-region/locale/region.properties");
// Ordering of Search Engines in the Engine list. // Ordering of Search Engines in the Engine list.
pref("browser.search.order.1", "chrome://browser-region/locale/region.properties"); pref("browser.search.order.1", "chrome://browser-region/locale/region.properties");
pref("browser.search.order.2", "chrome://browser-region/locale/region.properties"); pref("browser.search.order.2", "chrome://browser-region/locale/region.properties");
pref("browser.search.order.3", "chrome://browser-region/locale/region.properties"); pref("browser.search.order.3", "chrome://browser-region/locale/region.properties");
@ -462,7 +462,7 @@ pref("browser.tabs.drawInTitlebar", false);
pref("browser.tabs.drawInTitlebar", true); pref("browser.tabs.drawInTitlebar", true);
#endif #endif
// When tabs opened by links in other tabs via a combination of // When tabs opened by links in other tabs via a combination of
// browser.link.open_newwindow being set to 3 and target="_blank" etc are // browser.link.open_newwindow being set to 3 and target="_blank" etc are
// closed: // closed:
// true return to the tab that opened this tab (its owner) // true return to the tab that opened this tab (its owner)
@ -476,7 +476,7 @@ pref("browser.ctrlTab.previews", false);
// be exported as HTML to the bookmarks.html file. // be exported as HTML to the bookmarks.html file.
pref("browser.bookmarks.autoExportHTML", false); pref("browser.bookmarks.autoExportHTML", false);
// The maximum number of daily bookmark backups to // The maximum number of daily bookmark backups to
// keep in {PROFILEDIR}/bookmarkbackups. Special values: // keep in {PROFILEDIR}/bookmarkbackups. Special values:
// -1: unlimited // -1: unlimited
// 0: no backups created (and deletes all existing backups) // 0: no backups created (and deletes all existing backups)
@ -489,7 +489,7 @@ pref("javascript.options.showInConsole", true);
pref("general.warnOnAboutConfig", false); pref("general.warnOnAboutConfig", false);
#endif #endif
// This is the pref to control the location bar, change this to true to // This is the pref to control the location bar, change this to true to
// force this - this makes the origin of popup windows more obvious to avoid // force this - this makes the origin of popup windows more obvious to avoid
// spoofing. We would rather not do it by default because it affects UE for web // spoofing. We would rather not do it by default because it affects UE for web
// applications, but without it there isn't a really good way to prevent chrome // applications, but without it there isn't a really good way to prevent chrome
@ -917,7 +917,7 @@ pref("browser.audioFeeds.handler", "ask");
// At startup, if the handler service notices that the version number in the // At startup, if the handler service notices that the version number in the
// region.properties file is newer than the version number in the handler // region.properties file is newer than the version number in the handler
// service datastore, it will add any new handlers it finds in the prefs (as // service datastore, it will add any new handlers it finds in the prefs (as
// seeded by this file) to its datastore. // seeded by this file) to its datastore.
pref("gecko.handlerService.defaultHandlersVersion", "chrome://browser-region/locale/region.properties"); pref("gecko.handlerService.defaultHandlersVersion", "chrome://browser-region/locale/region.properties");
// The default set of web-based protocol handlers shown in the application // The default set of web-based protocol handlers shown in the application

View File

@ -5560,7 +5560,7 @@ function middleMousePaste(event) {
clipboard = stripUnsafeProtocolOnPaste(clipboard); clipboard = stripUnsafeProtocolOnPaste(clipboard);
// if it's not the current tab, we don't need to do anything because the // if it's not the current tab, we don't need to do anything because the
// browser doesn't exist. // browser doesn't exist.
let where = whereToOpenLink(event, true, false); let where = whereToOpenLink(event, true, false);
let lastLocationChange; let lastLocationChange;
@ -6278,10 +6278,10 @@ function warnAboutClosingWindow() {
otherPBWindowExists = true; otherPBWindowExists = true;
if (win.toolbar.visible) if (win.toolbar.visible)
nonPopupPresent = true; nonPopupPresent = true;
// If the current window is not in private browsing mode we don't need to // If the current window is not in private browsing mode we don't need to
// look for other pb windows, we can leave the loop when finding the // look for other pb windows, we can leave the loop when finding the
// first non-popup window. If however the current window is in private // first non-popup window. If however the current window is in private
// browsing mode then we need at least one other pb and one non-popup // browsing mode then we need at least one other pb and one non-popup
// window to break out early. // window to break out early.
if ((!isPBWindow || otherPBWindowExists) && nonPopupPresent) if ((!isPBWindow || otherPBWindowExists) && nonPopupPresent)
break; break;
@ -7099,7 +7099,7 @@ var gIdentityHandler = {
dt.setData("text/html", htmlString); dt.setData("text/html", htmlString);
dt.setDragImage(gProxyFavIcon, 16, 16); dt.setDragImage(gProxyFavIcon, 16, 16);
}, },
handleEvent: function (event) { handleEvent: function (event) {
switch (event.type) { switch (event.type) {
case "blur": case "blur":

View File

@ -1153,7 +1153,7 @@ nsContextMenu.prototype = {
urlSecurityCheck(this.target.currentURI.spec, this.principal); urlSecurityCheck(this.target.currentURI.spec, this.principal);
// Confirm since it's annoying if you hit this accidentally. // Confirm since it's annoying if you hit this accidentally.
const kDesktopBackgroundURL = const kDesktopBackgroundURL =
"chrome://browser/content/setDesktopBackground.xul"; "chrome://browser/content/setDesktopBackground.xul";
#ifdef XP_MACOSX #ifdef XP_MACOSX
// On Mac, the Set Desktop Background window is not modal. // On Mac, the Set Desktop Background window is not modal.
@ -1196,7 +1196,7 @@ nsContextMenu.prototype = {
// file picker // file picker
function saveAsListener() {} function saveAsListener() {}
saveAsListener.prototype = { saveAsListener.prototype = {
extListener: null, extListener: null,
onStartRequest: function saveLinkAs_onStartRequest(aRequest, aContext) { onStartRequest: function saveLinkAs_onStartRequest(aRequest, aContext) {
@ -1229,17 +1229,17 @@ nsContextMenu.prototype = {
return; return;
} }
let extHelperAppSvc = let extHelperAppSvc =
Cc["@mozilla.org/uriloader/external-helper-app-service;1"]. Cc["@mozilla.org/uriloader/external-helper-app-service;1"].
getService(Ci.nsIExternalHelperAppService); getService(Ci.nsIExternalHelperAppService);
let channel = aRequest.QueryInterface(Ci.nsIChannel); let channel = aRequest.QueryInterface(Ci.nsIChannel);
this.extListener = this.extListener =
extHelperAppSvc.doContent(channel.contentType, aRequest, extHelperAppSvc.doContent(channel.contentType, aRequest,
null, true, window); null, true, window);
this.extListener.onStartRequest(aRequest, aContext); this.extListener.onStartRequest(aRequest, aContext);
}, },
onStopRequest: function saveLinkAs_onStopRequest(aRequest, aContext, onStopRequest: function saveLinkAs_onStopRequest(aRequest, aContext,
aStatusCode) { aStatusCode) {
if (aStatusCode == NS_ERROR_SAVE_LINK_AS_TIMEOUT) { if (aStatusCode == NS_ERROR_SAVE_LINK_AS_TIMEOUT) {
// do it the old fashioned way, which will pick the best filename // do it the old fashioned way, which will pick the best filename
@ -1272,12 +1272,12 @@ nsContextMenu.prototype = {
channel.cancel(NS_ERROR_SAVE_LINK_AS_TIMEOUT); channel.cancel(NS_ERROR_SAVE_LINK_AS_TIMEOUT);
} }
throw Cr.NS_ERROR_NO_INTERFACE; throw Cr.NS_ERROR_NO_INTERFACE;
} }
} }
// if it we don't have the headers after a short time, the user // if it we don't have the headers after a short time, the user
// won't have received any feedback from their click. that's bad. so // won't have received any feedback from their click. that's bad. so
// we give up waiting for the filename. // we give up waiting for the filename.
function timerCallback() {} function timerCallback() {}
timerCallback.prototype = { timerCallback.prototype = {
notify: function sLA_timer_notify(aTimer) { notify: function sLA_timer_notify(aTimer) {
@ -1319,8 +1319,8 @@ nsContextMenu.prototype = {
channel.forceAllowThirdPartyCookie = true; channel.forceAllowThirdPartyCookie = true;
} }
// fallback to the old way if we don't see the headers quickly // fallback to the old way if we don't see the headers quickly
var timeToWait = var timeToWait =
gPrefService.getIntPref("browser.download.saveLinkAsFilenameTimeout"); gPrefService.getIntPref("browser.download.saveLinkAsFilenameTimeout");
var timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer); var timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
timer.initWithCallback(new timerCallback(), timeToWait, timer.initWithCallback(new timerCallback(), timeToWait,
@ -1499,7 +1499,7 @@ nsContextMenu.prototype = {
// Generate fully qualified URL for clicked-on link. // Generate fully qualified URL for clicked-on link.
getLinkURL: function() { getLinkURL: function() {
var href = this.link.href; var href = this.link.href;
if (href) if (href)
return href; return href;

View File

@ -86,7 +86,7 @@ function viewPartialSourceForSelection(selection)
// is _very_ important. // is _very_ important.
// XXXbz wish there were a less hacky way to create an untrusted document here // XXXbz wish there were a less hacky way to create an untrusted document here
var isHTML = (doc.createElement("div").tagName == "DIV"); var isHTML = (doc.createElement("div").tagName == "DIV");
var dataDoc = isHTML ? var dataDoc = isHTML ?
ancestorContainer.ownerDocument.implementation.createHTMLDocument("") : ancestorContainer.ownerDocument.implementation.createHTMLDocument("") :
ancestorContainer.ownerDocument.implementation.createDocument("", "", null); ancestorContainer.ownerDocument.implementation.createDocument("", "", null);
ancestorContainer = dataDoc.importNode(ancestorContainer, true); ancestorContainer = dataDoc.importNode(ancestorContainer, true);

View File

@ -4,8 +4,8 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://global/content/viewSource.css" type="text/css"?> <?xml-stylesheet href="chrome://global/content/viewSource.css" type="text/css"?>
<?xml-stylesheet href="chrome://mozapps/skin/viewsource/viewsource.css" type="text/css"?> <?xml-stylesheet href="chrome://mozapps/skin/viewsource/viewsource.css" type="text/css"?>
<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?> <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
@ -20,10 +20,10 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="onLoadViewPartialSource();" onload="onLoadViewPartialSource();"
contenttitlesetting="true" contenttitlesetting="true"
title="&mainWindow.title;" title="&mainWindow.title;"
titlemodifier="&mainWindow.titlemodifier;" titlemodifier="&mainWindow.titlemodifier;"
titlepreface="" titlepreface=""
titlemenuseparator ="&mainWindow.titlemodifierseparator;" titlemenuseparator ="&mainWindow.titlemodifierseparator;"
windowtype="navigator:view-source" windowtype="navigator:view-source"
width="500" height="300" width="500" height="300"
screenX="10" screenY="10" screenX="10" screenY="10"
@ -89,7 +89,7 @@
<menuitem id="cMenu_selectAll"/> <menuitem id="cMenu_selectAll"/>
</menupopup> </menupopup>
<!-- Menu --> <!-- Menu -->
<toolbox id="viewSource-toolbox"> <toolbox id="viewSource-toolbox">
<menubar id="viewSource-main-menubar"> <menubar id="viewSource-main-menubar">
@ -131,11 +131,11 @@
<menu id="menu_view" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;"> <menu id="menu_view" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
<menupopup id="viewmenu-popup"> <menupopup id="viewmenu-popup">
<menu id="viewTextZoomMenu" label="&menu_textSize.label;" accesskey="&menu_textSize.accesskey;"> <menu id="viewTextZoomMenu" label="&menu_textSize.label;" accesskey="&menu_textSize.accesskey;">
<menupopup> <menupopup>
<menuitem id="menu_textEnlarge" command="cmd_textZoomEnlarge" <menuitem id="menu_textEnlarge" command="cmd_textZoomEnlarge"
label="&menu_textEnlarge.label;" accesskey="&menu_textEnlarge.accesskey;" label="&menu_textEnlarge.label;" accesskey="&menu_textEnlarge.accesskey;"
key="key_textZoomEnlarge"/> key="key_textZoomEnlarge"/>
<menuitem id="menu_textReduce" command="cmd_textZoomReduce" <menuitem id="menu_textReduce" command="cmd_textZoomReduce"
label="&menu_textReduce.label;" accesskey="&menu_textReduce.accesskey;" label="&menu_textReduce.label;" accesskey="&menu_textReduce.accesskey;"
key="key_textZoomReduce"/> key="key_textZoomReduce"/>
<menuseparator/> <menuseparator/>
@ -151,7 +151,7 @@
label="&menu_highlightSyntax.label;" accesskey="&menu_highlightSyntax.accesskey;"/> label="&menu_highlightSyntax.label;" accesskey="&menu_highlightSyntax.accesskey;"/>
</menupopup> </menupopup>
</menu> </menu>
</menubar> </menubar>
</toolbox> </toolbox>
<vbox id="appcontent" flex="1"> <vbox id="appcontent" flex="1">

View File

@ -4,7 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://global/content/viewSource.css" type="text/css"?> <?xml-stylesheet href="chrome://global/content/viewSource.css" type="text/css"?>
<?xml-stylesheet href="chrome://mozapps/skin/viewsource/viewsource.css" type="text/css"?> <?xml-stylesheet href="chrome://mozapps/skin/viewsource/viewsource.css" type="text/css"?>
<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?> <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
@ -21,10 +21,10 @@
<window id="viewSource" <window id="viewSource"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
contenttitlesetting="true" contenttitlesetting="true"
title="&mainWindow.title;" title="&mainWindow.title;"
titlemodifier="&mainWindow.titlemodifier;" titlemodifier="&mainWindow.titlemodifier;"
titlepreface="&mainWindow.preface;" titlepreface="&mainWindow.preface;"
titlemenuseparator ="&mainWindow.titlemodifierseparator;" titlemenuseparator ="&mainWindow.titlemodifierseparator;"
windowtype="navigator:view-source" windowtype="navigator:view-source"
width="640" height="480" width="640" height="480"
screenX="10" screenY="10" screenX="10" screenY="10"
@ -35,7 +35,7 @@
<script type="application/javascript" src="chrome://global/content/viewSource.js"/> <script type="application/javascript" src="chrome://global/content/viewSource.js"/>
<script type="application/javascript" src="chrome://global/content/viewZoomOverlay.js"/> <script type="application/javascript" src="chrome://global/content/viewZoomOverlay.js"/>
<script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/> <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
<stringbundle id="viewSourceBundle" src="chrome://global/locale/viewSource.properties"/> <stringbundle id="viewSourceBundle" src="chrome://global/locale/viewSource.properties"/>
<command id="cmd_savePage" oncommand="ViewSourceSavePage();"/> <command id="cmd_savePage" oncommand="ViewSourceSavePage();"/>
@ -110,7 +110,7 @@
#endif #endif
</keyset> </keyset>
<tooltip id="aHTMLTooltip" page="true"/> <tooltip id="aHTMLTooltip" page="true"/>
<menupopup id="viewSourceContextMenu"> <menupopup id="viewSourceContextMenu">
@ -140,7 +140,7 @@
<menuitem id="cMenu_selectAll"/> <menuitem id="cMenu_selectAll"/>
</menupopup> </menupopup>
<!-- Menu --> <!-- Menu -->
<toolbox id="viewSource-toolbox"> <toolbox id="viewSource-toolbox">
<menubar id="viewSource-main-menubar"> <menubar id="viewSource-main-menubar">
@ -188,11 +188,11 @@
label="&reloadCmd.label;" key="key_reload"/> label="&reloadCmd.label;" key="key_reload"/>
<menuseparator /> <menuseparator />
<menu id="viewTextZoomMenu" label="&menu_textSize.label;" accesskey="&menu_textSize.accesskey;"> <menu id="viewTextZoomMenu" label="&menu_textSize.label;" accesskey="&menu_textSize.accesskey;">
<menupopup> <menupopup>
<menuitem id="menu_textEnlarge" command="cmd_textZoomEnlarge" <menuitem id="menu_textEnlarge" command="cmd_textZoomEnlarge"
label="&menu_textEnlarge.label;" accesskey="&menu_textEnlarge.accesskey;" label="&menu_textEnlarge.label;" accesskey="&menu_textEnlarge.accesskey;"
key="key_textZoomEnlarge"/> key="key_textZoomEnlarge"/>
<menuitem id="menu_textReduce" command="cmd_textZoomReduce" <menuitem id="menu_textReduce" command="cmd_textZoomReduce"
label="&menu_textReduce.label;" accesskey="&menu_textReduce.accesskey;" label="&menu_textReduce.label;" accesskey="&menu_textReduce.accesskey;"
key="key_textZoomReduce"/> key="key_textZoomReduce"/>
<menuseparator/> <menuseparator/>
@ -218,7 +218,7 @@
label="&menu_highlightSyntax.label;" accesskey="&menu_highlightSyntax.accesskey;"/> label="&menu_highlightSyntax.label;" accesskey="&menu_highlightSyntax.accesskey;"/>
</menupopup> </menupopup>
</menu> </menu>
</menubar> </menubar>
</toolbox> </toolbox>
<vbox id="appcontent" flex="1"> <vbox id="appcontent" flex="1">
@ -226,7 +226,7 @@
<browser id="content" type="content-primary" name="content" src="about:blank" flex="1" <browser id="content" type="content-primary" name="content" src="about:blank" flex="1"
context="viewSourceContextMenu" showcaret="true" tooltip="aHTMLTooltip" /> context="viewSourceContextMenu" showcaret="true" tooltip="aHTMLTooltip" />
<findbar id="FindToolbar" browserid="content"/> <findbar id="FindToolbar" browserid="content"/>
</vbox> </vbox>
<statusbar id="status-bar" class="chromeclass-status"> <statusbar id="status-bar" class="chromeclass-status">
<statusbarpanel id="statusbar-line-col" label="" flex="1"/> <statusbarpanel id="statusbar-line-col" label="" flex="1"/>

View File

@ -114,7 +114,7 @@ var gViewSourceUtils = {
lineNumber: aLineNumber}; lineNumber: aLineNumber};
try { try {
var editor = this.getExternalViewSourceEditor(); var editor = this.getExternalViewSourceEditor();
if (!editor) { if (!editor) {
this.handleCallBack(aCallBack, false, data); this.handleCallBack(aCallBack, false, data);
return; return;
@ -129,7 +129,7 @@ var gViewSourceUtils = {
var path; var path;
var contentType = aDocument ? aDocument.contentType : null; var contentType = aDocument ? aDocument.contentType : null;
if (uri.scheme == "file") { if (uri.scheme == "file") {
// it's a local file; we can open it directly // it's a local file; we can open it directly
path = uri.QueryInterface(Components.interfaces.nsIFileURL).file.path; path = uri.QueryInterface(Components.interfaces.nsIFileURL).file.path;
@ -140,7 +140,7 @@ var gViewSourceUtils = {
// set up the progress listener with what we know so far // set up the progress listener with what we know so far
this.viewSourceProgressListener.editor = editor; this.viewSourceProgressListener.editor = editor;
this.viewSourceProgressListener.callBack = aCallBack; this.viewSourceProgressListener.callBack = aCallBack;
this.viewSourceProgressListener.data = data; this.viewSourceProgressListener.data = data;
if (!aPageDescriptor) { if (!aPageDescriptor) {
// without a page descriptor, loadPage has no chance of working. download the file. // without a page descriptor, loadPage has no chance of working. download the file.
var file = this.getTemporaryFile(uri, aDocument, contentType); var file = this.getTemporaryFile(uri, aDocument, contentType);
@ -189,7 +189,7 @@ var gViewSourceUtils = {
var progress = webShell.QueryInterface(this.mnsIWebProgress); var progress = webShell.QueryInterface(this.mnsIWebProgress);
progress.addProgressListener(this.viewSourceProgressListener, progress.addProgressListener(this.viewSourceProgressListener,
this.mnsIWebProgress.NOTIFY_STATE_DOCUMENT); this.mnsIWebProgress.NOTIFY_STATE_DOCUMENT);
var pageLoader = webShell.QueryInterface(this.mnsIWebPageDescriptor); var pageLoader = webShell.QueryInterface(this.mnsIWebPageDescriptor);
pageLoader.loadPage(aPageDescriptor, this.mnsIWebPageDescriptor.DISPLAY_AS_SOURCE); pageLoader.loadPage(aPageDescriptor, this.mnsIWebPageDescriptor.DISPLAY_AS_SOURCE);
} }
} }
@ -296,7 +296,7 @@ var gViewSourceUtils = {
// get a temporary filename using the attributes from the data object that // get a temporary filename using the attributes from the data object that
// openInExternalEditor gave us // openInExternalEditor gave us
this.file = gViewSourceUtils.getTemporaryFile(this.data.uri, this.data.doc, this.file = gViewSourceUtils.getTemporaryFile(this.data.uri, this.data.doc,
this.data.doc.contentType); this.data.doc.contentType);
// we have to convert from the source charset. // we have to convert from the source charset.
@ -310,7 +310,7 @@ var gViewSourceUtils = {
// write the source to the file // write the source to the file
coStream.writeString(webNavigation.document.body.textContent); coStream.writeString(webNavigation.document.body.textContent);
// clean up // clean up
coStream.close(); coStream.close();
foStream.close(); foStream.close();