Intent to Deprecate and Remove: window.postMessage(message, transferables, targetOrigin) legacy overload

226 vistas
Ir al primer mensaje no leído

Sigbjorn Finne

no leída,
21 abr 2016, 5:48:00 a.m.21/4/16
para blink-dev

Primary eng (and PM) emails
sigb...@opera.com

Summary
Deprecate and retire window.postMessage(message, transferables,
targetOrigin) legacy overload.

Motivation
A legacy overload of window.postMessage() that's nearly unused & it
would be preferable to finally phase out.

Compatibility Risk
Any change to core functionality like window.postMessage() requires
extreme care, but the observed use of this overload is so low that the
risk of deprecating and actual removal seems acceptable. After
retirement, Safari will be the only browser supporting it.

Alternative implementation suggestion for web developers
Use window.postMessage(message, targetOrigin[, transferables])

Usage information from UseCounter
https://www.chromestatus.com/metrics/feature/timeline/popularity/575 ( <
~0.0025%)

OWP launch tracking bug
https://crbug.com/425896

Entry on the feature dashboard
https://www.chromestatus.com/feature/5719033043222528

Requesting approval to remove too?
Yes, M54 is the suggested milestone.

Philip Jägenstedt

no leída,
21 abr 2016, 6:03:43 a.m.21/4/16
para Sigbjorn Finne,blink-dev
LGTM1



--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.


Chris Harrelson

no leída,
21 abr 2016, 11:07:40 a.m.21/4/16
para Philip Jägenstedt,Sigbjorn Finne,blink-dev
LGTM2

Rick Byers

no leída,
21 abr 2016, 11:11:16 a.m.21/4/16
para Chris Harrelson,Philip Jägenstedt,Sigbjorn Finne,blink-dev
0.002% is still a non-trivial amount of usage so I think it's worth a little additional care here.  

This is a non-standard WebKit-specific overload, right?  I assume Safari still supports it, but what about Edge?  If Edge hasn't added it that's another strong indication that removal should be very safe.

I checked the internal metrics and it seems all the usage is from desktop (so this isn't the typical example of mobile sites assuming WebKit).  In particular, most of the usage is from Mac (a little higher in absolute terms than Windows, despite Windows having much greater Chrome usage overall).

I've kicked off a cluster run on the top 10k sites to see if I can find any example of a website using this (during load), so that we can reach out to popular sites / libraries if it makes sense.

I think planning for removal in M54 (with a deprecation warning now) probably is the right thing to do so LGTM3.  But let's just try a little harder to evaluate the impact (now that we can do cluster runs).  Eg. if we can find one popular site that's hitting this but will still work alright with the change then that would remove most of my lingering concern.  

Sigbjorn Finne

no leída,
21 abr 2016, 2:10:30 p.m.21/4/16
para Rick Byers,Chris Harrelson,Philip Jägenstedt,blink-dev
Thanks rbyers@ for jumping right in and helping out, appreciate it. Edge
does not support this, throwing.

As you can see from the deprecation CL (
https://codereview.chromium.org/1903873004/ ), wrong argument ordering
usage can slip in and get stuck.

--sigbjorn

Rick Byers

no leída,
27 abr 2016, 11:11:19 a.m.27/4/16
para Sigbjorn Finne,Chris Harrelson,Philip Jägenstedt,blink-dev
Sorry for the delay.  I got data back from the cluster run, but unfortunately it came up empty - meaning that none of the Alexa top 10k sites hit this use counter during page load.  We're working to make it more practical to search all top 1M sites, but that's not currently easy.

Anyway if Edge already throws in this case then that's strong evidence that the compat risk is indeed low.  LGTM3 to remove but please keep an eye out for reports of regressions and ping this thread if it looks like there's any substantial real-world impact of the removal.

Shruthi Sreekanta

no leída,
26 ago 2016, 4:50:24 p.m.26/8/16
para blink-dev,sigb...@opera.com,chri...@chromium.org,phi...@opera.com,domi...@chromium.org
Are we still planning on removing this in M54?

Philip Jägenstedt

no leída,
31 ago 2016, 8:04:59 a.m.31/8/16
para Shruthi Sreekanta,blink-dev,sigb...@opera.com,chri...@chromium.org,phi...@opera.com,domi...@chromium.org
I'm taking care of this in https://codereview.chromium.org/2295863002/ and will request backport to M54.
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos