WebKit / standards-positions

WebKit's positions on emerging web specifications
https://webkit.org/standards-positions/
253 stars 21 forks source link

DeprecationReportBody using the Reporting API #59

Open brentfulgham opened 2 years ago

brentfulgham commented 2 years ago

Request for position on an emerging web specification

Information about the spec

Design reviews and vendor positions

Bugs tracking this feature

Anything else we need to know

Deprecation reports indicate that a browser API or feature has been used which is expected to stop working in a future update to the browser. This seems like a reasonable and useful browser feature, and would help us more explicitly surface deprecated features to developers and site owners who may not pay close attention to release notes or development discussions.

annevk commented 2 years ago

@othermaciej could you please expand on the privacy and security concerns?


I think an API like this makes sense, but I think it needs some encompassing infrastructure:

  1. A set of principles that guide us when it's okay and not okay to remove something from the web platform.
  2. Other ways of informing web developers than the console and reports. Perhaps something like https://deprecate.it/ that is not engine-specific.
karlcow commented 2 years ago

Webcompat 💡 hat on. (not a standard position)

I can identify issues as currently defined, but having a way to signal a website that an API will be abandoned in a near future could be very useful for Web developers and may help to avoid some webcompat issues.

To make it slightly more useful, I would think that it would be useful for webdevs to make it possible for the browser to signal when they are using an antique pattern or feature. Let's say old version of flexbox, or linear gradient, document.write, etc. which have to be kept for webcompat reasons (aka not breaking websites), but to tell webdevs that there is a more modern way.

It could become quickly very verbose. So need to figure this out too in a way that would be useful for webdevs.

Risk of tracking with implementation defined-id instead of generic across browsers. also date doesn't seem useful compare to browser versions, but then browser versions reintroduced another form of tracking.

but basically this is the counterpart of @support or blah in window for what is currently supported.

I could see a scenario with a webcompat risk, where the developer of the site, instead of updating the site will signal to its users.

After Browser FOO Version XXX, we will stop supporting it. Please switch to browser BAR.

😭

karlcow commented 1 year ago

status as of today

With all my digging here, I want to take a bit more time reading the content of the spec, and I would like to see real concrete examples on how it has been helpful for web developers in the context of Chrome implementation to better understand.

karlcow commented 1 year ago

In Sentry repo, a pull request for removing by default deprecation warning following some comments:

We had many people reporting that they want to disable the deprecation warnings

They switched to make it optional and not activated by default. I wonder if it was too noisy?