Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 998118 - Dont display crashed background tabs. r=benfrancis, a=lm…
Browse files Browse the repository at this point in the history
…andel
  • Loading branch information
rvandermeulen committed Jul 2, 2014
1 parent cb1ad02 commit 5f5a05e
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
8 changes: 1 addition & 7 deletions apps/browser/js/browser.js
Expand Up @@ -593,10 +593,6 @@ var Browser = {
AuthenticationDialog.clear(tab.id);
this.frames.removeChild(tab.dom);
delete tab.dom;
delete tab.screenshot;
if (this.currentScreen === this.TABS_SCREEN) {
this.showTabScreen();
}
},

handleVisibilityChange: function browser_handleVisibilityChange() {
Expand Down Expand Up @@ -1503,9 +1499,7 @@ var Browser = {
a.appendChild(span);
li.appendChild(a);

if (tab.crashed) {
preview.classList.add('crashed');
} else if (tab.screenshot) {
if (tab.screenshot) {
var objectURL = URL.createObjectURL(tab.screenshot);
this._tabScreenObjectURLs.push(objectURL);
preview.style.backgroundImage = 'url(' + objectURL + ')';
Expand Down
4 changes: 0 additions & 4 deletions apps/browser/style/browser.css
Expand Up @@ -144,10 +144,6 @@ input[type="image"] {
margin-right: 1rem;
}

.preview.crashed {
background-image: url(images/tab-icon-crashedtab.png);
}

#tabs-list span {
pointer-events: none;
display: block;
Expand Down
Binary file removed apps/browser/style/images/tab-icon-crashedtab.png
Binary file not shown.
Binary file not shown.
Binary file removed apps/browser/style/images/tab-icon-crashedtab@2x.png
Binary file not shown.

0 comments on commit 5f5a05e

Please sign in to comment.