Bug 604507 - remove throws from loading. r=mfinkle
authorDoug Turner <dougt@dougt.org>
Thu, 14 Oct 2010 15:14:55 -0700
changeset 66836 e5b8400187b04b8e7ab3d81c50abe55bac932481
parent 66835 53c39785522304d30d8e1564bc984e60549abce0
child 66837 2cbc42743401709b017e3f95547bba3064e38b58
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs604507
Bug 604507 - remove throws from loading. r=mfinkle
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -2459,22 +2459,20 @@ Tab.prototype = {
     browser.scale = newScale;
 
     // ...and keep the same top-left corner of the visible rect
     let scaleRatio = newScale / oldScale;
     browser.scrollTo(pos.x * scaleRatio, pos.y * scaleRatio);
   },
 
   startLoading: function startLoading() {
-    if (this._loading) throw "Already Loading!";
     this._loading = true;
   },
 
   endLoading: function endLoading() {
-    if (!this._loading) throw "Not Loading!";
     this._loading = false;
   },
 
   isLoading: function isLoading() {
     return this._loading;
   },
 
   create: function create(aURI, aParams) {