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

@vko-online Modernizr would really be a good fit here. Not really needed.

mhartington avatar Sep 08 '15 16:09 mhartington

@mhartington Agree. Anyway those warnings make no sense in mobile browsers, as they are older than desktop versions imo.

nzmedet avatar Sep 08 '15 17:09 nzmedet

Well, they make sense on android, since 5.0 updates the system webview separately from the OS. So that webview will be the same as desktop chrome

mhartington avatar Sep 08 '15 17:09 mhartington

Touch.webkitForce is deprecated where can i find this usage in code? https://github.com/driftyco/ionic/search?q=webkitForce no result Will simple refactoring fix that issue?

nzmedet avatar Sep 08 '15 17:09 nzmedet

Hmm, yeah not seeing it either. Hmm, will test on chrome canary and maybe even build chromium to check it out.

mhartington avatar Sep 08 '15 17:09 mhartington

You don't need Canary. We are seeing this warning appear on the production version of chrome (latest version, you may just need to update).

Mike Nelson // CEO (and Developer) beweb // p. 09 3077042 // m. 027 4403757

On 9/09/2015, at 5:43 am, Mike Hartington [email protected] wrote:

Hmm, yeah not seeing it either. Hmm, will test on chrome canary and maybe even build chromium to check it out.

— Reply to this email directly or view it on GitHub.

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

not for that, but to see if anything breaks in canary or chromium

mhartington avatar Sep 08 '15 20:09 mhartington

Don't worry boys, all of this warnings are just browser internal things, we don't need to do anything. Here's demo.

Before we start

  • Make sure you have touch events enabled, go to chrome://flags/ then select enabled on Enable touch events Mac, Windows, Linux, Chrome OS use CMD + F to search By default it's auto, which will not work
  • Prepare sample, i used this function handleStart(evt) { evt.preventDefault(); console.log(evt); } and var el = document.body; el.addEventListener("touchstart", handleStart, false);

Result screen shot 2015-09-09 at 3 25 54 am

Now i see webkitForce, and notice, there is also force, just like webkitRadiusX, radiusX I guess chrome is built by modules, and some modules use old events. Don't worry imho

nzmedet avatar Sep 08 '15 21:09 nzmedet

just to clarify is this just a fix for the Touch.webkitForce errors? because I am still getting the same errors that I noted above with ionic.bundle.js

atans2468 avatar Sep 08 '15 22:09 atans2468

@atans2468 it is not fix, it's just proof that those warnings your receive in console are ignorable, it will not break your code, it has nothing to do with ionic i believe. And note: they are just warnings

nzmedet avatar Sep 09 '15 02:09 nzmedet

hmmmm well I'm still having an unexplainable issue with the ionic.bundle.js file that is keeping anything in my app from submitting to firebase. Were you just referring to the webkit warnings or also the "SVG's SMIL animations....." warning, I'll attach an image so that you can see exactly what I'm seeing:

screen shot 2015-09-08 at 7 45 33 pm

atans2468 avatar Sep 09 '15 02:09 atans2468

SVG animations: Yes those are in ionics code, I will look into them and move them over to css.

As for the Touch warnings, I'm on @vko-online side, I don't think we have anything to worry about.

No need to keep commenting and. I know where the svg errors are coming from.

mhartington avatar Sep 09 '15 14:09 mhartington

I have the same warning...

TomaszWaszczyk avatar Oct 05 '15 12:10 TomaszWaszczyk

Same warning while using "$ionicHistory.goBack();"

omurbilgili avatar Oct 10 '15 00:10 omurbilgili

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

It's a bit worrying, we are approaching november.

loian avatar Oct 23 '15 08:10 loian

When do you plan to fix this warning?

cihadhoruzoglu avatar Oct 23 '15 12:10 cihadhoruzoglu

Again, I've said this before....

As for the Touch warnings, we have anything to worry about.

If you look through Ionic and angular's source code, you won't find Touch.webkitRadiusX anywhere. This is just a generic warning that chrome is giving incase any framework is using that method. We are all set :+1: @cihadhoruzoglu and @loian

mhartington avatar Oct 23 '15 12:10 mhartington

+1

kugaevsky avatar Oct 27 '15 01:10 kugaevsky

Again, nothing for us to do here. These are generic warnings inside of chrome in case anyone was using those prefixed APIs, which ionic is not.

mhartington avatar Oct 27 '15 01:10 mhartington

If there's nothing to worry about, how about closing this bug? ;)

laidig avatar Nov 02 '15 22:11 laidig