Closed Bug 560791 Opened 14 years ago Closed 14 years ago

The "tab tear" feature no longer works when dropping on content

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
major

Tracking

()

VERIFIED FIXED
Firefox 3.7a5
Tracking Status
blocking2.0 --- final+

People

(Reporter: andyterminator_367, Assigned: enndeakin)

References

Details

(Keywords: dataloss, regression)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a5pre) Gecko/20100420 Minefield/3.7a5pre (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a5pre) Gecko/20100420 Minefield/3.7a5pre (.NET CLR 3.5.30729)

In the latest Minefield 3.7 nightly update I've noticed that - along with a new look for tabs - the "tab tear" feature no longer works. My understanding is that this is the name of the feature wherein when a tab is pulled down from its location and into the page, it pops out and opens in a new window. In the latest nightly update however it doesn't do that. Rather, it simply refreshes the page. Is this a bug, or is it intended? Either way I'm not impressed.

Reproducible: Always

Steps to Reproduce:
1. Open a new web page in a tab
2. Pull it out like you would in Firefox 3.6
3. Expect it to open in a new Window; be disappointed.
Actual Results:  
1. Opened a new web page in a tab
2. Pulled it out like I did in Firefox 3.6
3. The page refreshed. I wanted it to open in a new window

Expected Results:  
1. Open a new web page in a tab
2. Pull it out like you would in Firefox 3.6
3. Tab is removed from previous window; tab now has its own window
There have also been some changes to drag and drop recently.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
I think this is probably a regression from bug 556739. I'm not sure that TAB_DROP_TYPE is defined in tabbrowser.js scope any more; In particular compare with bug 556739 comment #36 onwards.
(In reply to comment #2)
> I think this is probably a regression from bug 556739. I'm not sure that
> TAB_DROP_TYPE is defined in tabbrowser.js scope any more; In particular compare
> with bug 556739 comment #36 onwards.

that's only about tab drop on Places views, should not hit any other kind of drop.
(In reply to comment #3)
> that's only about tab drop on Places views, should not hit any other kind of
> drop.

Unless somebody was using a const defined by us, that would be absolutely wrong, but possible!
hm, no it is defined in utilityOverlay
line 44 -- var TAB_DROP_TYPE = "application/x-moz-tabbrowser-tab";
http://mxr.mozilla.org/mozilla-central/source/browser/base/content/utilityOverlay.js#44

so only Places views could have been affected, and those are fine in current nightly
i must also add that it works perfectly here following steps in comment 0
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a5pre) Gecko/20100420 Minefield/3.7a5pre
Sorry, I have confirmed that mak is right and TAB_DROP_TYPE _is_ defined - before I couldn't find where utilityOverlay was included.

When I drag a tab to content area the page reloads instead of detaching.
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.3a5pre) Gecko/20100420 Minefield/3.7a5pre ID:20100420040941
oh, to content area, i can confirm that... i think this is an ever better behavior than the previous, but this is a personal opinion.
Most likely due to Neil's droplinkhandler changes, he touched browser drop link code.
Summary: The "tab tear" feature no longer works → The "tab tear" feature no longer works when dragging on content
Blocks: 545714
Summary: The "tab tear" feature no longer works when dragging on content → The "tab tear" feature no longer works when dropping on content
Version: unspecified → Trunk
I believe that any tab which has some flash content loaded will successfully open in a new window when dragged to the content area. If that flash content has not loaded (i.e. the Flashblock plugin is preventing it) the page will not detach successfully; only when the flash content is allowed to load can the tab detatch.
I can also confirm this bad change on XP
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a5pre) Gecko/20100421 Minefield/3.7a5pre

and this isn't better behavior, if I want to refresh page I will click F5 or simply reload button ;)
Attached patch fixSplinter Review
Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Attachment #440568 - Flags: review?(mano)
Can this patch can finally land to restore this future like it was before in previous nightlys ? ;)
(In reply to comment #12)
> Can this patch can finally land to restore this future like it was before in
> previous nightlys ? ;)

The patch is waiting on review and will land after it gets r+ from mano.
OS: Windows 7 → All
Hardware: x86_64 → All
I know, that's why I writing my message to speed up reviewing this small patch to restore main Fx future.
blocking2.0: --- → ?
Comment on attachment 440568 [details] [diff] [review]
fix

r=mano
Attachment #440568 - Flags: review?(mano) → review+
Keywords: dataloss
http://hg.mozilla.org/mozilla-central/rev/27e8026d2cc7
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Thanks Neil! That fixes the problem on all platforms with builds like Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.3a5pre) Gecko/20100514 Minefield/3.7a5pre ID:20100514030623
Status: RESOLVED → VERIFIED
Target Milestone: --- → Firefox 3.7a5
posthumous blocking+.
blocking2.0: ? → final+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: