Webdriver and proxy server for firefox

Value for network.proxy.http_port should be integer (no quotes should be used) and network.proxy.type should be set as 1 (ProxyType.MANUAL, Manual proxy settings) FirefoxProfile profile = new FirefoxProfile(); profile.setPreference(“network.proxy.type”, 1); profile.setPreference(“network.proxy.http”, “localhost”); profile.setPreference(“network.proxy.http_port”, 3128); WebDriver driver = new FirefoxDriver(profile);

How does Same Origin Policy apply to browser extensions?

The same-origin policy (SOP) appplies to ordinary web pages, not browser extensions, even if they are written in JavaScript. What does “different server” mean when the extension code does not origingate from a server? (The extension script might have some kind of orgin, like chrome-extension://longhashidentificationstr, but not an traditional domain/origin.) To communicate with any Web … Read more

The resource at “http://some-urls/some-files.js” was blocked because tracking protection is enabled

This feature call Firefox Tracking Protection. Tracking Protection allows Firefox users to avoid many forms of online tracking. Originally based on the blocklist from antitracking startup Disconnect, the feature offers better privacy while also speeding up page loads by blocking requests to tracking domains. How to turn Off Tracking Protection In the Firefox Location bar, … Read more

How to prevent content being displayed from Back-Forward cache in Firefox?

There are multiple caches involved. There’s the browser’s document cache (bfache), the browser’s HTTP cache, and possibly intermediate HTTP caches. The <meta> tags you show above have absolutely no effect in current Chrome or Firefox. They may have an effect in IE. So chances are, your page is just being read from the browser’s HTTP … Read more

How to revert Firebug to old version?

As I wrote in the Firebug discussion group, that the <body> element is selected first before the actual element you inspected is a bug and I’ve already filed a bug report for it. There is also a bug related to the Inspect Element with Firebug option, which opens the DevTools, but doesn’t actually select the … Read more