This mirrors setters that are already available for the other "media data" field, and is needed to update the media type without recreating the `Device` (which can cause state synchronisation issues with the fields of `Device` that are computed internally by Stylo). Imports https://github.com/servo/stylo/pull/410 Differential Revision: https://phabricator.services.mozilla.com/D310927