Ensure "platform" override in Emulation.setUserAgentOverride applies only to the current tab
Categories
(Remote Protocol :: CDP, task, P3)
Tracking
(Not tracked)
People
(Reporter: gl, Assigned: gl)
References
Details
In Bug 1595710, we added support for "platform" to Emulation.setUserAgentOverride, which applies the platform override to all targets / tabs at once. This bug covers looking at applying the platform override to the current tab only.
Assignee | ||
Comment 1•4 years ago
|
||
Hi Nika and smaug, I think we're looking at implementing a "platform" override similar to general.platform.override
onto the docShell
so that we emulate the returned navigator.platform
per tab instead of the global setting. Wanted to get your general thoughts about the approach and more guidance on how to contribute the change to the docShell.
Comment 2•4 years ago
|
||
Note that it might be similar to the user agent override, which works like a charm via the docShell.
Comment 3•4 years ago
|
||
You probably want to add a synced field to the BrowsingContext
like PlatformOverride
and set it from the parent process. You'd then read it from the BrowsingContext
in the corresponding child process to return the correct value.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
Closing this since we are already working on Bug 1647972 first to avoid overriding the platform for all targets.
Updated•4 years ago
|
Description
•