Problems with Firefox config

Hi all,

I’m having some problems getting a private instance of WPT working with Firefox. I’m reasonably sure the problem is configuration related, but I can’t spot exactly where. IE works OK. I am guessing the problem is in WPT retrieving the job - they queue up and never go anywhere.

Below are my config files for URLBlast and the WPT driver, as well as locations.ini. I have made a couple of changes / additions in an effort to get things working, so some of the config entries are probably unnecessary. Can anyone spot where I’m going wrong?

Also of interest: If I try to kick off a test pointed at my Firefox instance, WPT reports that there are 6 other tests waiting. This doesn’t seem right as the work/jobs/ folders are empty, so I’m not sure how it calculates this figure?

Any help gratefully received!

Thanks
Ben.

WPTDriver.ini:

[code][WebPagetest]
url=http://centos:8888/
location=BensPC
browser=IE8,Firefox
key=TestKey123

[BensPC-Firefox]
browser=Firefox
label=“Bens PC - FireFox 18”
exe=“C:\Program Files)\Mozilla Firefox\firefox.exe”
options=‘-profile “%PROFILE%” -no-remote’
location=BensPC-Firefox
key=TestKey456
;installer=http://www.webpagetest.org/installers/browsers/firefox.dat
template=firefox[/code]

locations.ini:

[code][locations]
1=BensPC
default=BensPC

[BensPC]
1=BensPC-IE8
2=BensPC-Firefox
label=BensPC

[BensPC-IE8]
browser=IE8
latency=0
label=“Bens PC - IE 8”
;browserExe=pagetest.exe
key=TestKey123

[BensPC-Firefox]
browser=Firefox
label=“Bens PC - FireFox 18”
key=TestKey456[/code]

URLBlast.ini

[code][Configuration]
Startup Delay=30
Log File=c:\webpagetest\agent\urlblast
Timeout=120
use current account=1

; Where to get work from
Url Files Url=http://centos:8888/work/
Location=BensPC-IE8
Location Key=TestKey123[/code]

Your wptdriver.ini should be pointing to the BensPC-Firefox location and should use the TestKey456 key.

Thanks for the reply, Patrick, but I’m not sure I understand what you mean: Looking at WPTDriver.ini, to me it looks like it’s already pointing to BensPC-Firefox with TestKey456?

Would you be able to copy / paste a corrected version of the file so I can see where I’m going wrong?

Thanks for your help.
Ben.

According to what you pasted above, the wptdriver.ini is:

[WebPagetest]
url=http://centos:8888/
location=BensPC
browser=IE8,Firefox
key=TestKey123

[BensPC-Firefox]
browser=Firefox
label="Bens PC - FireFox 18"
exe="C:\Program Files)\Mozilla Firefox\firefox.exe"
options='-profile "%PROFILE%" -no-remote'
location=BensPC-Firefox
key=TestKey456
;installer=http://www.webpagetest.org/installers/browsers/firefox.dat
template=firefox

it should be:

[WebPagetest]
url=http://centos:8888/
location=BensPC-Firefox
browser=Firefox
key=TestKey456

[Firefox]
exe="C:\Program Files)\Mozilla Firefox\firefox.exe"
options='-profile "%PROFILE%" -no-remote'
template=firefox

Ah! I see what you did there.

Will give it a shot when I’m back in the office. Thanks for your help :slight_smile:

Hi Pat,

I’m facing problem with Firefox as well -

