Currently its possible to override the User-Agent via Page.overrideUserAgent. This issue is about adding support for Page.overridePlatform which overrides the navigator.platform property.
<rdar://problem/104952311>