Closed Bug 1114666 Opened 11 years ago Closed 10 years ago

[osx] Scrolling a frame left or right with a two-finger swipe can move backwards or forwards in browser history

Categories

(Core :: Widget: Cocoa, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: wilsonpage, Unassigned)

References

Details

(Whiteboard: [STR in comment #15] [tpi:?])

Attachments

(2 files)

Component: General → Widget: Cocoa
Product: Firefox → Core
Whiteboard: DUPEME
I tested this demo on OS X 10.8.5 and 10.7.5, in the current FF release (34.0.5) and a recent mozilla-central nightly (in e10s mode, which is the default), and it seems to work just fine. Which just goes to show that a raw, uncommented demo is generally *not* an adequate bug report. You also didn't say what version(s) of Firefox you tested with, or which version(s) of OS X you tested on. So please provide the following information: 1) What version(s) of Firefox you tested with, on which version(s) of OS X. 2) A precise, detailed written description of the problem, with steps to reproduce it (using your demo). Finally, your demo page displays the following error message: "This bin was created anonymously and its free preview time has expired." If (as it appears) your demo is just an *.html file, you can use "add an attachment" above to attach it to this bug, and we'll have a permanent copy.
Attached file jsbin.tujoyo.1.html —
Also live (registered) http://jsbin.com/tujoyo/1/quiet
- I'm using OSX Yosemite (10.10.1) - With latest Nightly v37.0a1 STR: - Attempt to scroll the x-axis of the red overflowing div. ACTUAL: X-axis scroll bar appears, but div doesn't scroll EXPECTED: Div should scroll horizontally -- This could be to do with the OSX 'swipe between pages' option to navigate back/forwards in history conflicting with scroll. FYI this isn't a recent regression, it's been happening for a few months.
Attached image swipe-between-pages-option.png —
Flags: needinfo?(smichaud)
WFM: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0 on OS X 10.10.1
> STR: > > - Attempt to scroll the x-axis of the red overflowing div. What, precisely, do you mean by this? Please provide individual steps. Do you use a mouse or a trackpad? Where, exactly, do you first move the mouse/trackpad pointer, and what, exactly, do you do from that point?
Flags: needinfo?(smichaud)
> WFM Does this mean you don't see the bug? Or does it mean you do see it?
(In reply to Steven Michaud from comment #6) > > STR: > > > > - Attempt to scroll the x-axis of the red overflowing div. > > What, precisely, do you mean by this? Please provide individual steps. 1. Make sure option in attachment 8540752 [details] in on (may not be related) 2. Place cursor in center of red div 2. Swipe trackpad horizontally EXPECTED: Div should scroll horizontally ACTUAL: Scroll bars sometimes appear. Div doesn't scroll. Sometime back/forward history function invoked instead of scroll. > Do you use a mouse or a trackpad? Where, exactly, do you first move the > mouse/trackpad pointer, and what, exactly, do you do from that point? Trackpad I really don't know what else I can say!
Flags: needinfo?(smichaud)
(In reply to José Jeria from comment #5) > WFM: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 > Firefox/37.0 on OS X 10.10.1 Do you have option in attachment 8540752 [details] turned on?
Flags: needinfo?(bugzilla)
> option in attachment 8540752 [details] Umm, what is this?
Flags: needinfo?(smichaud)
(In reply to Steven Michaud from comment #10) > > option in attachment 8540752 [details] > > Umm, what is this? Sorry, meant this attachment 8540755 [details].
Flags: needinfo?(smichaud)
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(smichaud)
Flags: needinfo?(bugzilla)
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
I don't think this is a dupe of bug 1115532. I can still re-create it, even in a non-e10s window. The bug is not apparent when disabling the 'Swipe between pages' option (highlighted in attachement 8540755).
Status: RESOLVED → REOPENED
Flags: needinfo?(smichaud)
Resolution: DUPLICATE → ---
(In reply to Wilson Page [:wilsonpage] from comment #13) > I don't think this is a dupe of bug 1115532. I can still re-create it, even > in a non-e10s window. The bug is not apparent when disabling the 'Swipe > between pages' option (highlighted in attachement 8540755). * attachment 8540755 [details]
> http://jsbin.com/tujoyo/1/quiet I just tested with this in today's mozilla-central nightly, in a non-e10s window, on OS X 10.10.2. And yes, I now see the bug, and agree that it's not a dup of bug 1115532. But the reason it took me so long to figure this out is that your descriptions (even all taken together) are so inadequate. Here's my STR. It should probably work on any version of OS X, and in any version of Firefox that supports the two-finger horizontal "swipe between pages". (And yes, I do have Swipe Between Pages set to its default of "Scroll left or right with two fingers".) 1) First visit this comment (https://bugzilla.mozilla.org/show_bug.cgi?id=1114666#c15). 2) Click on this link (http://jsbin.com/tujoyo/1/quiet). 3) Type or paste www.mozilla.org into the location bar and hit Return. 4) Click the back button to go back to http://jsbin.com/tujoyo/1/quiet. You've now set things up so that there are pages on either side of http://jsbin.com/tujoyo/1/quiet in the browser's history buffer. 5) Use the two-finger swipe to scroll up or down just a little bit (just enough to make the horizontal scrollbar appear). If the horizontal scrollbar isn't already all the way to the right, scroll it all the way to the right in one, smooth leftward horizontal two-finger swipe. You should have no trouble doing this -- the gesture won't move you to the next page in the browser's history buffer. 6) Now, with the horizontal scrollbar all the way to the right, do another left two-finger swipe. *This* time either nothing will happen or you'll go to the next page in the browser's history buffer. 7) If you've gone to the next page hit the back button. 8) Use a rightward two-finger swipe to scroll the red div all the way to the left -- until the horizontal scrollbar is all the way to the left. Now swipe right again and either nothing will happen or you'll move to the previous page in the browser's history buffer. This behavior would be correct if it were the entire page at http://jsbin.com/tujoyo/1/quiet that scrolls left and right. The bug is that we're behaving that way when the red frame/div scrolls left and right.
Flags: needinfo?(smichaud)
Summary: [osx] Unable to horizontally scroll a container using the track-pad → [osx] Scrolling a frame left or right with a two-finger swipe can move backwards or forwards in browser history
> It should probably work on any version of OS X, and in any version of Firefox Actually I need to check if this isn't a more recent regression in Firefox.
Whiteboard: [STR in comment #15]
Status: REOPENED → NEW
I bet this bug also happens on Windows and Linux. Anyone have a way to test? (I'm afraid I don't.)
(Following up comment #16) This bug goes back to the earliest days of Firefox's support, when bug 668953 first landed -- to Firefox 9 and the 2011-08-09-03-07-51-mozilla-central nightly.
I've thought more about this, and figured out how it might be Mac-only. So I'm going to tentatively assign it to myself. But I'd still very much like to see the results of tests on other platforms.
Assignee: nobody → smichaud
Someone from QA please test the STR from comment #15 on Windows and Linux, if that's possible. You'll need a laptop with a trackpad, which is running Windows or Linux "natively" (not in a VM). I don't know if Windows or Linux has a gesture corresponding exactly to the Mac two-finger horizontal swipe -- which can mean either "scroll horizontally" or "make the current page go backwards or forwards in the history cache".
Keywords: qawanted
Steven any chance we can push some movement on this one?
Flags: needinfo?(smichaud)
Clearly the "qawanted" has had no effect :-( In any case I now suspect this is a Mac-only bug (and not cross-platform), and that I wrote the code that needs to be modified. So it's probably best to just leave this on my list. I'll get to it eventually (hopefully in a few weeks).
Flags: needinfo?(smichaud)
(In reply to Wilson Page [:wilsonpage] from comment #3) > STR: > > - Attempt to scroll the x-axis of the red overflowing div. In which direction? Scrolling to the right (by moving my fingers left) works fine for me. If I try to scroll it to the left when it already is at its left edge, I move backwards in the browser history. That's by design, I think.
(In reply to Markus Stange [:mstange] from comment #24) > (In reply to Wilson Page [:wilsonpage] from comment #3) > > STR: > > > > - Attempt to scroll the x-axis of the red overflowing div. > > In which direction? Scrolling to the right (by moving my fingers left) works > fine for me. > If I try to scroll it to the left when it already is at its left edge, I > move backwards in the browser history. That's by design, I think. Pushing my two fingers across the track-pad from left to right fails to scroll the horizontal axis. The history gesture logic seems to be swallowing the events.
(In reply to Markus Stange [:mstange] from comment #24) > If I try to scroll it to the left when it already is at its left edge, I > move backwards in the browser history. That's by design, I think. Agreed that is the designed behaviour, but I'm not experiencing that. Are you on OSX with the back/forward gestures enabled?
(In reply to Wilson Page [:wilsonpage] from comment #25) > Pushing my two fingers across the track-pad from left to right Ok, then let's be even more explicit about this: Do you have "Scroll direction: natural" checked in the "Point & Click" settings of your trackpad settings? (In reply to Wilson Page [:wilsonpage] from comment #26) > (In reply to Markus Stange [:mstange] from comment #24) > > If I try to scroll it to the left when it already is at its left edge, I > > move backwards in the browser history. That's by design, I think. > > Agreed that is the designed behaviour, but I'm not experiencing that. Are > you on OSX with the back/forward gestures enabled? Yes I am, and I have e10s off.
Note that the true STR for this bug is in comment #15, and that (despite appearances) this bug is actually very simple: Using swipe-left or swipe-right to scroll a component object (left or right) can end up scrolling the entire page back or forwards in history.
Okay. I don't consider that behavior to be a bug, for what it's worth, and from comment 26 it sounds like Wilson agrees with me. So there still must be something I'm missing.
See bug 1146196 for a much more egregious case of the same bug.
(In reply to Steven Michaud from comment #30) > See bug 1146196 for a much more egregious case of the same bug. I agree that that one is a bug - in that case the mouse is completely outside the page.
I still think both are bugs. We shouldn't let a horizontal swipe take the whole page backwards or forwards in history if the mouse is over a frame (or other kind of page component) that can be scrolled left or right, also using a horizontal swipe.
> in that case the mouse is completely outside the page Really? It's only outside of the page whose content is being debugged -- not of the entire page (including the frame in which the debugger is running).
To me, the "browser" element of the tab defines the bounds of the page. The debugger is outside of that browser element. I don't consider the behavior in comment 15 a bug for the following reason: Say you have a scrollbox that is scrolled all the way to the left (as in this bug's testcase), but the page itself is also scrollable and is not at the very left. Now left-swiping over the scrollbox will scroll the outer page. History scrolling is supposed to feel very similar to scrolling the outer page - you just move the page itself further. I think once we finally have a Safari-style animation for history swiping, which gives feedback about what we're doing before the fingers are lifted, people will be much less likely to consider this behavior a bug.
I just checked Safari's behavior with this bug's testcase, and it behaves as you expect, Markus: It does let you "scroll" the page backwards or forwards in history if you've already scrolled the frame all the way to the left or the right -- even if the mouse is still over the frame. And I agree that this behavior will be less confusing once we also have Safari-style animation for history swiping. But we need to find other testcases, where the scrollable frame doesn't fill the entire page, and/or where the page also contains other components. Let's see how Safari behaves with *those*, and if we think that behavior is correct.
(In reply to Markus Stange [:mstange] from comment #34) > To me, the "browser" element of the tab defines the bounds of the page. The > debugger is outside of that browser element. > > I don't consider the behavior in comment 15 a bug for the following reason: > Say you have a scrollbox that is scrolled all the way to the left (as in > this bug's testcase), but the page itself is also scrollable and is not at > the very left. Now left-swiping over the scrollbox will scroll the outer > page. > History scrolling is supposed to feel very similar to scrolling the outer > page - you just move the page itself further. > > I think once we finally have a Safari-style animation for history swiping, > which gives feedback about what we're doing before the fingers are lifted, > people will be much less likely to consider this behavior a bug. I think we all agree when scrollable child elements reach their max/min scroll position, scrolling should then begin on the closest scrollable ancestor. This bug is not disputing that. What is broken here is that, in the test-case, when moving fingers LEFT TO RIGHT, the red div fails the scroll horizontally at all.
(In reply to Markus Stange [:mstange] from comment #27) > (In reply to Wilson Page [:wilsonpage] from comment #25) > > Pushing my two fingers across the track-pad from left to right > > Ok, then let's be even more explicit about this: Do you have "Scroll > direction: natural" checked in the "Point & Click" settings of your trackpad > settings? It is UNCHECKED. This could be causing some major confusion!
I tried once again in a non-e10s window and this in *not* reproducable. I have no idea what's going on. Apologies if this was a fault on my part, but I'm very sure I tested non-e10s from the start. Really confused now.
Status: NEW → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → DUPLICATE
This bug has morphed since you opened it. As such, it's not a dup of any other bug (that I'm aware of). If Markus is right, it may be INVALID. But not all the evidence is in yet.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Status: REOPENED → NEW
At some point I'll open a new bug to replace this one (or the one it's morphed into). Then I'll close it as TOTALLYCONFUSING, or something along those lines :-)
On Mac 10.11.2, with latest Nightly 49.0a1, 20160511030221 I am occasionally able to reproduce this bug when OS X Preferences | Trackpad | Scroll & Zoom | Scroll Direction : Natural is set and OS X Preferences | Trackpad | More Gestures | Swipe between pages is checked and set to "scroll left or right with two fingers. (I generally leave the later unchecked to avoid this random unexpected bug behavior).
Keywords: qawanted
Whiteboard: [STR in comment #15] → [STR in comment #15] [tpi:?]
Assignee: smichaud → nobody
Markus, what do think the correct scroll behavior is here? If I have the mouse sitting in a sub frame with the trackpad history navigation option set, should we navigate the page or scroll the frame? AFAICT, Safari always navigates history.
Flags: needinfo?(mstange)
We should navigate history, because the frame is not scrollable in that direction. If it were, we wouldn't be activating the swipe-history behavior.
Status: NEW → RESOLVED
Closed: 11 years ago → 10 years ago
Flags: needinfo?(mstange)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: