Bug 1301055 - part1 : allow to replay the same video again.
MozReview-Commit-ID: LNz6vEeMZOL
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -4515,27 +4515,22 @@ var BrowserEventHandler = {
if (this._inCluster) {
aEvent.preventDefault();
}
break;
case 'MozMouseHittest':
this._handleRetargetedTouchStart(aEvent);
break;
case 'OpenMediaWithExternalApp': {
- if (aEvent.target.moz_video_uuid) {
- return;
- }
let mediaSrc = aEvent.target.currentSrc || aEvent.target.src;
- if (!aEvent.target.moz_video_uuid) {
- aEvent.target.moz_video_uuid = uuidgen.generateUUID().toString();
- }
+ let uuid = uuidgen.generateUUID().toString();
Services.androidBridge.handleGeckoMessage({
type: "Video:Play",
uri: mediaSrc,
- uuid: aEvent.target.moz_video_uuid
+ uuid: uuid
});
break;
}
}
},
_handleRetargetedTouchStart: function(aEvent) {
// we should only get this called just after a new touchstart with a single