Open Bug 1327618 Opened 7 years ago Updated 2 years ago

Wrong scroll positions in history items when I duplicate the tab

Categories

(Firefox :: Tabbed Browser, defect)

defect

Tracking

()

People

(Reporter: arni2033, Unassigned)

Details

>>>   My Info:   Win7_64, Nightly 49, 32bit, ID 20160526082509
STR_1:  (always takes scroll position from current history item)
1. Open url [1].   (I'll refer to this 1st item in tab history as "A_1")
2. Scroll the page to the center, so that Link was visible
3. Click the Link to navigate to another page.   (I'll refer to that 2nd item in tab history as "B_1")
4. Scroll 2nd item in tab history to the bottom, so that text "Nothing here" became visible
5. Middle-click on Back button in urlbar

AR:  Step 5 - browser creates a duplicate tab with 2 history items: A_2 (current) and B_2   [OK]
              A_2 is scrolled to the end.   [not ok]

ER:  Step 5 - A_2 should be scrolled to the center (see Step 2)

> [1] data:text/html,<a href='data:text/html,<a id="A">Nothing here</a><style>body{padding-top:10000px}'>Link</a><style>body{padding:5000px 0px}



STR_2:  (looses scroll position in other history items)
1. Open url [1].   (I'll refer to this 1st item in tab history as "A_1")
2. Scroll the page to the center, so that Link was visible
3. Click the Link to navigate to another page.   (I'll refer to that 2nd item in tab history as "B_1")
4. Scroll 2nd item in tab history to the bottom, so that text "Nothing here" became visible
5. Middle-click on Reload button in urlbar
6. Click on Back button in urlbar to navigate back in tab history

AR:
 Step 5 - browser creates a duplicate tab with 2 history items: A_2 and B_2 (current)   [OK]
          B_2 is scrolled to the end.   [OK]
 Step 6 - Browser navigates to history item A_2. A_2 is scrolled to the beginning

ER:
 Step 6 - A_2 should be scrolled to the center (see Step 2)
No longer blocks: 1277113
Component: Untriaged → Session Restore
I don't think 'duplicate tab' is part of sessionstore, but of tabbed browser instead.
Component: Session Restore → Tabbed Browser
Summary: Session restore messes up scroll position in history items when I duplicate the tab → Wrong scroll positions in history items when I duplicate the tab
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.