Closed Bug 604099 Opened 14 years ago Closed 14 years ago

Panning prevented - this._dragger is null

Categories

(Firefox for Android Graveyard :: Panning/Zooming, defect)

x86
macOS
defect
Not set
normal

Tracking

(fennec2.0b2+)

VERIFIED FIXED
Tracking Status
fennec 2.0b2+ ---

People

(Reporter: jdm, Assigned: stechz)

Details

Attachments

(1 file)

Visited news.google.com, zoomed in and then performed a bunch of minute pans around the chrome border while experimenting with snapping.
Mouse clicks also yield the same error.
Zooming still works, but I've lost all ability to manipulate page content.  Refreshing doesn't fix it, and changing pages also doesn't improve the situation.  This should probably block, since this is a serious issue.
tracking-fennec: --- → ?
STR: Zoom in, pan down, zoom out.
Assignee: nobody → ben
tracking-fennec: ? → 2.0b2+
This is not reproducing for me. Could you try on latest nightly?
Yep, I can still repro this really easily on the latest mac nightly.
What is the "zoom in" step? Double tap?
Pinch zoom on my MBP.
I can reproduce this on Linux desktop:
1. Launch Fennec.
2. Go to http://xkcd.com/ (or any zoomable page, as far as I can tell)
3. Press control-shift-p.
4. After the animation finishes, try to pan.
Comment on attachment 484092 [details] [diff] [review]
Panning prevented - this._dragger is null

Matt and I had talked about this bug but I forgot to fix it. doDragStop needs to make sure that we are dragging first.
Attachment #484092 - Flags: review?(mbrubeck)
I missed a step in comment 8: after step 2, open the left sidebar (tab controls).
Comment on attachment 484092 [details] [diff] [review]
Panning prevented - this._dragger is null

This fixes the problem.

I feel like there's still a fragile and unstated invariant in this code, though.  Would it be reasonable to wrap both of the "this._dragger = null;" statements in "if (this._dragger)" blocks to prevent this from cropping up again?  Or is that likely to indicate a problem that'll be worse if we don't catch it?
Attachment #484092 - Flags: review?(mbrubeck) → review+
If those errors didn't occur, we'd be calling dragStop when we really shouldn't be. That makes me nervous. It also makes me think input.js should cry loudly when things aren't as it expects (or: unit tests!).
browser-chrome tests are welcome
Pushed http://hg.mozilla.org/mobile-browser/rev/4e579c4df89b
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
I had repro'ed this on Android yesterday.

Verified w/ today's build that this is fixed:
Mozilla/5.0 (Maemo;Linux armv71; rv:2.0b8pre) Gecko/20101019 Firefox/4.0b8pre Fennec/4.0b2pre
Mozilla/5.0 (Android; Linux armv71; rv2.0b8pre) Gecko/20101019 Firefox/4.0b8pre Fennec/4.0b2pre
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b8pre) Gecko/20101019 Firefox/4.0b8pre Fennec/4.0b2pre
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: