diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Browsers.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Browsers.psm1 index 9ba439062..3269acbd9 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Browsers.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Browsers.psm1 @@ -10,7 +10,8 @@ function Get-ChromeDriverVersion { function Get-FirefoxVersion { $firefoxVersion = firefox --version - return $firefoxVersion + $aptSourceRepo = Get-AptSourceRepository -PackageName "mozillateam" + return "$firefoxVersion (apt source repository: $aptSourceRepo)" } function Get-GeckodriverVersion { diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index e486305e4..d6e98c652 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -246,16 +246,11 @@ $browsersAndDriversList = @( (Get-ChromiumVersion), (Get-EdgeVersion), (Get-EdgeDriverVersion), - (Get-SeleniumVersion) + (Get-SeleniumVersion), + (Get-FirefoxVersion), + (Get-GeckodriverVersion) ) -if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) { - $browsersAndDriversList += @( - (Get-FirefoxVersion), - (Get-GeckodriverVersion) - ) -} - $markdown += New-MDList -Style Unordered -Lines $browsersAndDriversList $markdown += New-MDHeader "Environment variables" -Level 4 $markdown += Build-BrowserWebdriversEnvironmentTable | New-MDTable diff --git a/images/linux/scripts/installers/firefox.sh b/images/linux/scripts/installers/firefox.sh index 968bd84ac..5008d962d 100644 --- a/images/linux/scripts/installers/firefox.sh +++ b/images/linux/scripts/installers/firefox.sh @@ -7,8 +7,18 @@ # Source the helpers for use with the script source $HELPER_SCRIPTS/install.sh +FIREFOX_REPO="ppa:mozillateam/ppa" + # Install Firefox -apt-get install -y firefox +add-apt-repository $FIREFOX_REPO -y +apt-get update +apt-get install --target-release 'o=LP-PPA-mozillateam' -y firefox + +# Remove source repo's +add-apt-repository --remove $FIREFOX_REPO + +# Document apt source repo's +echo "mozillateam $FIREFOX_REPO" >> $HELPER_SCRIPTS/apt-sources.txt # add to gloabl system preferences for firefox locale en_US, because other browsers have en_US local. # Default firefox local is en_GB diff --git a/images/linux/scripts/tests/Browsers.Tests.ps1 b/images/linux/scripts/tests/Browsers.Tests.ps1 index db1c30ef6..3b920351b 100644 --- a/images/linux/scripts/tests/Browsers.Tests.ps1 +++ b/images/linux/scripts/tests/Browsers.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Firefox" -Skip:(Test-IsUbuntu22) { +Describe "Firefox" { It "Firefox" { "sudo -i firefox --version" | Should -ReturnZeroExitCode } diff --git a/images/linux/ubuntu2204.pkr.hcl b/images/linux/ubuntu2204.pkr.hcl index cf95a117b..0042e7363 100644 --- a/images/linux/ubuntu2204.pkr.hcl +++ b/images/linux/ubuntu2204.pkr.hcl @@ -287,6 +287,7 @@ build { "${path.root}/scripts/installers/codeql-bundle.sh", "${path.root}/scripts/installers/containers.sh", "${path.root}/scripts/installers/dotnetcore-sdk.sh", + "${path.root}/scripts/installers/firefox.sh", "${path.root}/scripts/installers/microsoft-edge.sh", "${path.root}/scripts/installers/gcc.sh", "${path.root}/scripts/installers/gfortran.sh",