From e72505721405c6be7e07f9bebd8f87c1dbe832ba Mon Sep 17 00:00:00 2001 From: Dave Vandyke Date: Fri, 10 Dec 2021 16:38:20 +0000 Subject: [PATCH] Add YouTube test page There are lots of different types of embedded YouTube videos and ways of controlling them using the YouTube Iframe API[1]. Adding a test page so that we can easily test they all work correctly with our extension and browsers. 1 - https://developers.google.com/youtube/iframe_api_reference --- index.html | 3 +- .../index.html | 0 .../main.js | 0 privacy-protections/index.html | 3 +- .../youtube-click-to-load/index.html | 243 ++++++++++++++++++ 5 files changed, 247 insertions(+), 2 deletions(-) rename privacy-protections/{click-to-load => facebook-click-to-load}/index.html (100%) rename privacy-protections/{click-to-load => facebook-click-to-load}/main.js (100%) create mode 100644 privacy-protections/youtube-click-to-load/index.html diff --git a/index.html b/index.html index ae49bd7..8807bdc 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,8 @@

Privacy Protections Tests

  • Referrer trimming
  • HTTPS upgrades
  • HTTPS upgrade loop protection
  • -
  • Facebook click to load
  • +
  • Facebook click to load
  • +
  • YouTube click to load
  • Surrogates
  • Global Privacy Control
  • AMP Links
  • diff --git a/privacy-protections/click-to-load/index.html b/privacy-protections/facebook-click-to-load/index.html similarity index 100% rename from privacy-protections/click-to-load/index.html rename to privacy-protections/facebook-click-to-load/index.html diff --git a/privacy-protections/click-to-load/main.js b/privacy-protections/facebook-click-to-load/main.js similarity index 100% rename from privacy-protections/click-to-load/main.js rename to privacy-protections/facebook-click-to-load/main.js diff --git a/privacy-protections/index.html b/privacy-protections/index.html index 4a30106..46d1a4c 100644 --- a/privacy-protections/index.html +++ b/privacy-protections/index.html @@ -18,7 +18,8 @@

    Privacy Protections Tests

  • Referrer trimming
  • HTTPS upgrades
  • HTTPS upgrade loop protection
  • -
  • Facebook click to load
  • +
  • Facebook click to load
  • +
  • YouTube click to load
  • Surrogates
  • Global Privacy Control
  • AMP Links
  • diff --git a/privacy-protections/youtube-click-to-load/index.html b/privacy-protections/youtube-click-to-load/index.html new file mode 100644 index 0000000..77fa375 --- /dev/null +++ b/privacy-protections/youtube-click-to-load/index.html @@ -0,0 +1,243 @@ + + + + + + + YouTube click to load + + + + +
    +

    + [Home] ↣ + [Privacy Protections Tests] ↣ + [YouTube click to load] +

    +

    YouTube click to load tests

    +

    + Different types of embedded YouTube videos and playlists. Some are created + and/or controlled using the YouTube Iframe API. + Behaviour of the videos should remain the same when the extension is + enabled (after they are clicked to load), except where noted. +

    +

    + When testing, ensure that requests to YouTube are blocked untill the first + video is clicked to load. Note that requests to apis.google.com are not + expected to be blocked. +

    +

    +

    +
    +
    +

    wwww.youtube.com embedded video.

    +
      +
    • Should be upgraded to youtube-nocookie.com.
    • +
    • Unblock button should be displayed in header, as container is short.
    • +
    + +
    +
    +

    + www.youtube-nocookie.com (muted) auto-play video. +

    +
      +
    • Auto-play should be prevented.
    • +
    +

    + +
    +
    +

    youtube.com embedded playlist.

    +
      +
    • Should be upgraded to youtube-nocookie.com.
    • +
    + +
    +
    +

    YouTube subscribe button

    +
      +
    • Subscribe button should be blocked.
    • +
    +
    +
    +
    +

    youtube.com video created with SDK.

    +
      +
    • Should be upgraded to youtube-nocookie.com.
    • +
    • Ensure the video jumps 5 minutes forward when first loaded.
    • +
    • Note: It is expected that the video will auto-play sometimes. Even + when using click to load.
    • +
    +
    +
    +
    +

    youtube.com playlist created with SDK.

    +
      +
    • Should be upgraded to youtube-nocookie.com.
    • +
    +
    +
    +
    +

    Existing www.youtube.com embedded video which is controlled by the SDK.

    +
      +
    • Should be upgraded to youtube-nocookie.com.
    • +
    • Ensure the border colours change as the video is played/paused/loading.
    • +
    • Ensure the external Play/Pause buttons work.
    • +
    + + + +
    +
    +

    youtube-nocookie.com embedded 360 video with controls.

    +
      +
    • + Ensure that the current value for yaw etc is updated when the video's + built-in controls are used. +
    • +
    • + Ensure that the video is flipped (+180 roll) when the external Flip + button is clicked. +
    • +
    +
    + + + + +
    + + + + + + +
    + +