File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ const FIREFOX_CANARY_LABEL: &str = "FIREFOX_NIGHTLY";
5555const FIREFOX_ESR_LABEL : & str = "FIREFOX_ESR" ;
5656const FIREFOX_VERSIONS_ENDPOINT : & str = "firefox_versions.json" ;
5757const FIREFOX_HISTORY_ENDPOINT : & str = "firefox_history_stability_releases.json" ;
58+ const FIREFOX_HISTORY_MAJOR_ENDPOINT : & str = "firefox_history_major_releases.json" ;
5859const FIREFOX_HISTORY_DEV_ENDPOINT : & str = "firefox_history_development_releases.json" ;
5960const FIREFOX_NIGHTLY_URL : & str =
6061 "https://download.mozilla.org/?product=firefox-nightly-latest-ssl&os={}&lang={}" ;
@@ -475,12 +476,15 @@ impl SeleniumManager for FirefoxManager {
475476 }
476477
477478 let mut firefox_versions =
478- self . request_versions_from_online ( FIREFOX_HISTORY_ENDPOINT ) ?;
479+ self . request_versions_from_online ( FIREFOX_HISTORY_MAJOR_ENDPOINT ) ?;
479480 if firefox_versions. is_empty ( ) {
480- firefox_versions =
481- self . request_versions_from_online ( FIREFOX_HISTORY_DEV_ENDPOINT ) ?;
481+ firefox_versions = self . request_versions_from_online ( FIREFOX_HISTORY_ENDPOINT ) ?;
482482 if firefox_versions. is_empty ( ) {
483- return self . unavailable_discovery ( ) ;
483+ firefox_versions =
484+ self . request_versions_from_online ( FIREFOX_HISTORY_DEV_ENDPOINT ) ?;
485+ if firefox_versions. is_empty ( ) {
486+ return self . unavailable_discovery ( ) ;
487+ }
484488 }
485489 }
486490
You can’t perform that action at this time.
0 commit comments