here’s what i have in my wptdriver.ini:
[color=#0000CD][WebPagetest][/color]
url=http://viv.smo.local
location=Local-WPTDriver
browser=Chrome
key=TestKey123
;Automatically install and update support software (Flash, Silverlight, etc)
software=http://www.webpagetest.org/installers/software.dat

[color=#0000CD][Chrome][/color]
exe=“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe”
options=‘–load-extension=“%WPTDIR%\extension” --user-data-dir=“%profile%” --no-proxy-server’
installer=http://www.webpagetest.org/installers/browsers/chrome.dat

[color=#FF0000][Firefox][/color]
exe=“C:\Program Files (x86)\Mozilla Firefox\firefox.exe”
options=‘-profile “%profile%” -no-remote’
installer=http://www.webpagetest.org/installers/browsers/firefox.dat
template=firefox

What does your locations.ini look like?

This is how my locations.ini looks like -

[color=#0000CD]

[locations]
1=Local
[color=#006400];2=Public_Dulles [/color]
default=Local

[color=#006400]
;
; These are the top-level locations that are listed in the location dropdown
; Each one points to one or more browser configurations
;
[/color]
[Local]
1=Local-URLBlast
2=Local-WPTDriver
label=Local
connectivity=LAN

[color=#006400]
;[Public_Dulles]
;1=WPT_Dulles_IE8
;label=“WebPagetest.org - Dulles, VA”

;
; Tese are the browser-specific configurations that match the configurations
; defined in the top-level locations. Each one of these MUST match the location
; name configured on the test agent (urlblast.ini or wptdriver.ini)
;
[/color]
[Local-URLBlast]
browser=IE 9
latency=0
label=“Local - IE 9”
[color=#006400];browserExe=pagetest.exe[/color]
key=TestKey123
connectivity=LAN

[color=#006400]
;
; For a wptdriver configuration (chrome, firefox), the browser labels here
; MUST match the labels used in wptdriver.ini
;
[/color]
[Local-WPTDriver]
browser=Chrome,Firefox
label=“Local”
connectivity=LAN
[color=#006400]
;
; This is an exaple of a “remote” configuration where tests can be proxied to a remote
; webpagetest instance. The test will be run by the remote server but the results
; will be downloaded to the local server and deleted from the remote agent
;
; Each location that you want to use from the remote server needs to be configured
; individually on the local configuration (location names do not need to match)
;
; To use the public webpagetest.org instance you will need an API key
;

;[WPT_Dulles_IE8]
;browser=IE 8
;label=“WebPagetest.org Dulles, VA - IE8”
; relayServer=“http://www.webpagetest.org/
; relayKey=
; relayLocation=Dulles_IE8
[/color]
[/color]

Is chrome working but Firefox is not? Does firefox launch but just not go anywhere or does it not even launch? If it launches but doesn’t run the test then you just need to update the test agent: http://www.webpagetest.org/forums/showthread.php?tid=11972

Yes, chrome and IE are working fine. The problem seem to exist with Firefox only. The firefox browser launches with url - “http://127.0.0.1:8888/blank.html” but doesn’t run the test cases.
I’ve updated the agent folder with the 6 files available in the wptupdate.zip but it doesn’t seem to work out in my case.

You need to put the zip file and ini in work/update on the server (or delete the files that are there). Otherwise the one you copy to the agent directory will automatically revert itself when you start it up. The agents auto-install from the server if the version number does not match what is on the server (makes it easier to deploy updates and revert if something goes wrong).

Hi Patrick,

Sorry for the late reply, i was away for a while. Per the firefox 18 fix, i’ve downloaded both the files update.zip and wptupdate.zip from the URL mentioned and then deleted all the files from ~/www/work/update and then placed the downloaded zipped files - update.zip & wptupdate.zip along with update.ini & wptupdate.ini (extracted from the zip files) on to the folder there. I also replaced the extracted contents from those zip files on to ~/agent directory, but still there’s no improvement, i mean, the problem still persists :(.

Hi

I’m facing the same issue with firefox. I’m using 2.9 version of private instance and have firefox version 22. The setup works well for IE9 and chrome, but not on firefox. I’m running this on a 64bit machine with Server 2008 R2 OS.
Any hint to resolve this would be of great help.

Further analysis into the code I found that flow is breaking at openUILink(url, where, isThirdPartyFixupAllowed, postData, referrerUrl); in overlay.js (part of extensions). I tried commenting this line and using window.open(url), and was successful in opening the url and getting the test data. However had issue in closing the original window. I found that openUILink(…) method is part of utilityoverlay.js, not sure if I need to make any entry so that this js is recognized. can you please let me know how openUILink(…) setup needs to be done?

Thanks

Hi , I made a temporary fix for this. used - gBrowser.selectedTab = gBrowser.addTab(url); instead of openUILink(…)