Lines Matching defs:extension
31 * @param string $extension The path to the xpi extension.
34 public function addExtension($extension)
36 $this->extensions[] = $extension;
42 * @param string $extension_datas The path to the folder containing the datas to add to the extension
123 foreach ($this->extensions as $extension) {
124 $this->installExtension($extension, $temp_dir);
151 // Intentionally do not use `tempnam()`, as it creates empty file which zip extension may not handle.
186 * @param string $extension The path to the extension.
188 * @return string The path to the directory of this extension.
190 private function installExtension($extension, $profile_dir)
193 $this->extractTo($extension, $temp_dir);
211 // Get the extension id from the install manifest.
217 $this->extractTo($extension, $ext_dir);
221 throw new WebDriverException('Cannot get the extension id from the install manifest.');
269 * @param string $xpi The path to the .xpi extension.
283 throw new \Exception("Failed to open the firefox extension. '$xpi'");
286 throw new \Exception("Firefox extension doesn't exist. '$xpi'");