B2G/gecko/content/html/content/test/file_fullscreen-utils.js
// Calls |callback| when the next fullscreenerror is dispatched to inDoc||document.
Calls |callback| when the next fullscreenerror is dispatched to inDoc||document.
Calls |callback| when the next fullscreenerror is dispatched to inDoc||document .
function addFullscreenErrorContinuation(callback, inDoc) {
  var doc = inDoc || document;
  var listener = function(event) {
    doc.removeEventListener("mozfullscreenerror", listener, false);
    setTimeout(function(){callback(event);}, 0);
  };
  doc.addEventListener("mozfullscreenerror", listener, false);
}
function addFullscreenErrorContinuation ( callback , inDoc ) { var doc = inDoc || document ; var listener = function ( event ) { doc . removeEventListener ( "mozfullscreenerror" , listener , false ) ; setTimeout ( function ( ) { callback ( event ) ; } , 0 ) ; } ; doc . addEventListener ( "mozfullscreenerror" , listener , false ) ; }
Calls |callback| when the next fullscreenerror is dispatched to inDoc||document.
Calls |callback| when the next fullscreenerror is dispatched to inDoc||document .