Closed
Bug 609583
Opened 15 years ago
Closed 14 years ago
Text selection functionality doesn't work
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: starkov.egor, Unassigned)
References
Details
Attachments
(2 files)
937 bytes,
patch
|
benjamin
:
review-
|
Details | Diff | Splinter Review |
754 bytes,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.5
Build Identifier:
PRECONDITION: pref("browser.tabs.remote", true);
I work on extension that allows fennec to make text selection and found that selection functionality doesn't work properly at the moment because layout jumps away when I start to select (send mousedown and then mousemove events). nsFrame::HandleDrag function handles the selection and also keeps it always visible by calling StartAutoScrollTimer. The problem is that real scrollport is not changed in current e10s implementatio and always stays on top, AutoScroll feature makes layout jump and changes scroll position.
Can we workaround or disable this selection scroll feature until real scrollport will be fixed?
Reproducible: Always
![]() |
||
Updated•15 years ago
|
Product: Core → Fennec
QA Contact: general → general
Version: unspecified → Trunk
Reporter | ||
Comment 1•15 years ago
|
||
Attachment #488201 -
Flags: review?(jones.chris.g)
I don't have enough layout background to review your patch, and I barely understand the problem you're describing. Is your extension running in the chrome process? (I think yes.)
Initially though, using mousedown+mousemove in your extensions to select text seems off to me, whether in the chrome or content process. What are you trying to do? Do we have other text-selection APIs that would work better?
Comment 3•15 years ago
|
||
Comment on attachment 488201 [details] [diff] [review]
workaround patch v1
Use XRE_GetProcessType instead of nsIXULRuntime (much cheaper!), and please request the next review from roc.
Attachment #488201 -
Flags: review?(jones.chris.g) → review-
Reporter | ||
Comment 4•15 years ago
|
||
My Fennec extension works in chrome process and it sends artificial "mousedown + mousemove" events to imitate text selection in firefox. The thing is AutoScroll feature that changes scroll to keep selection always visible doesn't work now because real scrollport is not updated in electrolysis. So I suggest to disable this feature for now until scrollport issue will be fixed. Patch is proposal of doing it.
Reporter | ||
Comment 5•15 years ago
|
||
Attachment #488479 -
Flags: review?
Reporter | ||
Updated•15 years ago
|
Attachment #488479 -
Flags: review? → review?(roc)
This is a hack that will break things for anyone using content processes outside of Fennec. I don't want to do this.
Why can't we just fix the problem with the scrollport?
Comment 7•15 years ago
|
||
> Why can't we just fix the problem with the scrollport?
I think because we never change scrollPort position in Fennec.
cjones said that it is not critical feature and iPhone browser does the same
Then maybe we need to check for that more explicitly.
![]() |
||
Updated•15 years ago
|
Status: UNCONFIRMED → NEW
tracking-fennec: --- → ?
Ever confirmed: true
![]() |
||
Updated•15 years ago
|
Flags: in-testsuite?
(In reply to comment #7)
> > Why can't we just fix the problem with the scrollport?
>
> I think because we never change scrollPort position in Fennec.
> cjones said that it is not critical feature and iPhone browser does the same
That's not at all what I said. I have no idea how mobilesafari reports scroll offsets; our discussion was wrt rendering of position:fixed elements. At any rate, the frontend folks plan on moving (back to) an implementation that uses scrollTo/scrollBy instead of shifting the displayport around, not sure how much if at all that fixes the issues here.
Comment 10•15 years ago
|
||
this is not a blocking bug. Text selection in content in Fennec is not supported.
tracking-fennec: ? → 2.0-
Updated•14 years ago
|
Whiteboard: [fennec-4.1?]
Comment 13•14 years ago
|
||
I think bug 652168 is the way forward
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
Whiteboard: [fennec-4.1?]
tracking-fennec: - → ---
Attachment #488479 -
Flags: review?(roc)
You need to log in
before you can comment on or make changes to this bug.
Description
•