01:07
<Domenic>
Hixie: glad you are deciphering this ES task/initialization stuff ... I think I got lost @_@
06:55
<annevk>
Domenic: I wonder what implementers will think
08:37
<annevk>
MikeSmith: any chance you can put a stop to people abusing mailing list addresses as Bugzilla accounts? https://www.w3.org/Bugs/Public/show_bug.cgi?id=25985#c27
08:38
<annevk>
MikeSmith: that's really confusing
09:01
<annevk>
jgraham: heh, I remember when we implemented that stuff I was similarly confused by the stacks and just assumed that bit was okay since we passed the tests
10:44
<hemanth>
meow!
10:47
<annevk>
Removing author headers is proving to be a bit more invasive than expected, but it seems like it might play out well
11:01
<coolbot95>
What the WG?
11:01
<coolbot95>
That one's free.
11:01
<coolbot95>
I still don't know what "What" stands for.
11:01
<coolbot95>
Or "WHAT".
11:01
<Ms2ger>
Web hypertext application technology
11:02
<coolbot95>
I have never really grasped what your relation is to W3.
11:02
<coolbot95>
And the browser authors.
11:02
<coolbot95>
I just know W3/W3C started looking like a joke 10+ years ago.
11:03
<annevk>
coolbot95: http://wiki.whatwg.org/wiki/FAQ enjoy
11:16
<coolbot95>
Ah.
11:17
<coolbot95>
Seems to match my "10 years" thing perfectly.
11:19
<annevk>
Yeah, anniversary was a week ago
11:20
<coolbot95>
:S
11:45
<JakeA>
annevk: with the no-proflight headers, do we need a "cors-no-preflight" mode that cannot be set on construction unless it's constructed by the UA?
11:45
<annevk>
JakeA: yeah, that was an option I considered
11:45
<annevk>
JakeA: I went with an "unsafe request flag" that will be set by XHR and fetch()
11:46
<annevk>
JakeA: I haven't made this commit yet since it's pretty large and changes a bunch of things around
11:46
<annevk>
JakeA: and I really need to shower and get some food :p
11:46
<JakeA>
:D
11:50
<JakeA>
annevk: If I do myCache.put(request, response); event.respondWith(response); is that going to break? If we spec cache to tee response streams when storing, does it work around that?
11:53
<annevk>
JakeA: yeah we need to talk to Domenic about those streams
11:54
<annevk>
JakeA: maybe a structured clone of a stream should be a tee?
11:54
<annevk>
JakeA: to answer that we need to know how streams will work with structured cloning
11:54
<annevk>
JakeA: which is hard since we don't even know how structured cloning works with promises
11:55
<JakeA>
annevk: hah, thankfully we don't have to worry about that with request/response right?
11:56
<annevk>
JakeA: well storing is defined in terms of structured cloning...
11:56
<JakeA>
annevk: but there are no promises on request/response. There are methods which return promises, but that's different right?
11:57
<annevk>
JakeA: yeah, this is mostly about what should happen with the underlying stream
11:57
<annevk>
JakeA: there's no underlying promise, but a stream is basically a more complicated case of a promise I think when it comes to structured cloning
12:00
<JakeA>
annevk: I'm still worried about how complicated cache.add(url, url, url) is when it comes to cross-origin stuff (on a CDN), having to change the mode for those. It's almost like no-cors is a better default for cache, although it'd be very weird to have a different default for fetch() where cors makes more sense
12:00
<JakeA>
Can't think of a simple answer there though. Will have a think
12:04
<MikeSmith>
annevk: about that mailing-list bugzilla thing, I'll figure out who created that account and ask them to change the address to their actual address
12:04
<MikeSmith>
annevk: do you have any idea who it was that actually wrote that message?
12:07
<MikeSmith>
I wonder if maybe it was just that Harry created that account at some point and logged in with it so he could add it to the default Cc for webcrypto bugs, then forgot and stayed logged in with it and posted those bug comments
12:07
<MikeSmith>
I've actually done that myself before
12:09
<MikeSmith>
I don't know how to completely prevent that happening occasionally, because as far as I know, the only way to get bugzilla to Cc a mailing list is to create a bugzilla account with the list address as the account name
12:11
<annevk>
JakeA: you can always do cache.add(new Request(url, {mode:"cors"}), ...) but usability--
12:11
<annevk>
JakeA: I'll open an issue later on the structured clone and streams thing
12:11
<annevk>
JakeA: that's hard :(
12:11
<annevk>
MikeSmith: I suspect the chair
12:11
<annevk>
MikeSmith: oh Harry could be it I suppose
12:12
<annevk>
MikeSmith: ah ok
12:24
<zewt>
streams probably want to require being transferred, like messageports
12:25
<zewt>
so you don't end up with two endpoints
12:42
<Domenic>
annevk: JakeA: if there are methods/properties that return promises, they likely return internal-slot promises... I don't really know how structured clone works with internal slots or other internal state.
12:43
<JakeA>
Domenic: The only promise-returning method on request/response is body.to
12:43
<Domenic>
JakeA: ah, welp.
12:44
<Domenic>
will dedicate more time to thinking about it when issue opens, but my first thought is that structured cloning should read a stream to the end into some sort of "constant stream" or "snapshot stream"
12:45
<Domenic>
meanwhile i think i have admin rights on my computer today so i should hopefully be able to install git and sublime and get productive on streams...
12:50
<annevk>
Domenic: if you do that the super obvious cache.add(response); event.respondWith(response) would fail
12:50
<Domenic>
annevk: I guess I meant teeing it before streaming
12:51
<Domenic>
still think readToEnd is a better name than to because it makes the depletion obvious
12:52
<annevk>
Maybe body.readInto("blob")?
12:52
<annevk>
JakeA: ^^
12:52
<JakeA>
I'm really happy with .to
12:52
<annevk>
Yeah actually, Domenic, the naming of to() doesn't matter here
12:52
<Domenic>
readInto is probably going to be used for binary streams: readInto(arrayBuffer, offset, length)
12:53
<annevk>
In my example above there was no invocation of to()
12:53
<annevk>
Domenic: shouldn't that be fill like how Array calls it?
12:53
<Domenic>
sure
12:54
<Domenic>
no, I want read to be the verb that means "read out of the queued data, making it unavailable for other consumers"
12:54
<Domenic>
maybe readAndFill or something
12:54
<Domenic>
but yeah your example was not using to()/readToEnd(), which is why I was saying it's OK for it to tee
12:54
<Domenic>
whereas if we have all depleting things use the "read" verb, people can see that as the warning signal
12:55
<Domenic>
and other operations, like adding to cache, they can assume will not deplete
12:57
<Domenic>
hmm this tee-and-read-to-end approach for cloning makes sense for storing on disk, but not for cloning between realms. Maybe you transfer between realms?
13:00
<annevk>
Domenic: transfer makes sense
13:00
<annevk>
Domenic: note that if something can be transferred, you can clone it too, up to the user
13:08
<zewt>
what the hell? pressing escape isn't stopping animated gifs in firefox now
13:10
<zewt>
https://bugzilla.mozilla.org/show_bug.cgi?id=825486 stunning incompetence
13:15
<annevk>
Domenic: JakeA: https://github.com/slightlyoff/ServiceWorker/issues/313
13:29
<annevk>
JakeA: header commit made
13:36
<JakeA>
annevk: this is great. I was showing some people the fetch api & related classes. Feedback very positive when compared to XHR
13:37
<JakeA>
should write a blog post or something
13:37
<Ms2ger>
Well
13:37
<annevk>
JakeA: note that I also made it more clear what headers are exposed to SW now
13:37
<Ms2ger>
That's a bit like saying "I told them about the flu. Feedback very positive when compared to cholera"
13:37
<annevk>
JakeA: basically only the things that are set by the API, nothing that would be set by the network
13:39
<JakeA>
Ms2ger: haha
13:39
<jgraham>
Does that mean that there's a chance that Fetch will end up like Spanish Flu and kill millions of people across the world?
13:39
<JakeA>
annevk: The CSP guys here are wanting SW responses to be treated as redirects so they can continue to deal with requests rather than responses
13:40
<jgraham>
I only ask because I might have to withdraw my endorsement of this technology in that case
13:40
<JakeA>
annevk: explained to them why that doesn't really make sense without a boatload of hackery
13:40
<JakeA>
annevk: hopefully that'll be the end of it, but expect resistance on having a CSP hook after SW provides a response
13:41
<annevk>
JakeA: tell them to file a ticket
13:41
<annevk>
JakeA: seems bad to have that as Google-internal discussion
13:42
<JakeA>
annevk: fair point, I'll encourage further discussion in the open
13:42
<annevk>
JakeA: note that per CSP 1.1 if they treat them as redirects, SW would be blocked by default
13:43
<annevk>
JakeA: unless I don't understand the unsafe-redirect directive
13:43
<JakeA>
annevk: yeah, they were looking at all kinds of hackery to avoid just having a separate hook. I was happy with https://github.com/slightlyoff/ServiceWorker/issues/113#issuecomment-38908599 but I think they're looking at something different
13:44
<annevk>
JakeA: are these different people than Mike West?
13:44
<annevk>
Anyway, still need to go through the whole Response story to make sure it's sane
13:45
<annevk>
jgraham: no, but if it does kill millions of people we'll blame you
13:46
<JakeA>
annevk: yeah, the initial proposal was used as a starting point :/
13:48
<annevk>
Oh, in that case they might want to talk to Mike
13:48
<annevk>
The spec reflects discussions with him at BlinkOn and after
13:50
<jgraham>
fetch(Request("http://secret.lab.gov/bio-terror/launch";, {method:POST}))
13:57
<Ms2ger>
Woo, renaming flexbox
13:58
jgraham
blinks
13:58
jgraham
hopes that was a temporal vortex causing 2012 Ms2ger to briefly appear in the present
13:59
<Ms2ger>
Nah, just 2012 minutes, right folks? http://lists.w3.org/Archives/Public/www-style/2014Jun/0107.html
14:04
<annevk>
jgraham: pretty sure POST has to be in quotes so that'd be fail :-)
14:04
<Ms2ger>
const POST = "POST";
14:04
<jgraham>
Dammit Ms2ger beat me to it
14:48
<TabAtkins>
Ms2ger: As always, only do renames when compatible. In this case, we're discussing only renaming the flex-basis value, but keeping "auto" in the flex shorthand.
14:48
<TabAtkins>
It was a mistake to have a value that means completely different things as a computed and used value.
14:49
<SamB>
that does sound like a pretty dumb idea, yeah
14:49
<annevk>
I no longer know what computed and used means :-(
14:49
<SamB>
just like not using <TABLE> for the tables in http://packages.qa.debian.org/s/systemd-shim.html
14:50
<annevk>
SamB: that's not a table, so seems legit
14:51
<SamB>
I mean the thing with the "general" header, and the one with the "bugs" header
14:51
<SamB>
oh also "versions"
14:51
<SamB>
... and "patch-tracker"
14:52
<annevk>
I can see how using <dl> is fine there. Though CSS lacks a bit in the styling department
14:52
<SamB>
my issue is that the left and right columns are misaligned
14:53
<SamB>
the bold font is like 1px taller here
14:55
<SamB>
huh, I guess a <dl> isn't as crazy as what I *expected* to find if I actually inspected
14:55
<SamB>
... so how the heck did they get it that screwed up?
14:56
<SamB>
hmm, would be saner with <di> though
14:56
<SamB>
so basically they float these things
14:58
<Ms2ger>
display: compact
14:58
<annevk>
<di> does not exist
14:58
<SamB>
annevk: yes, I know
14:59
<SamB>
"with <di>" that was shorthand for "with <di>, in an alternate universe where <di> actually existed"
15:01
<Ms2ger>
Please leave your sense of alternate universes at the door, thanks!
15:01
<annevk>
I'm getting pretty close to the point where I'm defining a generic multimap concept that FormData / URLSearchParams / Headers can use
15:01
<annevk>
Might not be that bad of an idea
15:02
<annevk>
Maybe once I merge all the things
16:11
<tobie>
Is the consensus that this is the right way to use promises? https://gist.github.com/mkruisselbrink/c5c5cd80f27f3158f451#file-gistfile1-pro-L23
16:14
<tobie>
(Promise resolves to undefined on successful geofencing region registration, rejects otherwise).
16:18
<Domenic>
tobie: LGTM. Remember to reject with Error instances (e.g. DOMExceptions, not DOMErrors)
16:19
<tobie>
Domenic: Thanks! (Not working on this myself. Just bumped into Promise<void> and that just… felt weird.)
16:44
<TabAtkins>
annevk: Just read the Cascade spec
16:44
<Krinkle>
annevk: URLSearchParams, is that what I think it is?
16:44
<Krinkle>
(parsed map of location.search)
16:46
<Krinkle>
I guess FormData's interface is similar to DOMTokenList (e.g. classList), with more type support of course and differentmethod names at the moment. It might be useful to have a getter on FormData instead of just append, too.
17:01
<SamB>
oh, have you guys what Emacs does with bytes that don't form part of a valid code sequence during character decoding?
17:08
<SamB>
you can't do it with an API that forces UTF-16, though :-(
17:39
<zewt>
any programmer's editor will do that, vim handles it cleanly too
17:40
<zewt>
though i've never trusted it to actually save changes when that happens
17:40
<SamB>
probably best to figure out WTF went wrong first and fix it, certainly
17:41
<SamB>
zewt: I was referring to the manner in which it represents the incomprehensible bytes though ;-)
17:57
<Hixie>
ok
17:57
<Hixie>
suppose a group provided a web service that took HTML input, and did something to it
17:57
<Hixie>
say, anolis. or a translator tool.
17:58
<Hixie>
now suppose that that tool needs the markup annotated in some way
17:58
<Hixie>
e.g. <code data-anolis-xref="attr-foo">foo</code> or <span data-translation-hint="name">Fred</span>
17:59
<Hixie>
according to the spec, data-*="" is inappropriate for this, because "Custom data attributes are intended to store custom data private to the page or application, for which there are no more appropriate attributes or elements" and "These attributes are not intended for use by software that is independent of the site that uses the attributes"
17:59
<Hixie>
what should we recommend to such tools?
18:00
<Domenic>
data-?
18:00
<Domenic>
(i.e., change the spec)
18:00
<hober>
the author is adding these attributes for the express purpose of feeding their content to the web service?
18:00
<Hixie>
yeah, that was the only idea other than having them define a spec that i could come up with
18:00
<Hixie>
hober: yeah
18:00
<Domenic>
oooh i know XML namespaces!!!
18:00
Ms2ger
pushes Domenic off a bridge
18:00
<Domenic>
or ... custom DTDs!??!?!
18:01
<Hixie>
Domenic: don't make me turn this channel around!
18:01
<Ms2ger>
No, the CSSWG is the one that uses custom DTDs
18:01
<hober>
given the author's intent, i think data-* is appropriate. they *are* storing custom data private to the application
18:02
<Hixie>
yeah, i guess it could be read that way
18:02
<Ms2ger>
Hixie, doesn't matter, this isn't HTML ;)
18:02
<Domenic>
this feels vaguely related to the way in which custom element users like to use custom attributes too...
18:02
<Hixie>
it's kinda borderline, but close enough
18:02
<hober>
and the attributes *aren't* being used by software independent of the site, because the author made things dependent by adding them with the intent of feeding the site to the service
18:02
<Hixie>
fair enough
18:02
<Hixie>
i'll tweak the text
20:21
<zewt>
SamB: vim just shows <EC>, iirc
20:21
<zewt>
treated as a single "character"
20:22
<SamB>
Emacs has special "8-bit characters" that it uses for incomprehensible high bytes in input
20:22
<zewt>
firefox uses magic glyphs that show the hex value inside
20:22
<SamB>
I thought firefox converted incomprehensible byte sequences to U+FFFD
20:23
<zewt>
i mean when it has undisplayable things in utf-16 space
20:23
<zewt>
forget the particular cases, probably things like lone surrogates and control characters
20:24
<SamB>
anyway, Emacs uses codepoints past the end of current Unicode for high bytes that it can't decode from the coding system it's attempting to decode
20:25
<SamB>
and it uses a fairly evil representation of them in buffer text ;-P
20:25
<SamB>
zewt: you know how it's forbidden to represent any codepoint using more bytes than necessary in UTF-8 now?
20:26
<zewt>
"now"? since the dawn of time
20:27
<SamB>
well, I don't remember what the original spec said, okay?
20:28
<SamB>
even if, for all I know, it's exactly like what my current manpage says
20:29
<SamB>
anyway, Emacs uses the two-byte forms that are not permitted to be used to encode ASCII for its "8-bit byte" codepoints ;-)
20:29
<SamB>
(mostly only internally, though it seems that you can write such things to a file if you really want)
20:31
<SamB>
(mind you, I believe these codepoints are also used, e.g., for data that Emacs has made no attempt to decode using any particular coding-system)
20:32
<SamB>
(otherwise, it probably wouldn't be all that important to use other than the dawn-of-time UTF-8 sequences for those codepoints)
20:32
<SamB>
(since, as you know, dawn-of-time UTF-8 can encode up through 0x7FFFFFFF)
20:52
<Hixie>
wtf
20:53
<Hixie>
top(1) reckons my CPU is at about "96.4%us"
20:53
<Hixie>
but sorting processes by CPU usage, and showing everything, i can only account for about 20% CPU.
20:53
<Hixie>
wtf is the rest of it being used by?
20:53
<Hixie>
and how can i find out?
20:53
<zewt>
ps?
20:54
<Hixie>
isn't that the same data as top?
20:54
<zewt>
who knows, it sounds like top isn't using the same data as top
20:55
<zewt>
or maybe it's averaged differently or something
20:55
<wanderview>
depending on which version of top, it may be showing only your user processes and not including system threads
20:55
<wanderview>
there is usually an option to turn that on
20:55
<zewt>
right now on a random machine I regularly see processing taing more CPU than the summary claims is in use
20:55
<Hixie>
i can see init, so i'm guessing it's showing all processes
20:56
<zewt>
one confusion is sometimes cpu numbers are per-cpu, sometimes they're systemwide
20:56
<zewt>
init probably isn't quite the same as a kernel thread process
20:56
<zewt>
those are the ones that show up in brackets in ps
20:56
<zewt>
(assuming linux)
20:57
<zewt>
i've never seen those take any resources at all, and I wish ps wouldn't show them without a flag since it's just a ton of noise
21:02
<Hixie>
"ps -A -opcpu,pid,uname,args --sort=pcpu S -m" blames apache
22:16
<annevk>
Krinkle: it has a getter
22:33
<Krinkle>
annevk: and so it does..
22:33
<Krinkle>
annevk: http://xhr.spec.whatwg.org/#interface-formdata
22:33
<Krinkle>
But not implemented yet (in Chrome anyway)
22:33
<annevk>
yes, I wrote that
22:33
<Krinkle>
I know you did.
22:33
<annevk>
nn
22:33
<Krinkle>
slaapse
22:33
<Krinkle>
(groetn uut enschede)