Closed Bug 1073457 Opened 11 years ago Closed 11 years ago

[Text selection] Selection carets does not work on browser with e10s

Categories

(Core :: DOM: Selection, defect, P4)

x86
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla36
Tracking Status
e10s - ---

People

(Reporter: TYLin, Assigned: TYLin)

References

Details

Attachments

(1 file, 1 obsolete file)

SelectionCarets::LaunchLongTapDetector() early returns in [1]. 874 if (XRE_GetProcessType() != GeckoProcessType_Default) { 875 return; 876 } XRE_GetProcessType() returns GeckoProcessType_Content. [1] http://hg.mozilla.org/mozilla-central/file/5e704397529b/layout/base/SelectionCarets.cpp#l874
Priority: -- → P4
Summary: [Text selection] Selection carets does not work browser with e10s → [Text selection] Selection carets does not work on browser with e10s
LaunchLongTapDetector() is used to fire long tap to select word when async pan zoom is not enabled. We should check if async pan zoom is enabled rather than check whether it's on main process. This can also fix selection carets not working on e10s.
Attachment #8519703 - Flags: feedback?(pchang)
Attachment #8519703 - Flags: feedback?(mtseng)
Comment on attachment 8519703 [details] [diff] [review] Launch long tap detector when APZ isn't enabled. Review of attachment 8519703 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/base/SelectionCarets.cpp @@ +119,5 @@ > return; > } > > + docShell->GetAsyncPanZoomEnabled(&mAsyncPanZoomEnabled); > + Looks like this function doesn't care about "layers.async-pan-zoom.enabled". So maybe we should do this: docShell->GetAsyncPanZoomEnabled(&mAsyncPanZoomEnabled); mAsyncPanZoomEnabled = mAsyncPanZoomEnabled && gfxPrefs::AsyncPanZoomEnabled(); What do you think?
Attachment #8519703 - Flags: feedback?(mtseng) → feedback+
Agree. We should check gfxPrefs::AsyncPanZoomEnabled().
Status: NEW → ASSIGNED
QA Contact: tlin
LaunchLongTapDetector() is used to fire long tap to select word when async pan zoom is not enabled. We should check if async pan zoom is enabled rather than check whether it's on main process. This can also fix selection carets not working on e10s.
Attachment #8519703 - Attachment is obsolete: true
Attachment #8519703 - Flags: feedback?(pchang)
Attachment #8519754 - Flags: review?(roc)
Assignee: nobody → tlin
QA Contact: tlin
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: