[Bug 71796] Media Viewer: Scroll position is lost on original page after accessing the original file

2014-10-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71796 --- Comment #9 from Tisza Gergő gti...@wikimedia.org --- Opened bug 71868 about the bfcache issue. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.

[Bug 71796] Media Viewer: Scroll position is lost on original page after accessing the original file

2014-10-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71796 Gilles Dubuc gdu...@wikimedia.org changed: What|Removed |Added CC|

[Bug 71796] Media Viewer: Scroll position is lost on original page after accessing the original file

2014-10-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71796 --- Comment #2 from Tisza Gergő gti...@wikimedia.org --- This should not be the default behavior for at least some browsers, as they normally cache the page state in memory for history navigation (bfcache). We should figure out what in

[Bug 71796] Media Viewer: Scroll position is lost on original page after accessing the original file

2014-10-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71796 --- Comment #3 from Gilles Dubuc gdu...@wikimedia.org --- I think the cache is doing what it's supposed to. If you have media viewer open, the page scroll is 0. So at the time you move to another page, that's what the browser remembers and

[Bug 71796] Media Viewer: Scroll position is lost on original page after accessing the original file

2014-10-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71796 --- Comment #4 from Gilles Dubuc gdu...@wikimedia.org --- I.e. the browser can't be aware that media viewer isn't really the page. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.

[Bug 71796] Media Viewer: Scroll position is lost on original page after accessing the original file

2014-10-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71796 --- Comment #5 from Tisza Gergő gti...@wikimedia.org --- As for storing page location in localStorage, we are building hack upon hack to pretend we have a zoom function. If the current state is not acceptable, instead of further twiddling we

[Bug 71796] Media Viewer: Scroll position is lost on original page after accessing the original file

2014-10-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71796 --- Comment #6 from Gilles Dubuc gdu...@wikimedia.org --- I didn't suggest that we should implement this hack, I'm just listing possibilities for posterity :) I personally think that trying to compensate for the browser's natural behavior isn't

[Bug 71796] Media Viewer: Scroll position is lost on original page after accessing the original file

2014-10-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71796 --- Comment #7 from Tisza Gergő gti...@wikimedia.org --- (In reply to Gilles Dubuc from comment #3) I think the cache is doing what it's supposed to. If you have media viewer open, the page scroll is 0. So at the time you move to another

[Bug 71796] Media Viewer: Scroll position is lost on original page after accessing the original file

2014-10-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71796 --- Comment #8 from Gilles Dubuc gdu...@wikimedia.org --- On the topic of relying on the browser, I guess then the solution is to close Media Viewer's UI like ninjas onbeforeunload, but without clearing the hash. This way when navigating back,