| 00:06 | <jyasskin> | AutomatedTester: Are you familiar with https://www.w3.org/2001/tag/doc/promises-guide/? It has terminology for manipulating promises. |
| 09:06 | <MikeSmith> | annevk: now wondering under what conditions browsers send Origin: null. I realize for script running from file: origins, and data:, and for <iframe sandbox="allow-same-origin">. Are there other cases? |
| 09:06 | <annevk> | MikeSmith: redirects across origins |
| 09:07 | <annevk> | MikeSmith: if iframe has allow-same-origin it will not be null |
| 09:08 | <annevk> | MikeSmith: effectively when a request was from an opague origin or more than one origin was involved in the request due to redirects |
| 09:32 | <MikeSmith> | annevk: oh I guess I meant without allow-same-origin |
| 09:34 | <MikeSmith> | so about redirects across origins, to be clear, you mean if a request to, e.g., http://example.com/api redirects to http://api.example.com then the Origin gets set to null? |
| 09:37 | <annevk> | MikeSmith: if the request to example.com/api was a cross-origin request to begin with |
| 09:37 | <MikeSmith> | yeah that’s the context I meant |
| 09:37 | <annevk> | then yes |
| 09:38 | <MikeSmith> | oK |
| 09:38 | <MikeSmith> | thanks |
| 09:38 | <annevk> | MikeSmith: what happens is that request's origin gets set to a new opaque origin, and when that is serialized you get `null` |
| 09:38 | <MikeSmith> | yup |
| 09:39 | <MikeSmith> | I knew about the opaque origin gets serialized null thing, just didn’t realize it happened for redirects in that context |
| 09:39 | <MikeSmith> | this is in the Fetch spec? |
| 09:43 | <annevk> | MikeSmith: https://fetch.spec.whatwg.org/#http-redirect-fetch step 10 |
| 09:46 | <MikeSmith> | annevk: arigatou |
| 09:47 | <annevk> | MikeSmith: curious spelling |
| 09:48 | <annevk> | hipster Japanese |
| 09:48 | <MikeSmith> | hah |
| 09:49 | <MikeSmith> | annevk: that’s a actually pretty-traditional way to romanize it. It’s the most literal transliteration of the actual phonetics |
| 09:50 | <MikeSmith> | a-ri-ga-to-u |
| 09:50 | <MikeSmith> | あ-り-が-と-う |
| 09:54 | <annevk> | Oh |
| 14:37 | <Domenic> | in this context "ou" is pronounced as a "long o". I enjoy the romanization where they go the extra step for you and use ō, so "arigatō" |
| 22:10 | <GPHemsley> | annevk: danke |