-
Notifications
You must be signed in to change notification settings - Fork 72
Missing methods: dir, dirxml, markTimeline, timeStamp, timeline, timelineEnd, exception #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What benefit do @paulirish had mentioned at one point that I haven't previously considered |
I doubt they have any benefit, but they're implemented, so we gotta spec 'em. exception is not in Chrome but is in Edge and Firefox. |
|
Hmm Firefox supports timeline and timelineEnd. I wonder if we'll need to spec them as no-ops to avoid crashy pages. markTimeline is also in Firefox. Found http://mxr.mozilla.org/mozilla-central/source/dom/webidl/Console.webidl ... it looks like markTimeline, timeline, and timelineEnd are specifically no-ops there. |
@paulirish and we have formatters in the spec for both behaviors already.
|
Sure but |
@terinjokes our implementation right now is: EDIT: moved this discussion of %o and %O into #36 |
Is this simply because they don't know that |
@domenic To clarify, |
I don't really think there's any point in having an annex. HTML's separation is largely about what authors should use vs. what implementers should implement, and ES's separation is just dumb. (It's in theory "non-browser implementations don't have to do this," except they actually do, because code expects it to exist.) |
If people are open to helping me through the process I'd be interested in taking on Are there any CONTRIBUTING docs? |
Hey @thealphanerd, sorry for the delay! With the holidays I imagine all our time is a bit touch-and-go, but in general I'd be happy to help you through the process, and I'm sure @terinjokes and @robertkowalski (the spec editors) would be as well. There aren't any CONTRIBUTING.md docs at the moment, but https://github.com/whatwg/console#building-the-spec should get you started with the basics |
Reviving this thread, though if it gets much longer it might be worth breaking it up a bit. Regarding
|
In Chrome timeline/timelineEnd just add a deprecated notice and otherwise fallback to console.time() behavior. Removing them means It's unlikely code using this is deployed, so I don't think its a big priority to spec. (Same with edge's console.takeHeapSnapshot) |
The latter works great. Edge does not have timeline/timelineEnd. (It does have timeStamp.) Hmm. If Chrome is willing to remove we could not spec it... Maybe filing bugs is the way to go. Not sure. |
I think we're willing to remove. I'll verify. |
Motivation for not wanting to spec it makes sense but I feel like even if it exists in one place, we have to (at least noop) so that implementations don't follow the spec yet still make some sites exception-prone. I'll whip something up for I'll break |
Well if it only exists in two browsers with one spewing a deprecation warning it seems possible it's not required for web compat and thus the best path forward might be removal. |
Just going to keep Seems that we can definitely spec
Argument for dropping it: Provides no functional benefit over the already-existing Thoughts? |
Exception... it looks like Firefox added it a few years ago based on an older spec: https://bugzilla.mozilla.org/show_bug.cgi?id=922214. I guess in both of these cases where it doesn't exist in 2/4 browsers I'd err toward speccing them. They're pretty harmless and browsers are unlikely to want the potential compat fallout, however small, of removing them. |
WebKit removed This is also the first time I've heard of |
Chrome is comfortable with removing timeline & timelineEnd (and breaking anyone still using it). |
Nice. We can write web-platform-tests asserting the nonexistence of these methods. (Typically such tests are suffixed with -historical.html; you can find a number of examples.) |
In an effort to close this very soon: I'll add a PR to spec
Do we still want to spec |
So In general I lean toward adding things to |
I'd just need to examine current usage and our existing behavior for that
method and I'll jump back in thread and let you know.
…On Fri, Feb 16, 2018, 11:03 AM Dominic Farolino ***@***.***> wrote:
Pinging @bgrins <https://github.com/bgrins> for Firefox and @xirzec
<https://github.com/xirzec> for Edge as well
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADQBMJWDr1lGV8kOeu8vNHH28qCB3BXyks5tVdDbgaJpZM4HB-RK>
.
|
The history for console.exception seems to be https://bugzilla.mozilla.org/show_bug.cgi?id=922214 where it came from a now-no-longer existing spec draft at https://github.com/DeveloperToolsWG/console-object Looking at the blame there, it was added by @bkardell in DeveloperToolsWG/console-object@4e6e32c. The comments added in DeveloperToolsWG/console-object@51e0533 say it came from Firebug. There are some internal uses of And yes, @bgrins is a better contact for devtools. |
Interestingly, |
I'm asking for feedback from the Firefox devtools / web compat teams about |
Thanks @TheLarkInn and @bgrins, excited to see the telemetry on this. The issue Mike linked to looks good and will probably give us some good insight on future decisions with this spec as well. |
I've created web-platform-tests/wpt#10124 so we can assert the non-existence of For those interested, as @bgrins mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=1440729, Firefox telemetry for the Console methods can be viewed here: https://georgf.github.io/usecounters/index.html#kind=page&group=CONSOLE&channel=beta&version=60. Any update on Edge's end @TheLarkInn ? |
...and also generalize the file already containing historical tests to house any future historical tests asserting the non-existence of certain legacy Console methods. Part of whatwg/console#27.
…ine, a=testonly Automatic update from web-platform-testsAdd Console historical test for markTimeline ...and also generalize the file already containing historical tests to house any future historical tests asserting the non-existence of certain legacy Console methods. Part of whatwg/console#27. -- wpt-commits: 0628e2e73489ddd075f273d2555e504e97e28ce6 wpt-pr: 10124
In response to #27 (comment) and #27 (comment): We've gathered data on console API usage in Firefox 60 beta and are seeing virtually 0 usage of |
By the way, if other browsers collect console API usage data I'd be interested to compare with the Firefox telemetry use counters at https://georgf.github.io/usecounters/index.html#kind=page&group=CONSOLE&channel=beta&version=60. |
Sounds good. It doesn't exist in the spec right now, so I think with 0 usages in Chrome + Safari (they don't implement it) and ~no usages in Firefox, I think it's safe to leave it out and have implementations remove their versions. Closing this issue now, if Edge has any compelling data pointing in a different direction we can revisit. I'll open a separate issue for Thanks a lot everyone! |
As per whatwg/console#27 (comment) and https://bugs.chromium.org/p/chromium/issues/detail?id=706804 we're leaving the console timeline/timelineEnd methods out of the specification and testing that implementations do not expose them (relevant WPTs at https://github.com/web-platform-tests/wpt/blob/master/console/console-tests-historical.any.js). Their implementations should be removed from Chrome, one of the last implementers of these legacy methods. The same goes for markTimeline, as it is deprecated in Chrome and not being included in the spec. [email protected], [email protected] Bug: chromium:706804 Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: Ibe05848fb664d26d16eeb5bdf6f519c1eeb4b2df Reviewed-on: https://chromium-review.googlesource.com/1082112 Reviewed-by: Yang Guo <[email protected]> Reviewed-by: Aleksey Kozyatinskiy <[email protected]> Commit-Queue: Dominic Farolino <[email protected]> Cr-Commit-Position: refs/heads/master@{#53973}
…ine, a=testonly Automatic update from web-platform-testsAdd Console historical test for markTimeline ...and also generalize the file already containing historical tests to house any future historical tests asserting the non-existence of certain legacy Console methods. Part of whatwg/console#27. -- wpt-commits: 0628e2e73489ddd075f273d2555e504e97e28ce6 wpt-pr: 10124 UltraBlame original commit: fc8d20f5d38f09a92b20fcceb47560955ea322bf
…ine, a=testonly Automatic update from web-platform-testsAdd Console historical test for markTimeline ...and also generalize the file already containing historical tests to house any future historical tests asserting the non-existence of certain legacy Console methods. Part of whatwg/console#27. -- wpt-commits: 0628e2e73489ddd075f273d2555e504e97e28ce6 wpt-pr: 10124 UltraBlame original commit: fc8d20f5d38f09a92b20fcceb47560955ea322bf
…ine, a=testonly Automatic update from web-platform-testsAdd Console historical test for markTimeline ...and also generalize the file already containing historical tests to house any future historical tests asserting the non-existence of certain legacy Console methods. Part of whatwg/console#27. -- wpt-commits: 0628e2e73489ddd075f273d2555e504e97e28ce6 wpt-pr: 10124 UltraBlame original commit: fc8d20f5d38f09a92b20fcceb47560955ea322bf
These seem to exist in a few different browsers.
The text was updated successfully, but these errors were encountered: