Closed Bug 1539497 Opened 6 years ago Closed 6 years ago

navigator.maxTouchPoints returns 0 in child process

Categories

(Core :: DOM: Content Processes, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

...but it returns the right value in parent process, if one is using touch screen.
https://patrickhlauke.github.io/touch/tests/pointer-multitouch-detect.html

Blocks: 822898

well, this isn't really bug 822898 related, but later regression.

(In reply to Olli Pettay [:smaug] from comment #1)

well, this isn't really bug 822898 related, but later regression.

e10s support was added by bug 1137555. But it seems to be broken at 2017/05 (we cannot use mozregression for older build). I suspect bug 1347035...

Assignee: nobody → bugs

Adding two tests, browser-chrome test to test this bug that a newly opened tab gets the right
maxTouchPoints, and another test for window.open case to ensure we don't regress that case either.

This is a regression from bug 1347035.

We don't have very nice way to pass this kind of data around, at least not yet. Fission may make this simpler.
The patch makes TabContext to know the number of points, and BrowserChild happens to extend that class, so we can remove the getter/setter from BrowserChild.

Regressed by: 1347035
Keywords: regression

And need to merge to new staticprefs syntax

Attachment #9078841 - Attachment is obsolete: true
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/f9cfb724dd9a navigator.maxTouchPoints returns 0 in child process, r=ehsan
Attachment #9079193 - Attachment is obsolete: true
Attachment #9079193 - Attachment is obsolete: false
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: