On 2015-08-21 6:17 PM, Chris Peterson wrote:
Does Gecko have a precedent for rewriting certain HTML patterns? YouTube
is migrating from Flash to HTML video, but many third-party websites
copied YouTube's old example code to embedded Flash videos. YouTube's
current embedding code automatically switches between Flash and HTML
video, but YouTube can't fix third-party websites still using the old
embedding code.
Bug 769117 discusses whether Gecko should detect YouTube's old embedding
boilerplate and automatically rewrite it to use the current code.
Firefox and Safari extensions [1] [2] already do this, but should Gecko
include this feature directly? It would improve users' video experience
and fix dead links if/when Firefox or YouTube stop supporting Flash.
OTOH, this is a site-specific workaround and thus might not belong in
Gecko itself.
We have done a site specific workaround in the past for hotmail that we
almost shipped <https://bugzilla.mozilla.org/show_bug.cgi?id=627729>, so
there is prior art here.
I think that for the specific case at hand, it does make sense to add a
site-specific workaround, since I think that the user facing benefit
trumps the technical purity.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform