Skip to content
  • Mike Conley's avatar
    Bug 1548296 - Attach Picture-in-Picture toggle on UAWidgetSetupOrChange event... · db962775
    Mike Conley authored
    Bug 1548296 - Attach Picture-in-Picture toggle on UAWidgetSetupOrChange event rather than canplay. r=JSON_voorhees
    
    Videos can fire their "canplay" events even when they're not part of the DOM. This
    means that videos that have already fired that event won't get the
    PictureInPictureToggleChild properly attached after being inserted.
    
    The UAWidgetSetupOrChange event, however, is fired for video events once they've
    been bound to the DOM, so we can use that instead.
    
    Differential Revision: https://phabricator.services.mozilla.com/D44541
    
    --HG--
    extra : moz-landing-system : lando
    db962775