The various String generic methods are non-standard APIs and we plan to warn when they're used (bug 1319926) and eventually want to remove them completely (bug 1222552). As a first step we need to replace all String generic uses in Firefox with the counterpart from String.prototype. In browser/base/content/browser-media.js, String.trim needs to be replaced with a call to String.prototype.trim.
Created attachment 8814236 [details] [diff] [review] bug1320144.patch
Thanks for reviewing!
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/c90a24c73fff Remove String generics uses in browser/base/content. r=gijs