Closed Bug 983478 Opened 10 years ago Closed 10 years ago

Rearranging thumbnails in about:newtab doesn't work

Categories

(Firefox :: Tabbed Browser, defect)

30 Branch
x86
All
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 31
Tracking Status
firefox29 --- unaffected
firefox30 + verified
firefox31 --- verified

People

(Reporter: obrufau, Assigned: ttaubert)

References

Details

(Keywords: regression, Whiteboard: p=0 s=it-31c-30a-29b.1 [qa!])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:30.0) Gecko/20100101 Firefox/30.0 (Beta/Release)
Build ID: 20140313030202

Steps to reproduce:

Go to about:newtab, and drag a thumbnail to another position.


Actual results:

While being dragged, thumbnails are rearranged correctly. But when dropping it, instead of appearing where it should, it moves back to its previous position, overlapping the item that has taken its old place.


Expected results:

The dropped item should appear where it has been dropped.

The inappropriate position is caused by `left` and `top` properties of `.newtab-site` element. Removing them moves the dropped item to the appropriate position.
Regression Window(fx)
Good:
https://hg.mozilla.org/integration/fx-team/rev/a9af498c077d
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0 ID:20140220214528
Bad:
https://hg.mozilla.org/integration/fx-team/rev/5d896e33c6a6
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0 ID:20140221005525
Pushlog:
http://hg.mozilla.org/integration/fx-team/pushloghtml?fromchange=a9af498c077d&tochange=5d896e33c6a6

Regressed by: Bug 895359
Blocks: 895359
Status: UNCONFIRMED → NEW
Component: Untriaged → Tabbed Browser
Ever confirmed: true
Keywords: regression
OS: Windows XP → All
Tim, Could you have a look at this?
Flags: needinfo?(ttaubert)
The problem is that the rearranged item isn't unfrozen.

It seems that this is what happens when an item is rearranged:

 * gDrop.drop
    * gUpdater.updateGrid
       * gUpdater._freezeSitePositions
 * gDrag.end
    * gTransformation.slideSiteTo with {unfreeze: true}
       * gTransformation.unfreezeSitePosition

But the problem is that gUpdater.updateGrid delays gUpdater._freezeSitePositions, so it runs after gTransformation.unfreezeSitePosition
Fixed by backing out bug 895359.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(ttaubert)
Resolution: --- → FIXED
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 895359
User impact if declined: Dragging tiles on about:newtab is broken for Windows users.
Testing completed (on m-c, etc.): 
Risk to taking this patch (and alternatives if risky): Low risk, straight backout.
String or IDL/UUID changes made by this patch: None.
Assignee: nobody → ttaubert
Attachment #8396440 - Flags: approval-mozilla-aurora?
Hi Anthony, can you review to determine if this bug should be marked as [qa+] or [qa-] for verification.
Flags: needinfo?(anthony.s.hughes)
Whiteboard: p=0 s=it-31c-30a-29b.1
Target Milestone: --- → Firefox 31
Ioana, can you please assign this to someone for verification?
Flags: needinfo?(anthony.s.hughes) → needinfo?(ioana.budnar)
Whiteboard: p=0 s=it-31c-30a-29b.1 → p=0 s=it-31c-30a-29b.1 [qa+]
Cornel, please verify this today.
Flags: needinfo?(ioana.budnar)
QA Contact: cornel.ionce
Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0
Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0
Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0

Verified as fixed on latest Nightly (build ID: 20140326030203).
The thumbnails in about:newtab can now be properly rearranged.

I'll keep an eye on this issue since Firefox 30 is still affected.
Status: RESOLVED → VERIFIED
Whiteboard: p=0 s=it-31c-30a-29b.1 [qa+] → p=0 s=it-31c-30a-29b.1 [qa!]
Attachment #8396440 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Bug 895359 has been backed out from Aurora.
Verified fix on latest Aurora, build ID: 20140331004001.
No longer blocks: fxdesktopbacklog
Flags: firefox-backlog+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: