Support overriding the user agent string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Oxide |
Fix Released
|
Medium
|
Chris Coulson |
Bug Description
We currently provide a mechanism to set the user agent string (like QtWebkit, although we provide a context-wide setting as opposed to a webview-specific setting). We want to the ability to have per-site overrides for the UA string.
With QtWebkit, the webbrowser-app will be handling this itself by changing the userAgent property on the webview for specific sites. This has quite a significant limitation though:
- Say, you want to override the UA string for twitter.com.
- example.org embeds a widget from twitter.com in an iframe.
In this scenario, when you load example.org, we would want to the requests from the iframe to get the twitter-specific UA string. This currently won't happen.
What I'm thinking for Oxide is, that we will provide a mechanism for applications to provide hooks that can modify headers for each HTTP request. It looks like we can do this by implementing net::NetworkDel
Changed in oxide: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in oxide: | |
assignee: | nobody → Chris Coulson (chrisccoulson) |
Changed in oxide: | |
status: | Triaged → Fix Released |