RESOLVED FIXED 213661
Web Inspector: Canvas: show an error message if unable to fetch shader source
https://bugs.webkit.org/show_bug.cgi?id=213661
Summary Web Inspector: Canvas: show an error message if unable to fetch shader source
Devin Rousso
Reported 2020-06-26 14:52:48 PDT
.
Attachments
Patch (7.15 KB, patch)
2020-06-26 14:53 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2020-06-26 14:53:28 PDT
Blaze Burg
Comment 2 2020-06-29 10:06:22 PDT
Comment on attachment 402908 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=402908&action=review > Source/WebInspectorUI/UserInterface/Views/ShaderProgramContentView.js:253 > + if (!this.didInitialLayout) { Will this code path ever be taken on subsequent refreshes? If not, how does spinnerContainer get recreated?
Devin Rousso
Comment 3 2020-06-29 10:58:01 PDT
Comment on attachment 402908 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=402908&action=review >> Source/WebInspectorUI/UserInterface/Views/ShaderProgramContentView.js:253 >> + if (!this.didInitialLayout) { > > Will this code path ever be taken on subsequent refreshes? If not, how does spinnerContainer get recreated? No, and that's intentional. I think it's a somewhat reasonable claim that "if a shader successfully loads once, it'll likely to successfully load again" (and the same is true for the error case). Yes, it's totally possible for a shader to be destroyed in between two fetches, but I don't think it's gonna be that common. Because of this, we don't want to recreate the spinner each time we fetch as we'd likely see a brief flash from "old content"->"spinner"->"new content" (which is likely the exact same as "old content"). So we only show the spinner for the first fetch as there was no "old content".
Blaze Burg
Comment 4 2020-07-07 14:52:20 PDT
Comment on attachment 402908 [details] Patch r=me
EWS
Comment 5 2020-07-07 15:34:44 PDT
Committed r264045: <https://trac.webkit.org/changeset/264045> All reviewed patches have been landed. Closing bug and clearing flags on attachment 402908 [details].
Radar WebKit Bug Importer
Comment 6 2020-07-07 15:35:40 PDT
Note You need to log in before you can comment on or make changes to this bug.