[
https://issues.jboss.org/browse/JBIDE-9539?page=com.atlassian.jira.plugin...
]
Yahor Radtsevich commented on JBIDE-9539:
-----------------------------------------
*Note for self*
Working snippet demonstrating changing of the User-Agent header in XULRunner:
{code:java}
nsIServiceManager serviceManager = Mozilla.getInstance().getServiceManager();
nsIPrefService prefService =
(nsIPrefService) serviceManager.getServiceByContractID(
"(a)mozilla.org/preferences-service;1", nsIPrefService.NS_IPREFSERVICE_IID);
nsIPrefBranch prefBranch = prefService.getBranch("general.useragent");
prefBranch.setCharPref("override", "my custom user-agent");
{code}
Browsersim app for testing mobile/desktop web apps
--------------------------------------------------
Key: JBIDE-9539
URL:
https://issues.jboss.org/browse/JBIDE-9539
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Visual Page Editor core
Affects Versions: 3.3.0.M2
Reporter: Yahor Radtsevich
Assignee: Yahor Radtsevich
Labels: new_and_noteworthy
Fix For: 3.3.0.Beta1
Attachments: Browsersim mockup.bmml, Browsersim mockup.bmml, Browsersim
mockup.png, browsersim-frame-screenshot1.png
Make possible to preview the rendering of web pages for different devices.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira