09:17
<smaug____>
wanderview: FWIW, you might be interested in https://bug1507508.bmoattachments.org/attachment.cgi?id=9065280 Google Maps relies on Chrome janking badly on setTimeout(,0)
09:57
<jochen__>
smaug____: re this promise stuff
09:57
<smaug____>
jochen__: yup
09:57
<jochen__>
smaug____: my main point is that a Promise is an ES object, so no operation can happen on it without a realm
09:57
<smaug____>
jochen__: sure
09:58
<smaug____>
but the spec relies on having a script from which 'muted errors' flag can be read
09:58
<smaug____>
https://html.spec.whatwg.org/#the-hostpromiserejectiontracker-implementation
09:59
<smaug____>
jochen__: and what that 'running script' is in different cases if unclear to me
10:00
<jochen__>
hum
10:00
<jochen__>
as defined in the spec?
10:00
<jochen__>
the realm should have a pointer to a script in ScriptOrModule
10:01
<jochen__>
https://html.spec.whatwg.org/#running-script
10:03
<smaug____>
jochen__: ok, so when https://w3c.github.io/ServiceWorker/#serviceworkercontainer-ready-promise, what is the script?
10:03
<smaug____>
s/, what/is run, what/
10:04
<smaug____>
do we need something in the specs to explicitly forcing Promise creation to happen only when there actually is a script running
10:07
<smaug____>
but then, rejection can anyhow happen when there isn't a script running ,so I'm not sure what 'muted errors' behavior we want.
10:28
<annevk>
smaug____: should match the script used to create the promise I suppose
10:28
<annevk>
smaug____: but yeah, if the UA creates it…
10:46
<jochen__>
if a spec require a promise to be created without a realm then the spec should be fixed, yes
10:46
<jochen__>
rejection requires a script
10:46
<jochen__>
it's an ES operation, it always requires a realm
11:51
<annevk>
jochen__: it's not so much a realm, it's a script in this case, which has a mute errors flag
12:05
<hsivonen>
annevk: https://bugs.chromium.org/p/chromium/issues/list?can=2&q=getAllResponseHeaders suggests there isn't even a bug on file about sorting XHR headers in Chrome
12:05
<hsivonen>
annevk: how are they passing any test cases?
12:06
<annevk>
hsivonen: they're not passing the relevant getAllResponseHeaders test as I noted?
12:06
<hsivonen>
annevk: ah, ok
12:07
<hsivonen>
out of order IRC and Bugzilla reading for me
12:07
<annevk>
hsivonen: this was quite an old change though so some of the testing and bug filing was likely subpar
12:07
<annevk>
hsivonen: ah
12:07
<annevk>
at least, I think it's old
12:08
<hsivonen>
ok
12:29
<littledan>
I'm trying to trace where in the specs origin checks happen. I can see how it works for method calls from WebIDL, or the special checks for Document and Location, but I'm having trouble finding the checks for ordinary objects. Does anyone know where these are specified?
12:38
<annevk>
littledan: what kind of object are you thinking of?
12:39
<annevk>
littledan: are you specifically asking about infrastructure Fx has that no other browser has?
12:40
<littledan>
no, I think all browsers have this. Or at least V8 has it.
12:40
<littledan>
I'll write a test case, just a minute
12:41
<Ms2ger>
I thought the idea was that it was impossible to get your hands on such an object?
12:44
<annevk>
Ms2ger: khan.gif, alt: Khan screaming DOCUMENT.DOMAIN
12:44
<Ms2ger>
Ha
12:44
<annevk>
euh, Khan isn't the one screaming, but you got it
12:44
<Ms2ger>
For a moment there I managed to forgot about it
12:45
<Ms2ger>
Way to ruin my day :)
13:39
<littledan>
right, I was mistaken; sorry for the noise