WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
107035
[WK2] Expose WebGLErrorsToConsole settings in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=107035
Summary
[WK2] Expose WebGLErrorsToConsole settings in WebKit2
arno.
Reported
2013-01-16 11:05:31 PST
Hi, it would be nice to be able to set/get WebGLErrorsToConsole flag in WebKit2
Attachments
patch proposal
(4.82 KB, patch)
2013-01-16 11:11 PST
,
arno.
sam
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
arno.
Comment 1
2013-01-16 11:11:42 PST
Created
attachment 183011
[details]
patch proposal
Benjamin Poulain
Comment 2
2013-01-16 13:56:36 PST
Curious: Why not just enable it by default? Is it too verbose or something?
Viatcheslav Ostapenko
Comment 3
2013-01-16 13:59:43 PST
(In reply to
comment #2
)
> Curious: Why not just enable it by default? Is it too verbose or something?
IMHO, could be enable by default for debug builds.
arno.
Comment 4
2013-01-16 14:33:32 PST
(In reply to
comment #3
)
> (In reply to
comment #2
) > > Curious: Why not just enable it by default? Is it too verbose or something? > > IMHO, could be enable by default for debug builds.
This feature is useful for web developers. So, even we if we enable it for debug builds, I think still need to enable it (either by default, or behind a flag) in "regular" builds.
Benjamin Poulain
Comment 5
2013-01-16 14:37:07 PST
> This feature is useful for web developers. So, even we if we enable it for debug builds, I think still need to enable it (either by default, or behind a flag) in "regular" builds.
Agreed. Please answer my question :)
arno.
Comment 6
2013-01-16 15:17:57 PST
I don't known why this was chosen in the first place. Ccing people having worked on
bug #77696
Kenneth Russell
Comment 7
2013-01-16 17:20:50 PST
The patch looks reasonable to me but someone who works on WebKit2 should review it.
Sam Weinig
Comment 8
2013-01-16 17:25:59 PST
I also don't understand what this switch is for. What console do the errors go to? The Web Inspector console?
arno.
Comment 9
2013-01-16 17:28:53 PST
(In reply to
comment #8
)
> I also don't understand what this switch is for. What console do the errors go to? The Web Inspector console?
yes.
Kenneth Russell
Comment 10
2013-01-16 17:29:59 PST
Also, answering the earlier question, I don't remember why this was made a page setting rather than enabled by default, but it can be too verbose for poorly written WebGL applications. For this reason WebGLRenderingContext contains a throttle which turns it off after a certain number of errors.
Sam Weinig
Comment 11
2013-01-16 20:04:39 PST
Comment on
attachment 183011
[details]
patch proposal This doesn't seem like a useful switch to have.
Kenneth Russell
Comment 12
2013-01-17 10:41:39 PST
Thinking back, I am pretty sure this switch was added so that TestRunner/DumpRenderTree could turn off the logging of errors to the console. Some tests generate more than one kind of error. While a test can be written to check only for the one it wants, it can't prevent the WebGL implementation from logging all of the errors to the console, and those might vary between OpenGL implementations, leading to platform-specific text differences in the output.
Sam Weinig
Comment 13
2013-01-17 13:46:42 PST
(In reply to
comment #12
)
> Thinking back, I am pretty sure this switch was added so that TestRunner/DumpRenderTree could turn off the logging of errors to the console. Some tests generate more than one kind of error. While a test can be written to check only for the one it wants, it can't prevent the WebGL implementation from logging all of the errors to the console, and those might vary between OpenGL implementations, leading to platform-specific text differences in the output.
In that case, the switch should be switchable from window.internals.settings, and new API should not be necessary.
Kenneth Russell
Comment 14
2013-01-17 19:48:52 PST
(In reply to
comment #13
)
> (In reply to
comment #12
) > > Thinking back, I am pretty sure this switch was added so that TestRunner/DumpRenderTree could turn off the logging of errors to the console. Some tests generate more than one kind of error. While a test can be written to check only for the one it wants, it can't prevent the WebGL implementation from logging all of the errors to the console, and those might vary between OpenGL implementations, leading to platform-specific text differences in the output. > > In that case, the switch should be switchable from window.internals.settings, and new API should not be necessary.
Thanks for the suggestion.
Bug 107218
filed about doing this.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug