--
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.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAPhTwY1OXaX8W_D2nP9XbJopca4zC0RsSHtXkPzhO5HOKhCm2Q%40mail.gmail.com.
Dominik
Contact emails
aar...@chromium.org, fs...@chromium.org
--
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.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/eb702e7e-88d6-4b6f-b419-6051511689f1n%40chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
yoavweiss@:Great video, thanks for that!!Thanks!Were the concerns WebKit raised on the issue addressed? Can you expand on that front?Yes, othermaciej@'s comments lead to us changing the name of that function to `reset` instead of `clear`.Is the hold-up on the Filters PR editorial or something more fundamental?The hold-up is mostly over the question of whether `new CanvasFilter({filter: "someNonExistantFilterType"})` should throw an error. You can read the (very long) discussion in the pull request. Unfortunately it's been extremely hard to reach consensus on that specific issue for the past 3 months. Any comments from this group that would help drive us towards consensus would be much appreciated!
Are these features individually detectable? Do we have reasonable developer advice on how we want folks to use those features with backwards compat/fallbacks in mind?We're working with the DevRel team on some polyfills that will be included in a web.dev article that is launching. All the features are trivially detectable except for perhaps contextlost/restored events. I can look further into that if you'd like?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/ad052b76-cd02-475a-82a2-f010ecb92075n%40chromium.org.
On Thu, Oct 28, 2021 at 3:48 PM 'Aaron Krajeski' via blink-dev <blin...@chromium.org> wrote:yoavweiss@:Great video, thanks for that!!Thanks!Were the concerns WebKit raised on the issue addressed? Can you expand on that front?Yes, othermaciej@'s comments lead to us changing the name of that function to `reset` instead of `clear`.Is the hold-up on the Filters PR editorial or something more fundamental?The hold-up is mostly over the question of whether `new CanvasFilter({filter: "someNonExistantFilterType"})` should throw an error. You can read the (very long) discussion in the pull request. Unfortunately it's been extremely hard to reach consensus on that specific issue for the past 3 months. Any comments from this group that would help drive us towards consensus would be much appreciated!FWIW the two HTML editors on the thread (myself and Anne, with our HTML editor hats on), as well as Mozilla (via Anne with his Mozilla hat on), prefer the throwing behavior. I think in most cases to overcome that position we would need some really strong reasons why the Chromium project believes the non-throwing behavior is better. It's not clear to me how strong Chromium's position is on this issue, and whether it's worth delaying the feature over. (Or indeed, delaying all the features, since the plan seems to be to bundle them together?)
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfVe%3DWB7vT%2BmM3oS%3DJg_nJj7Xu8MGt9eqHqQjkno9Xv1Aw%40mail.gmail.com.
Silent failures + console warnings/errors seem to address this, right?
Hey Domenic! :)
On Thu, Oct 28, 2021 at 11:00 PM Domenic Denicola <dom...@chromium.org> wrote:
FWIW the two HTML editors on the thread (myself and Anne, with our HTML editor hats on), as well as Mozilla (via Anne with his Mozilla hat on), prefer the throwing behavior. I think in most cases to overcome that position we would need some really strong reasons why the Chromium project believes the non-throwing behavior is better. It's not clear to me how strong Chromium's position is on this issue, and whether it's worth delaying the feature over. (Or indeed, delaying all the features, since the plan seems to be to bundle them together?)
My concerns with the throwing behavior are similar to the ones we have discussed in the context of MediaSession actions.If we go with the throwing behavior, every future addition of filters would have a significant interop risk, in case adopting developers won't use try/catch properly. If they do that and they are not testing in not-yet-supporting browsers, their apps are likely to break entirely in those browsers.If we go with a silent failure + feature detection approach, developers using the feature without properly detecting it may not have the desired visual effects they are going for, but won't have unrelated parts of their app break.
From my perspective (with my API owner hat on), less risk is better, and the second approach seems less risky to me.
I agree with Yoav here (sorry, I don't own any hats). Not
throwing will likely result in fewer broken pages in
less-well-tested browsers that haven't implemented the APIs yet.
And +1 for devtools warnings to help developers figure out
"silent" failures.
(I also wonder if requiring try/catch won't trip up new
developers trying to use it inside Promises, who don't yet know
about `then()/catch()` patterns).
--
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.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/0612b019-71ee-41e9-aa78-aba0712d0a0dn%40chromium.org.
LGTM2
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw__g2FKLgxFsHJ6cRAjS31ONbatHAv26rJ%3Di4dDWprLRA%40mail.gmail.com.
During a WHATWG spec meeting this morning we agreed to not throw for malformed canvas filters. There are still a few editorial changes to go through on that PR, but other than that everything is settled for this launch.
--
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.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/0612b019-71ee-41e9-aa78-aba0712d0a0dn%40chromium.org.
We are launching with a console warning. Will check on the PR if it makes sense to add a note about it on the spec.