(&self)
| 156 | } |
| 157 | |
| 158 | fn get_browser_path_map(&self) -> HashMap<BrowserPath, &str> { |
| 159 | HashMap::from([ |
| 160 | ( |
| 161 | BrowserPath::new(WINDOWS, STABLE), |
| 162 | r"Mozilla Firefox\firefox.exe", |
| 163 | ), |
| 164 | ( |
| 165 | BrowserPath::new(WINDOWS, BETA), |
| 166 | // "", |
| 167 | r"Mozilla Firefox\firefox.exe", |
| 168 | ), |
| 169 | ( |
| 170 | BrowserPath::new(WINDOWS, DEV), |
| 171 | r"Firefox Developer Edition\firefox.exe", |
| 172 | ), |
| 173 | ( |
| 174 | BrowserPath::new(WINDOWS, NIGHTLY), |
| 175 | r"Firefox Nightly\firefox.exe", |
| 176 | ), |
| 177 | ( |
| 178 | BrowserPath::new(WINDOWS, ESR), |
| 179 | r"Mozilla Firefox\firefox.exe", |
| 180 | ), |
| 181 | ( |
| 182 | BrowserPath::new(MACOS, STABLE), |
| 183 | "/Applications/Firefox.app/Contents/MacOS/firefox", |
| 184 | ), |
| 185 | ( |
| 186 | BrowserPath::new(MACOS, BETA), |
| 187 | "/Applications/Firefox.app/Contents/MacOS/firefox", |
| 188 | ), |
| 189 | ( |
| 190 | BrowserPath::new(MACOS, DEV), |
| 191 | "/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox", |
| 192 | ), |
| 193 | ( |
| 194 | BrowserPath::new(MACOS, NIGHTLY), |
| 195 | "/Applications/Firefox Nightly.app/Contents/MacOS/firefox", |
| 196 | ), |
| 197 | ( |
| 198 | BrowserPath::new(MACOS, ESR), |
| 199 | "/Applications/Firefox.app/Contents/MacOS/firefox", |
| 200 | ), |
| 201 | (BrowserPath::new(LINUX, STABLE), "/usr/bin/firefox"), |
| 202 | (BrowserPath::new(LINUX, BETA), "/usr/bin/firefox"), |
| 203 | (BrowserPath::new(LINUX, DEV), "/usr/bin/firefox"), |
| 204 | (BrowserPath::new(LINUX, NIGHTLY), "/usr/bin/firefox-trunk"), |
| 205 | (BrowserPath::new(LINUX, ESR), "/usr/bin/firefox"), |
| 206 | ]) |
| 207 | } |
| 208 | |
| 209 | fn discover_browser_version(&mut self) -> Result<Option<String>, Error> { |
| 210 | self.general_discover_browser_version( |
nothing calls this directly
no outgoing calls
no test coverage detected