зеркало из https://github.com/mozilla/gecko-dev.git
Bug 577266 - Correct another handful of incorrect spellings
This commit is contained in:
Родитель
8a305a9036
Коммит
18a50dd690
|
@ -398,7 +398,7 @@ this.DownloadsCommon = {
|
|||
{
|
||||
// We apply an algorithm similar to the DownloadUtils.getTimeLeft function,
|
||||
// though tailored to a single time estimation for all downloads. We never
|
||||
// apply sommothing if the new value is less than half the previous value.
|
||||
// apply something if the new value is less than half the previous value.
|
||||
let shouldApplySmoothing = aLastSeconds >= 0 &&
|
||||
aSeconds > aLastSeconds / 2;
|
||||
if (shouldApplySmoothing) {
|
||||
|
@ -482,7 +482,7 @@ this.DownloadsCommon = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Show a donwloaded file in the system file manager.
|
||||
* Show a downloaded file in the system file manager.
|
||||
* If you have a dataItem, use dataItem.showLocalFile.
|
||||
*
|
||||
* @param aFile
|
||||
|
|
|
@ -157,7 +157,7 @@ this.DownloadsTaskbar = {
|
|||
|
||||
onSummaryChanged: function ()
|
||||
{
|
||||
// If the last browser window has been closed, we have no indicator anymore.
|
||||
// If the last browser window has been closed, we have no indicator any more.
|
||||
if (!this._taskbarProgress) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -291,7 +291,7 @@ DownloadElementShell.prototype = {
|
|||
* set. If available, it's set to the downloaded file name. If not,
|
||||
* the places title for the download uri is used it's set. As a last
|
||||
* resort, we fallback to the download uri.
|
||||
* - fileSize (only set for downloads which completed succesfully):
|
||||
* - fileSize (only set for downloads which completed successfully):
|
||||
* the downloaded file size. For downloads done after the landing of
|
||||
* bug 826991, this value is "static" - that is, it does not necessarily
|
||||
* mean that the file is in place and has this size.
|
||||
|
@ -581,7 +581,7 @@ DownloadElementShell.prototype = {
|
|||
return false;
|
||||
switch (aCommand) {
|
||||
case "downloadsCmd_open": {
|
||||
// We cannot open a session dowload file unless it's done ("openable").
|
||||
// We cannot open a session download file unless it's done ("openable").
|
||||
// If it's finished, we need to make sure the file was not removed,
|
||||
// as we do for past downloads.
|
||||
if (this._dataItem && !this._dataItem.openable)
|
||||
|
@ -696,7 +696,7 @@ DownloadElementShell.prototype = {
|
|||
this.downloadURI.toLowerCase().contains(aTerm);
|
||||
},
|
||||
|
||||
// Handles return kepress on the element (the keypress listener is
|
||||
// Handles return keypress on the element (the keypress listener is
|
||||
// set in the DownloadsPlacesView object).
|
||||
doDefaultCommand: function DES_doDefaultCommand() {
|
||||
function getDefaultCommandForState(aState) {
|
||||
|
@ -743,7 +743,7 @@ DownloadElementShell.prototype = {
|
|||
|
||||
/**
|
||||
* A Downloads Places View is a places view designed to show a places query
|
||||
* for history donwloads alongside the current "session"-downloads.
|
||||
* for history downloads alongside the current "session"-downloads.
|
||||
*
|
||||
* As we don't use the places controller, some methods implemented by other
|
||||
* places views are not implemented by this view.
|
||||
|
@ -864,7 +864,7 @@ DownloadsPlacesView.prototype = {
|
|||
* The places node for a history download. Required if there's no data
|
||||
* item.
|
||||
* @param [optional] aNewest
|
||||
* @see onDataItemAdded. Ignored for history downlods.
|
||||
* @see onDataItemAdded. Ignored for history downloads.
|
||||
* @param [optional] aDocumentFragment
|
||||
* To speed up the appending of multiple elements to the end of the
|
||||
* list which are coming in a single batch (i.e. invalidateContainer),
|
||||
|
@ -893,9 +893,9 @@ DownloadsPlacesView.prototype = {
|
|||
// 1) There's only one shell and it's for a history download (it has
|
||||
// no data item). In this case, we update this shell and move it
|
||||
// if necessary
|
||||
// 2) There are multiple shells, indicicating multiple downloads for
|
||||
// 2) There are multiple shells, indicating multiple downloads for
|
||||
// the same download uri are running. In this case we create
|
||||
// anoter shell for the download (so we have one shell for each data
|
||||
// another shell for the download (so we have one shell for each data
|
||||
// item).
|
||||
//
|
||||
// Note: If a cancelled session download is already in the list, and the
|
||||
|
@ -922,7 +922,7 @@ DownloadsPlacesView.prototype = {
|
|||
if (shouldCreateShell) {
|
||||
// Bug 836271: The annotations for a url should be cached only when the
|
||||
// places node is available, i.e. when we know we we'd be notified for
|
||||
// annoation changes.
|
||||
// annotation changes.
|
||||
// Otherwise we may cache NOT_AVILABLE values first for a given session
|
||||
// download, and later use these NOT_AVILABLE values when a history
|
||||
// download for the same URL is added.
|
||||
|
@ -1369,7 +1369,7 @@ DownloadsPlacesView.prototype = {
|
|||
},
|
||||
|
||||
_canClearDownloads: function DPV__canClearDownloads() {
|
||||
// Downloads can be cleared if there's at least one removeable download in
|
||||
// Downloads can be cleared if there's at least one removable download in
|
||||
// the list (either a history download or a completed session download).
|
||||
// Because history downloads are always removable and are listed after the
|
||||
// session downloads, check from bottom to top.
|
||||
|
@ -1497,7 +1497,7 @@ DownloadsPlacesView.prototype = {
|
|||
}
|
||||
}
|
||||
else if (aEvent.charCode == " ".charCodeAt(0)) {
|
||||
// Pausue/Resume every selected download
|
||||
// Pause/Resume every selected download
|
||||
for (let element of selectedElements) {
|
||||
if (element._shell.isCommandEnabled("downloadsCmd_pauseResume"))
|
||||
element._shell.doCommand("downloadsCmd_pauseResume");
|
||||
|
|
|
@ -196,7 +196,7 @@ const DownloadsPanel = {
|
|||
get panel()
|
||||
{
|
||||
// If the downloads panel overlay hasn't loaded yet, just return null
|
||||
// without reseting this.panel.
|
||||
// without resetting this.panel.
|
||||
let downloadsPanel = document.getElementById("downloadsPanel");
|
||||
if (!downloadsPanel)
|
||||
return null;
|
||||
|
@ -556,7 +556,7 @@ const DownloadsPanel = {
|
|||
|
||||
// At this point, if the window is minimized, opening the panel could fail
|
||||
// without any notification, and there would be no way to either open or
|
||||
// close the panel anymore. To prevent this, check if the window is
|
||||
// close the panel any more. To prevent this, check if the window is
|
||||
// minimized and in that case force the panel to the closed state.
|
||||
if (window.windowState == Ci.nsIDOMChromeWindow.STATE_MINIMIZED) {
|
||||
DownloadsButton.releaseAnchor();
|
||||
|
|
Загрузка…
Ссылка в новой задаче