Allow attribute will take precedence over 'allowfullscreen'.

Created on 6 July 2020, about 5 years ago
Updated 30 May 2025, about 2 months ago

Latest browser updates are generating the following message:
Allow attribute will take precedence over 'allowfullscreen'.

Change is as simple as changing the order of "allow" and "allowfullscreen" attributes:

diff --git a/sites/all/modules/youtube/youtube.theme.inc b/sites/all/modules/youtube/youtube.theme.inc
--- a/sites/all/modules/youtube/youtube.theme.inc
+++ b/sites/all/modules/youtube/youtube.theme.inc
@@ -126,8 +126,8 @@
     'src' => $src,
     'title' => $player_title,
     'frameborder' => "0",
-    'allowfullscreen' => "",
     "allow" => implode('; ', $allow),
+    'allowfullscreen' => "",
   );
πŸ› Bug report
Status

Closed: outdated

Version

1.8

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain dtamajon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024