Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add preference toggling touch events. #14534

Closed
wants to merge 1 commit into from
Closed

Conversation

@frewsxcv
Copy link
Member

frewsxcv commented Dec 9, 2016

Fixes #11477.


This change is Reviewable

@highfive
Copy link

highfive commented Dec 9, 2016

Heads up! This PR modifies the following files:

  • @fitzgen: components/script/dom/document.rs
  • @KiChjang: components/script/dom/document.rs
@highfive
Copy link

highfive commented Dec 9, 2016

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@@ -7,6 +7,7 @@
"dom.serviceworker.timeout_seconds": 60,
"dom.testable_crash.enabled": false,
"dom.testbinding.enabled": false,
"dom.w3c_touch_events.enabled": true,

This comment has been minimized.

Copy link
@frewsxcv

frewsxcv Dec 9, 2016

Author Member

Pref key name is borrowed from Firefox.

@frewsxcv frewsxcv force-pushed the frewsxcv:touch-events branch from 5433d1e to 88fb8ca Dec 9, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Dec 15, 2016

The latest upstream changes (presumably #14592) made this pull request unmergeable. Please resolve the merge conflicts.

Fixes #11477.
@frewsxcv frewsxcv force-pushed the frewsxcv:touch-events branch from 88fb8ca to 8654592 Dec 15, 2016
@frewsxcv
Copy link
Member Author

frewsxcv commented Dec 15, 2016

Rebased. Conflicts have been addressed.

@@ -2571,7 +2571,7 @@ impl DocumentMethods for Document {
let USVString(url) = self.URL();
Ok(Root::upcast(StorageEvent::new_uninitialized(&self.window, DOMString::from(url))))
},
"touchevent" =>
"touchevent" if PREFS.is_touch_events_enabled() =>

This comment has been minimized.

Copy link
@shinglyu

shinglyu Dec 21, 2016

Member

Is it enough to handle it here? From compositor.rs there seem to be another path that will eventually call document.handle_touch_event() without going though here?

@bors-servo
Copy link
Contributor

bors-servo commented Jan 9, 2017

The latest upstream changes (presumably #14618) made this pull request unmergeable. Please resolve the merge conflicts.

@jdm
Copy link
Member

jdm commented Jan 27, 2017

Closing due to lack of activity.

@jdm jdm closed this Jan 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.