Bug 674732 - followup: remove unnecessary null check. r=dao
authorFrank Yan <fyan@mozilla.com>
Thu, 28 Jul 2011 21:33:36 -0700
changeset 73505 cef1817c3b13bcb5065b721a35dee94a2940e339
parent 73504 5fc7b3f0bae67ba77280328388d55a58bf96370c
child 73526 f5f1e38225404126875f536c2875ca6a70150bca
push idunknown
push userunknown
push dateunknown
reviewersdao
bugs674732
milestone8.0a1
Bug 674732 - followup: remove unnecessary null check. r=dao
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -3814,20 +3814,18 @@
           return;
 
 #ifdef XP_MACOSX
         if (event.altKey) {
 #else
         if (event.ctrlKey) {
 #endif
           let dt = event.dataTransfer;
-          let uri = this.tabbrowser.getBrowserForTab(tab).currentURI;
-          let spec = uri ? uri.spec : "about:blank";
+          let spec = this.tabbrowser.getBrowserForTab(tab).currentURI.spec;
           dt.setData("text/x-moz-url", spec);
-
           let favicon = document.getAnonymousElementByAttribute(tab, "class", "tab-icon-image");
           dt.setDragImage(favicon, 16, 16);
           return;
         }
 
         this.setAttribute("drag", "move");
         this.draggedTab = tab;
         tab.setAttribute("dragged", "true");