Change screen resolution information in Geckofx

I am writing a browser application using C # Language and the GeckoFX browser library.
When I test the browser using whatismybrowser.com it shows my screen resolution (1366x768). I want to change this information as a tool to work with firefox responsiveUI.
I'm trying to tweak the setup devtools.responsiveUI.currentPreset

but it still doesn't work.
I need help changing the screen resolution information so any site will catch my custom screen resolution. Thank!

My custom browser

My custom browser

Firefox Request Response Tool

Firefox responsiveUI tool

+3


source to share


1 answer


GeckoFX uses the same core component as the Firefox browser. If you check Firefox, it also shows your computer screen. I don't think faking screen resolutions is possible.



You did not mention your reason. If the reason is design related, you don't need to worry about screen size, browser size matters.

0


source







All Articles