ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: Deprecated warning on Chrome

Open 5amfung opened this issue 11 years ago • 46 comments

Type: bug

Platform: desktop browser

Occasionally I see this warning on Chrome Version 45.0.2454.46 beta (64-bit) running on OSX 10.10.4.

'Touch.webkitRadiusX' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.radiusX' instead. ionic.bundle.js:1162

5amfung avatar Aug 21 '15 18:08 5amfung

+1

Additionally i see: SVG's SMIL animations (, , etc.) are deprecated and will be removed. Please use CSS animations or Web animations instead. ionic.bundle.js:12005

kreck avatar Sep 02 '15 09:09 kreck

+1

gigocabrera avatar Sep 02 '15 23:09 gigocabrera

That is now in chrome

quedicesebas avatar Sep 03 '15 05:09 quedicesebas

This completely disables to propagation of click events on Google Maps when developing in the browser, using the app on a physical Android device, and iOS emulator. In short, it completely breaks my app.

adamjaffeback avatar Sep 03 '15 18:09 adamjaffeback

Do you have an example of where I can see this? The SMIL animations we know about, but the webkitRadius is new to me.

mhartington avatar Sep 03 '15 18:09 mhartington

Interestingly, the app works expectedly in Safari. It is working correctly in a coworker's Chrome.

For me, it works in Chrome, but only when I'm not emulating a device. Flow in video below (for some reason the GIF conversion really slowed stuff down):

  • ionic serve (Chrome), app opens with console but no device emulation.
  • Marker is clickable. Refresh screen.
  • Click different marker. Clickable.
  • Start emulating iPhone 6 using Dev Tools.
  • Refresh page. Click marker, not clickable.
  • Click second marker, not clickable
  • Emulate Android. Refresh. Marker still not clickable. ionictoucherror

adamjaffeback avatar Sep 03 '15 19:09 adamjaffeback

Is this happening when on an actual device?

mhartington avatar Sep 03 '15 19:09 mhartington

Yes, on Android. Haven't tested on iOS device yet. Works fine in Xcode. Standby though, I'm searching through commits to rule out my user error (probable).

adamjaffeback avatar Sep 03 '15 19:09 adamjaffeback

Can you provide a minimal example that demos the problem

mhartington avatar Sep 03 '15 20:09 mhartington

Found the issue rolling back through commits. This started when I included angular-material to add some styling. Found the soluton in their issues:

app = angular.module('MyApp', ['ngMaterial'])
      .config(function( $mdGestureProvider ) {
          $mdGestureProvider.skipClickHijack();
      });

Thanks for your attentiveness @mhartington! You're a class-act!

adamjaffeback avatar Sep 03 '15 20:09 adamjaffeback

Thanks for the nice words :grin:

So just to be clear, your issue was with angular material? Not with ionic?

mhartington avatar Sep 03 '15 20:09 mhartington

I don't use angular material. I only use ionic. Let me prepare an example that you can look at

gigocabrera avatar Sep 03 '15 20:09 gigocabrera

Tested in Chrome with Developer Tools

  1. https://brilliant-inferno-1044.firebaseapp.com/
  2. Login using [email protected] / 123
  3. You will land on the Accounts screen, tap on the white area On the console, you will see the warning:

SVG's SMIL animations (, , etc.) are deprecated and will be removed. Please use CSS animations or Web animations instead. ionic.bundle.js:1162 'Touch.webkitRadiusX' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.radiusX' instead. ionic.bundle.js:1162 'Touch.webkitRadiusY' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.radiusY' instead. ionic.bundle.js:1162 'Touch.webkitRotationAngle' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.rotationAngle' instead. ionic.bundle.js:1162 'Touch.webkitForce' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.force' instead.

gigocabrera avatar Sep 03 '15 20:09 gigocabrera

I can confirm we just started getting this about 2-3 days ago for some reason. The app seems to be working fine but the error came out of nowhere. We hadn't updated the framework or anything.

rlstrowbridge avatar Sep 03 '15 23:09 rlstrowbridge

Alright, so we can confirm this issue. Thanks for letting us know all.

mhartington avatar Sep 03 '15 23:09 mhartington

Hi,

it seems you can have this warning with the sidemenu starter template, when you open the side menu the first time in chrome desktop (I haven't tried on a mobile device). Chrome was recently updated, I guess that's one of the changes, adding a deprecation warning.

ionic.bundle.js:1162 'Touch.webkitRadiusX' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.radiusX' instead.
ionic.bundle.js:1162 'Touch.webkitRadiusY' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.radiusY' instead.
ionic.bundle.js:1162 'Touch.webkitRotationAngle' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.rotationAngle' instead.
ionic.bundle.js:1162 'Touch.webkitForce' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.force' instead.

EDIT: I have seen other warnings in other circumstances, but I don't remember which ones. I guess the set of deprecated webkit properties is much larger, and this is just an easy-to-find sample.

EDIT 2: I reread the above messages, and I remember one of the other messages I got in my app was: SVG's SMIL animations (<animate>, <set>, etc.) are deprecated and will be removed. Please use CSS animations or Web animations instead.

EDIT 3: I also got the following:

ionic.bundle.js:1162 'webkitMovementX' is deprecated. Please use 'movementX' instead.
ionic.bundle.js:1162 'webkitMovementY' is deprecated. Please use 'movementY' instead.

And this one, but maybe unrelated to this topic:

Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

ghost avatar Sep 04 '15 12:09 ghost

I am getting this same issue and out of no where. My log is reading:

ionic.bundle.js:12005 SVG's SMIL animations (, , etc.) are deprecated and will be removed. Please use CSS animations or Web animations instead.

and then:

ionic.bundle.js:21157 Error: permission_denied: Client doesn't have permission to access the desired data. at Error (native) at b.G (http://localhost:8100/js/firebase-web.js:121:36) at Object.G (http://localhost:8100/js/firebase-web.js:202:386) at http://localhost:8100/js/firebase-web.js:187:502 at Ch.g.Id (http://localhost:8100/js/firebase-web.js:192:104) at qh.Id (http://localhost:8100/js/firebase-web.js:183:364) at ih.qh.Fa.Bh.t as xg at lh (http://localhost:8100/js/firebase-web.js:175:464) at WebSocket.ih.open.b.ua.onmessage (http://localhost:8100/js/firebase-web.js:174:245)(anonymous function) @ ionic.bundle.js:21157 FirebaseArray.$$error @ angularfire.js:414 (anonymous function) @ angularfire.js:701 (anonymous function) @ angularfire.js:1897 parent.$get.Scope.$eval @ ionic.bundle.js:24673 parent.$get.Scope.$digest @ ionic.bundle.js:24484 (anonymous function) @ ionic.bundle.js:24712 completeOutstandingRequest @ ionic.bundle.js:14221 (anonymous function) @ ionic.bundle.js:14493

I am going through and checking to confirm that this isn't a user error, however, I haven't changed anything with firebase-web.js nor have I touched ionic.bundle.js in any way

atans2468 avatar Sep 08 '15 00:09 atans2468

Yes, we can confirm this too. No need to provide more info, we know where the issue is. Will get to this.

mhartington avatar Sep 08 '15 00:09 mhartington

We are seeing this issue too and keen to get the fix as soon as its available. (Seems like an unfair derecation warning, not giving people much time!)

Thanks

screenshot

mike-nelson avatar Sep 08 '15 02:09 mike-nelson

Ionic should tight with Modernizr imho

nzmedet avatar Sep 08 '15 10:09 nzmedet