zlacker

[return to "WebKit Quirks.cpp"]
1. babelf+e8[view] [source] 2022-10-14 20:02:19
>>Bodaci+(OP)
This bit was interesting.

  bool Quirks::requiresUserGestureToPauseInPictureInPicture() const
  {
  #if ENABLE(VIDEO_PRESENTATION_MODE)
      // Facebook, Twitter, and Reddit will naively pause a <video> element that has scrolled out of the viewport,
      // regardless of whether that element is currently in PiP mode.
      // We should remove the quirk once <rdar://problem/67273166>, <rdar://problem/73369869>, and <rdar://problem/80645747> have been fixed.
      if (!needsQuirks())
          return false;

      if (!m_requiresUserGestureToPauseInPictureInPicture) {
          auto domain = RegistrableDomain(m_document->topDocument().url()).string();
          m_requiresUserGestureToPauseInPictureInPicture = domain == "facebook.com"_s || domain == "twitter.com"_s || domain == "reddit.com"_s;
      }
  
      return *m_requiresUserGestureToPauseInPictureInPicture;
  #else
      return false;
  #endif
  }
◧◩
2. shadow+hk[view] [source] 2022-10-14 21:21:37
>>babelf+e8
The first rule of browser development is "forget the standard, forget consistency... If it's popular and works in other browsers but not yours, your browser is broken."
◧◩◪
3. matheu+Oz[view] [source] 2022-10-14 23:15:21
>>shadow+hk
Might as well create site-specific browsers.
◧◩◪◨
4. mey+SC[view] [source] 2022-10-14 23:42:22
>>matheu+Oz
I believe those are called native apps.
[go to top]