Closed
Bug 972081
Opened 11 years ago
Closed 11 years ago
Highlighting seems broken with APZC enabled
Categories
(Core :: Panning and Zooming, defect)
Core
Panning and Zooming
Tracking
()
Tracking | Status | |
---|---|---|
b2g-v1.3T | --- | fixed |
People
(Reporter: vingtetun, Assigned: vingtetun)
References
Details
Attachments
(2 files, 2 obsolete files)
(deleted),
patch
|
kats
:
review+
fabrice
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
There is a few different things that looks broken with APZC. One is related to the fact that we don't use the Kinetic helper and so it never reset it's values and it ends up clearing the highlight instantly. The other is related to how we dispatch the mouse events right after a touchend. This does not let the time for the content to highlight itself.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8375185 -
Flags: review?(bugmail.mozilla)
Comment 2•11 years ago
|
||
Comment on attachment 8375185 [details] [diff] [review]
highlight.fixes.patch
Review of attachment 8375185 [details] [diff] [review]:
-----------------------------------------------------------------
I'm not too familiar with the BEP.js changes so you might want another reviewer for that. The changes look sane to me though. Some comments on TabChild changes - I'd like to see an updated version of the patch before r+'ing.
::: dom/ipc/TabChild.cpp
@@ +292,5 @@
> , mUpdateHitRegion(false)
> , mContextMenuHandled(false)
> , mWaitingTouchListeners(false)
> {
> + Preferences::AddIntVarCache(&sActiveDurationMs,
This uses sActiveDurationMs instead of mActiveDurationMs. I think I would prefer making it static, in case TabChild instances can be destroyed on non-B2G platforms. We don't want to leave a instance variable from a destroyed object in the IntVarCache. Alternatively, if there's some way to clear the intvarcache in the TabChild destructor that's fine too.
@@ +1628,3 @@
>
> + mSingleTapTimer = NewRunnableMethod(this,
> + &TabChild::FireSingleTapEvent);
You can pass currentPoint as an additional argument to NewRunnableMethod, so that you don't need mSingleTapPoint at all. See for instance the NewRunnableMethod invocation in AsyncPanZoomController::OnSingleTapUp.
Also, mSingleTapTimer doesn't look needed; it's assigned here but never cleared which seems like an unncessary footgun. Just use a local var instead.
Attachment #8375185 -
Flags: review?(bugmail.mozilla) → feedback+
Assignee | ||
Comment 3•11 years ago
|
||
Thanks for the quick feedback. I will addressed your comments and ask to fabrice for the related BEC changes. I'm pretty sure he will be more than happy to kill the event loop spinning code.
Assignee | ||
Comment 4•11 years ago
|
||
Patch v2.
Attachment #8375185 -
Attachment is obsolete: true
Attachment #8375816 -
Flags: review?(fabrice)
Attachment #8375816 -
Flags: review?(bugmail.mozilla)
Assignee | ||
Comment 5•11 years ago
|
||
And voila the v3!
Attachment #8375816 -
Attachment is obsolete: true
Attachment #8375816 -
Flags: review?(fabrice)
Attachment #8375816 -
Flags: review?(bugmail.mozilla)
Attachment #8375829 -
Flags: review?(fabrice)
Attachment #8375829 -
Flags: review?(bugmail.mozilla)
Comment 6•11 years ago
|
||
Comment on attachment 8375829 [details] [diff] [review]
highlight.fixes.patch
Review of attachment 8375829 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM, thanks!
Attachment #8375829 -
Flags: review?(bugmail.mozilla) → review+
Updated•11 years ago
|
Attachment #8375829 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Assignee: nobody → 21
Status: NEW → ASSIGNED
Comment 8•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Updated•11 years ago
|
Updated•11 years ago
|
blocking-b2g: --- → 1.3T?
Comment 9•11 years ago
|
||
nominating per https://bugzilla.mozilla.org/show_bug.cgi?id=975923#c30
Updated•11 years ago
|
blocking-b2g: 1.3T? → 1.3+
Comment 12•11 years ago
|
||
1.3T+
James, can your team uplift this to resolve Bug 975923? thanks
blocking-b2g: 1.3+ → 1.3T+
Flags: needinfo?(james.zhang)
Comment 13•11 years ago
|
||
(In reply to Joe Cheng [:jcheng] from comment #12)
> 1.3T+
> James, can your team uplift this to resolve Bug 975923? thanks
Ying will.
Flags: needinfo?(james.zhang) → needinfo?(ying.xu)
Comment 14•11 years ago
|
||
patch for 1.3t, there are some conflicts and I fixed them
Please review it again
Attachment #8394685 -
Flags: review?(fabrice)
Comment 15•11 years ago
|
||
Fabrice - Did you intend this blocking decision to be 1.3+ or 1.3T+?
Flags: needinfo?(fabrice)
Comment 16•11 years ago
|
||
Comment on attachment 8394685 [details] [diff] [review]
972081_v1.3t.patch
Review of attachment 8394685 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks Ying!
Attachment #8394685 -
Flags: review?(fabrice) → review+
Comment 17•11 years ago
|
||
Flags: needinfo?(fabrice)
Comment 18•11 years ago
|
||
Verified fixed against the original STR in 975923.
Status: RESOLVED → VERIFIED
Comment 19•11 years ago
|
||
...although we should probably do a testpass around APZC to verify this functionality on Tarako, as it's blocking us there. Let's investigate this some more.
Flags: needinfo?(jhammink)
Keywords: qawanted
Comment 20•11 years ago
|
||
QA Wanted isn't the right flag here - this patch is already landed here.
Keywords: qawanted
Updated•11 years ago
|
Flags: needinfo?(jhammink)
Depends on: 1047303
You need to log in
before you can comment on or make changes to this bug.
Description
•