diff --git a/www/assets/js/country-list/country-list.js b/www/assets/js/country-list/country-list.js
index ba833df1b1..e1a71f2d23 100644
--- a/www/assets/js/country-list/country-list.js
+++ b/www/assets/js/country-list/country-list.js
@@ -2,7 +2,7 @@
((window) => {
class CountrySelector {
- constructor(selector, subdivisionSelector, isoCompliantJsonBlob) {
+ constructor(selector, subdivisionSelector, isoCompliantJsonBlob, initialCountry, initialState) {
this.countryList = isoCompliantJsonBlob;
this.countries = Object.keys(this.countryList).map((code) => {
return {
@@ -22,9 +22,12 @@
this.countrySelector = selector;
this.subdivisionSelector = subdivisionSelector;
+ this.countrySelector.value = initialCountry;
// Fill in subdivisions
- this.fillSubdivision(this.countries[0].code);
+ this.fillSubdivision(initialCountry ?? this.countries[0].code);
+
+ this.subdivisionSelector.value = initialState;
// Attach listener
this.countrySelector.addEventListener("change", (e) => {
@@ -47,6 +50,7 @@
}
fillSubdivision(countryCode) {
+ this.subdivisionSelector.value = undefined;
const divisions = this.getSubdivisions(countryCode);
const opts = Object.keys(divisions).map((key) => {
return new Option(divisions[key], key);
@@ -60,4 +64,4 @@
}
window.CountrySelector = CountrySelector;
-})(window);
+})(window);
\ No newline at end of file
diff --git a/www/constants.inc b/www/constants.inc
index b6a355c4b8..6dbc8fc451 100644
--- a/www/constants.inc
+++ b/www/constants.inc
@@ -13,7 +13,7 @@ define('SETTINGS_PATH', realpath(WWW_PATH . '/settings/'));
define('TEMP_DIR', realpath(WWW_PATH . '/tmp/'));
define('OE_PATH', realpath(WWW_PATH . '/experiments/'));
-define('WPT_SALT', '2502'); // used to force assets hash
+define('WPT_SALT', '2503'); // used to force assets hash
define('VER_WEBPAGETEST', '21.07'); // webpagetest version
define('VER_TYPOGRAPHY_CSS', @md5_file(ASSETS_PATH . '/css/typography.css') . WPT_SALT); // version of the typography css file
define('VER_LAYOUT_CSS', @md5_file(ASSETS_PATH . '/css/layout.css') . WPT_SALT); // version of the layout css file
diff --git a/www/jsonResult.php b/www/jsonResult.php
index 852ac67c68..9a88a6fe16 100644
--- a/www/jsonResult.php
+++ b/www/jsonResult.php
@@ -62,8 +62,8 @@
if ($ret['statusCode'] == 200) {
$protocol = getUrlProtocol();
- $host = $_SERVER['HTTP_HOST'];
- $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
+ $host = $_SERVER['HTTP_HOST'];
+ $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$urlStart = "$protocol://$host$uri";
$testInfo = TestInfo::fromValues($id, $testPath, $test);
@@ -107,14 +107,14 @@
function getRequestInfoFlags()
{
$getFlags = array(
- "average" => JsonResultGenerator::WITHOUT_AVERAGE,
- "standard" => JsonResultGenerator::WITHOUT_STDDEV,
- "median" => JsonResultGenerator::WITHOUT_MEDIAN,
- "runs" => JsonResultGenerator::WITHOUT_RUNS,
- "requests" => JsonResultGenerator::WITHOUT_REQUESTS,
- "console" => JsonResultGenerator::WITHOUT_CONSOLE,
- "lighthouse" => JsonResultGenerator::WITHOUT_LIGHTHOUSE,
- "rv" => JsonResultGenerator::WITHOUT_REPEAT_VIEW
+ "average" => JsonResultGenerator::WITHOUT_AVERAGE,
+ "standard" => JsonResultGenerator::WITHOUT_STDDEV,
+ "median" => JsonResultGenerator::WITHOUT_MEDIAN,
+ "runs" => JsonResultGenerator::WITHOUT_RUNS,
+ "requests" => JsonResultGenerator::WITHOUT_REQUESTS,
+ "console" => JsonResultGenerator::WITHOUT_CONSOLE,
+ "lighthouse" => JsonResultGenerator::WITHOUT_LIGHTHOUSE,
+ "rv" => JsonResultGenerator::WITHOUT_REPEAT_VIEW
);
$infoFlags = array();
@@ -127,4 +127,4 @@ function getRequestInfoFlags()
$infoFlags[] = JsonResultGenerator::BASIC_INFO_ONLY;
}
return $infoFlags;
-}
+}
\ No newline at end of file
diff --git a/www/templates/account/billing/update-payment-confirm-address.php b/www/templates/account/billing/update-payment-confirm-address.php
index d079476de8..9e56aae39a 100644
--- a/www/templates/account/billing/update-payment-confirm-address.php
+++ b/www/templates/account/billing/update-payment-confirm-address.php
@@ -31,11 +31,8 @@