Closed
Bug 1143665
Opened 10 years ago
Closed 10 years ago
Remove the scroll position passed around in the scrollview event
Categories
(Core :: Panning and Zooming, defect)
Core
Panning and Zooming
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
roc
:
review+
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
See bug 1142926 comment 4 and bug 1142926 comment 7. The scrollview event dispatched starting at [1] includes a scroll position x,y which is nonsensical because it doesn't specify which scrollframe is being scrolled. Without this information the scroll position cannot possibly be interpreted in a sensical manner, leading to a footgun if anybody tries to use these values. Since the values are not being used anymore we should just remove them.
[1] mxr.mozilla.org/mozilla-central/source/gfx/layers/apz/util/APZEventState.cpp?rev=f9b76a07fcc6#327
Updated•10 years ago
|
Whiteboard: [gfx-noted]
Assignee | ||
Comment 1•10 years ago
|
||
This rips out the stuff on the gecko side. I noticed that in gaia/tv_apps/smart-system/js/text_selection_dialog.js there is still some code that uses the x and y scroll offsets - does that code need updating? It looks like a fork of gaia/apps/system/js/text_selection_dialog.js that is out of date.
Attachment #8580915 -
Flags: feedback?(tlin)
Attachment #8580915 -
Flags: feedback?(pchang)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → bugmail.mozilla
Updated•10 years ago
|
Attachment #8580915 -
Flags: feedback?(pchang) → feedback?(mtseng)
Comment 2•10 years ago
|
||
Comment on attachment 8580915 [details] [diff] [review]
Gecko patch
Review of attachment 8580915 [details] [diff] [review]:
-----------------------------------------------------------------
This patch looks good to me.
Attachment #8580915 -
Flags: feedback?(tlin) → feedback+
Comment 3•10 years ago
|
||
I don't know how gaia/tv_apps/smart-system/js/text_selection_dialog.js is being used.
George, John, need your feedback about comment 1.
Flags: needinfo?(im)
Flags: needinfo?(gduan)
Comment 4•10 years ago
|
||
Comment on attachment 8580915 [details] [diff] [review]
Gecko patch
Review of attachment 8580915 [details] [diff] [review]:
-----------------------------------------------------------------
Kats, your probably forgot to add those changes to SelectionCarets.h in this patch.
Comment 5•10 years ago
|
||
Comment on attachment 8580915 [details] [diff] [review]
Gecko patch
LGTM.
Attachment #8580915 -
Flags: feedback?(mtseng) → feedback+
Comment 6•10 years ago
|
||
We may not need it in smart-system. I will make a patch to remove that from smart-system.
Flags: needinfo?(im)
Comment 7•10 years ago
|
||
BTW, we are going to merge smart system back to system app.
Comment 8•10 years ago
|
||
TextSelectionDialog doesn't need value of scrollX and scrollY.
Flags: needinfo?(gduan)
Assignee | ||
Comment 9•10 years ago
|
||
Fixed up the header and another call site - not sure why I didn't catch those before. Based on the fact that the scroll position isn't used anywhere (the only use site will be removed as per comment 6) I think this should be safe to land now.
Attachment #8580915 -
Attachment is obsolete: true
Attachment #8582391 -
Flags: review?(roc)
Attachment #8582391 -
Flags: review?(roc) → review+
Assignee | ||
Comment 10•10 years ago
|
||
Comment on attachment 8582391 [details] [diff] [review]
Remove scroll position from scrollviewchange event
Hm, the prevent_webidl_changes.py hg hook tells me I can't land this without DOM peer review because it touches a .webidl file.
Attachment #8582391 -
Flags: review?(ehsan)
Updated•10 years ago
|
Attachment #8582391 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 11•10 years ago
|
||
Comment 12•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•