discourse/test/javascripts
Martin Brennan 0df72a51b8
FIX: Stop infinite lookup-urls issue for video/audio on page (#9096)
Meta report: https://meta.discourse.org/t/excessive-requests-to-uploads-lookup-urls-leading-to-429-response/143119

* The data-orig-src attribute was not being removed from cooked
video and audio so the composer was infinitely trying to get the
URLs for them, which would never resolve to anything
* Also the code that retrieved the short URL was unscoped, and was
getting everything on the page. if running from the composer we
now scope to the preview window
* Also fixed a minor issue where the element href for the video
and audio tags was not being set when the short URL was found
2020-03-03 15:44:01 +11:00
..
acceptance DEV: Import pretender instead of global server var (#8996) 2020-03-02 14:24:31 -05:00
admin DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
components DEV: Import pretender instead of global server var (#8996) 2020-03-02 14:24:31 -05:00
controllers DEV: Use async functions in tests (#9087) 2020-03-02 21:20:19 +01:00
ember DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
fixtures DEV: Import pretender instead of global server var (#8996) 2020-03-02 14:24:31 -05:00
helpers DEV: Use async functions in tests (#9087) 2020-03-02 21:20:19 +01:00
initializers FEATURE: Load translation overrides without JS eval 2019-11-05 19:16:38 +01:00
lib FIX: Stop infinite lookup-urls issue for video/audio on page (#9096) 2020-03-03 15:44:01 +11:00
mixins FIX: makes setting-object capable of defining value/name properties itself (#9003) 2020-02-19 10:01:21 +01:00
models DEV: Use async functions in tests (#9087) 2020-03-02 21:20:19 +01:00
utils DEV: adds afterRender decorator (#8864) 2020-02-10 08:13:13 +01:00
widgets DEV: Ember linting - disallow Ember.* variable usage (#8782) 2020-02-05 10:14:42 -06:00
plugin_tests.js.erb Support for Acceptance tests in plugins 2015-08-27 17:07:11 -04:00
test_helper.js DEV: Import pretender instead of global server var (#8996) 2020-03-02 14:24:31 -05:00