discourse/test/javascripts/lib
Martin Brennan 7ff58f1787
FIX: Disable preloading audio + video when secure media enabled (#8922)
Meta topic: https://meta.discourse.org/t/secure-media-uploads-expire/140894

This fixes the issue where if secure media was enabled, audio
and video files would do an initial load using the presigned
URL for the media to get metadata information e.g. duration of
track/video. However this started the expiry countdown for the
URL, so when a user pressed play on the media after 15 seconds
the media would be expired and AWS would return a 403 error.

We do not preload media if secure media is enabled. Otherwise
we just set the preload type to "metadata" which is the browser
default anyway.
2020-02-11 11:49:58 +10:00
..
bbcode-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
category-badge-test.js.es6 FIX: Make category-chooser show all parent categories (#8706) 2020-01-19 13:07:54 +02:00
click-track-edit-history-test.js.es6 FIX: Missing User objects in Utilities 2019-11-13 15:55:32 -05:00
click-track-profile-page-test.js.es6 DEV: skip click-track to attempt to reduce timeouts in tests (#7836) 2019-07-02 10:08:28 +02:00
click-track-test.js.es6 FIX: Missing User objects in Utilities 2019-11-13 15:55:32 -05:00
computed-test.js.es6 DEV: Import EmberObject rather than global variable (#8256) 2019-10-29 14:23:50 -05:00
discourse-test.js.es6 FIX: getURL on a subfolder site should ignore prefix in middle of URL (#8794) 2020-01-27 17:51:46 +00:00
emoji-store-test.js.es6 FEATURE: favorites emojis will also show in composer autocomplete (#8011) 2019-08-16 11:47:03 +02:00
emoji-test.js.es6 FIX: Respect enable_inline_emoji_translation setting in titles 2019-12-03 20:39:11 +01:00
formatter-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
highlight-text-test.js.es6 DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
i18n-test.js.es6 FIX: Escape $ in translations before interpolating (#8100) 2019-09-16 13:52:49 -04:00
icon-library-test.js.es6 Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
key-value-store-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
load-script-test.js.es6 DEV: skip load-script to prevent timeouts (#7817) 2019-06-27 10:57:40 +02:00
oneboxer-test.js.es6 Add tests for oneboxer.js.es6 (#8418) 2019-11-28 08:20:32 +10:00
preload-store-test.js.es6 DEV: Ember linting - disallow Ember.* variable usage (#8782) 2020-02-05 10:14:42 -06:00
pretty-text-test.js.es6 FIX: Disable preloading audio + video when secure media enabled (#8922) 2020-02-11 11:49:58 +10:00
sanitizer-test.js.es6 DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
screen-track-test.js.es6 Skip test for now 2019-04-18 17:55:16 +10:00
search-test.js.es6 FEATURE: Allow scoping search to tag (#8345) 2019-11-14 10:40:26 +10:00
sharing-test.js.es6 FEATURE: adds plugin sharing api 2018-06-13 13:25:51 +02:00
text-direction-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
to-markdown-test.js.es6 FIX: Properly convert quotes to Markdown (#8808) 2020-02-07 16:25:23 +01:00
tooltip-test.js.es6 DEV: prevents asyncTestDiscourse/controllerFor/fixture to leak (#7717) 2019-06-06 13:10:41 +02:00
upload-short-url-test.js.es6 FEATURE: Use upload:// short URL for videos and audio in composer (#8760) 2020-01-23 09:41:39 +10:00
uploads-test.js.es6 FEATURE: Use upload:// short URL for videos and audio in composer (#8760) 2020-01-23 09:41:39 +10:00
url-test.js.es6 DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
user-search-test.js.es6 FIX: Do not skip some emails in user search (#8317) 2019-11-11 18:42:45 +02:00
utilities-test.js.es6 FIX: Do not autocomplete categories or emojis in code blocks (#8459) 2019-12-09 15:07:15 +02:00
white-lister-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00