- From: Franklin Yu <notifications@github.com>
- Date: Tue, 04 Dec 2018 12:11:53 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 4 December 2018 20:12:14 UTC
According to Can I Use link above, Safari doesn't support `AbortController`, but MDN says otherwise: https://developer.mozilla.org//en-US/docs/Web/API/AbortController#Browser_compatibility How can I verify this? I tried this JavaScript code: ```javascript const controller = new AbortController() const signal = controller.signal document.getElementById('download').addEventListener('click', fetchVideo) document.getElementById('abort').addEventListener('click', () => { controller.abort() console.log('Download aborted') }) // some random large image I found online const url = 'https://upload.wikimedia.org/wikipedia/commons/6/6e/Monasterio_Khor_Virap%2C_Armenia%2C_2016-10-01%2C_DD_25.jpg' function fetchVideo() { fetch(url, {signal}) .then( r => r.blob() ) .then( b => console.log('success') ) .catch( e => console.error('Download error: ' + e.message) ) } ``` but my Internet is too fast, and the image finished in a second so I cannot hit "Abort" before that. Any other way to test it? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/20#issuecomment-444240882
Received on Tuesday, 4 December 2018 20:12:14 UTC