Bug 674732 - followup: remove unnecessary null check. r=dao
authorFrank Yan <fyan@mozilla.com>
Thu, 28 Jul 2011 21:33:36 -0700
changeset 74277 cef1817c3b13bcb5065b721a35dee94a2940e339
parent 74276 5fc7b3f0bae67ba77280328388d55a58bf96370c
child 74298 f5f1e38225404126875f536c2875ca6a70150bca
push id235
push userbzbarsky@mozilla.com
push dateTue, 27 Sep 2011 17:13:04 +0000
treeherdermozilla-beta@2d1e082d176a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs674732
milestone8.0a1
first release with
nightly linux32
cef1817c3b13 / 8.0a1 / 20110729030824 / files
nightly linux64
cef1817c3b13 / 8.0a1 / 20110729030824 / files
nightly mac
cef1817c3b13 / 8.0a1 / 20110729030824 / files
nightly win32
cef1817c3b13 / 8.0a1 / 20110729030824 / files
nightly win64
cef1817c3b13 / 8.0a1 / 20110729030824 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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");