From 08d19fcc0eaeb375618b9f06f2bc1ef94bb730b5 Mon Sep 17 00:00:00 2001 From: Frank Yan Date: Mon, 1 Aug 2011 17:57:48 -0700 Subject: [PATCH] Bug 675215 - Include page title in data transfer when ctrl/opt+dragging tab. --- browser/base/content/tabbrowser.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index a60a62638d7..3cde2cd05a3 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -3819,8 +3819,8 @@ if (event.ctrlKey) { #endif let dt = event.dataTransfer; - let spec = this.tabbrowser.getBrowserForTab(tab).currentURI.spec; - dt.setData("text/x-moz-url", spec); + let browser = tab.linkedBrowser; + dt.setData("text/x-moz-url", browser.currentURI.spec + "\n" + browser.contentTitle); let favicon = document.getAnonymousElementByAttribute(tab, "class", "tab-icon-image"); dt.setDragImage(favicon, 16, 16); return;