From d93586c63f257b658fc72e4f9e4edbd1276a140f Mon Sep 17 00:00:00 2001 From: Rishabh Date: Wed, 11 Sep 2019 20:19:54 +0530 Subject: [PATCH] FEATURE: Whitelist the `allowfullscreen` iframe attribute (#8086) Adding this to core allows showing the fullscreen button on external iframe videos like Vimeo. https://meta.discourse.org/t/full-screen-videos-plugin/90869 will not be needed anymore. --- app/assets/javascripts/pretty-text/white-lister.js.es6 | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/pretty-text/white-lister.js.es6 b/app/assets/javascripts/pretty-text/white-lister.js.es6 index 40918c49c3f..5ea109398bb 100644 --- a/app/assets/javascripts/pretty-text/white-lister.js.es6 +++ b/app/assets/javascripts/pretty-text/white-lister.js.es6 @@ -167,6 +167,7 @@ const DEFAULT_LIST = [ "iframe[marginheight]", "iframe[marginwidth]", "iframe[width]", + "iframe[allowfullscreen]", "img[alt]", "img[height]", "img[title]",