diff --git a/PHPWebDriver/WebDriver.php b/PHPWebDriver/WebDriver.php index c17b39e79..ecb62e81f 100644 --- a/PHPWebDriver/WebDriver.php +++ b/PHPWebDriver/WebDriver.php @@ -37,12 +37,17 @@ protected function methods() { public function session($browser = 'firefox', $additional_capabilities = array(), - $curl_opts = array()) { + $curl_opts = array(), + $browser_profile = null) { $capabilities = new PHPWebDriver_WebDriverDesiredCapabilities(); + // var_dump(func_get_args()); $desired_capabilities = array_merge( $capabilities->$browser, $additional_capabilities ); + if ($browser == 'firefox' && $browser_profile) { + $desired_capabilities['firefox_profile'] = $browser_profile->encoded(); + } // var_dump($desired_capabilities); $curl_opts = $curl_opts + array(CURLOPT_FOLLOWLOCATION => true); @@ -51,8 +56,8 @@ public function session($browser = 'firefox', '/session', array('desiredCapabilities' => $desired_capabilities), $curl_opts); - // var_dump($results); - return new PHPWebDriver_WebDriverSession($results['info']['url']); + //var_dump($results); + return new PHPWebDriver_WebDriverSession($results['info']['url'].$results['sessionId']); } public function sessions($curl_opts = array()) { diff --git a/PHPWebDriver/WebDriverBase.php b/PHPWebDriver/WebDriverBase.php index a6f083568..241baa9b5 100644 --- a/PHPWebDriver/WebDriverBase.php +++ b/PHPWebDriver/WebDriverBase.php @@ -147,7 +147,15 @@ protected function curl($http_method, if ($http_method === 'POST') { curl_setopt($curl, CURLOPT_POST, true); if ($params && is_array($params)) { - curl_setopt($curl, CURLOPT_POSTFIELDS, str_replace('\\\\u', '\\u', json_encode($params))); + // hurray for magic strings! + // due to how the remote server handles upload, they can stomp on special + // unicode denoting characters in the json. so, unescape \uXXXX in the json + // and then re-escape it if it is really \upload which is the prefix for temp + // dir where files uploaded get stashed. + $encoded_params = json_encode($params); + $encoded_params = str_replace('\\\\u', '\\u', $encoded_params); + $encoded_params = str_replace('\\upload', '\\\\upload', $encoded_params); + curl_setopt($curl, CURLOPT_POSTFIELDS, $encoded_params); } else { curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-length: 0')); } @@ -188,9 +196,14 @@ protected function curl($http_method, $message = $value['message']; } + $sessionId=""; + if (is_array($results) && array_key_exists('sessionId', $results)) { + $sessionId = "/".$results['sessionId']; + } + self::throwException($results['status'], $message, $results); - return array('value' => $value, 'info' => $info); + return array('value' => $value, 'info' => $info, 'sessionId'=>$sessionId); } public function __call($name, $arguments) { diff --git a/PHPWebDriver/WebDriverFirefoxProfile.php b/PHPWebDriver/WebDriverFirefoxProfile.php new file mode 100644 index 000000000..0326a9e04 --- /dev/null +++ b/PHPWebDriver/WebDriverFirefoxProfile.php @@ -0,0 +1,76 @@ +profile_dir = $tempfile; + } + + // cop things over + $this->copy_profile($profile_directory, $this->profile_dir); + } + + private function make_temp_dir() { + + } + + public function encoded() { + $zip = new \ZipArchive(); + + $filename = $this->profile_dir . '.zip'; + if(($zip->open($filename, \ZipArchive::OVERWRITE)) !== true) { + throw new \SaunterPHP_Framework_Exception("Unable to create profile zip ${$profile_path}"); + } + + $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->profile_dir, $flags = \FilesystemIterator::KEY_AS_PATHNAME | \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::SKIP_DOTS)); + foreach ($iterator as $key=>$value) { + $zip->addFile($key, substr($key, strlen($this->profile_dir) + 1)) or die ("ERROR: Could not add file: $key"); + } + + $zip->close(); + + // base64 the zip + $contents = fread(fopen($filename, 'r+b'), filesize($filename)); + $encoded = base64_encode($contents); + return $encoded; + } + + private function copy_profile($src, $dst) { + $dir = opendir($src); + @mkdir($dst); + while(false !== ( $file = readdir($dir)) ) { + if (( $file != '.' ) && ( $file != '..' )) { + if ( is_dir($src . '/' . $file) ) { + $this->copy_profile($src . '/' . $file,$dst . '/' . $file); + } + else { + copy($src . '/' . $file,$dst . '/' . $file); + } + } + } + closedir($dir); + } + + +} \ No newline at end of file diff --git a/PHPWebDriver/WebDriverSession.php b/PHPWebDriver/WebDriverSession.php index 0b316d8cf..86f846c7e 100644 --- a/PHPWebDriver/WebDriverSession.php +++ b/PHPWebDriver/WebDriverSession.php @@ -161,7 +161,6 @@ public function deleteWindow($curl_opts = array()) { } public function switch_to_alert() { - $this->alert(); require_once('WebDriverAlert.php'); return new PHPWebDriver_WebDriverAlert($this); } diff --git a/README.md b/README.md index 3ea71e228..bc50f8af9 100644 --- a/README.md +++ b/README.md @@ -368,4 +368,20 @@ $element = $session->element(PHPWebDriver_WebDriverBy::ID, $value); $p->sendKeys('cheese'); $p->accept(); - +## Profiles + +* To send a Firefox profile over the wire to a remote Se server. It is up to you to configure it how you want. + +```php +$driver = new PHPWebDriver_WebDriver(); +$profile = new PHPWebDriver_WebDriverFirefoxProfile('path/to/a/firefox/profile'); +$session = $driver->session('firefox', array(), array(), $browser_profile=$profile); +$session->close(); +``` + +## Full screen +* To maximize the browser window, simply use the API. Now works in Chrome since ChromeDriver version 2. + +```php +$session->window()->maximize(); +``` diff --git a/package.xml b/package.xml index 9481faabd..5d7e3b5a0 100644 --- a/package.xml +++ b/package.xml @@ -16,10 +16,10 @@ adam@element34.ca yes - 2013-03-20 + 2013-08-22 - 1.9.0 - 1.9.0 + 1.12.0 + 1.12.0 stable @@ -90,6 +90,9 @@ + + + diff --git a/test/ActionChainsTest.php b/test/ActionChainsTest.php index f127f1318..994a9062c 100644 --- a/test/ActionChainsTest.php +++ b/test/ActionChainsTest.php @@ -4,7 +4,7 @@ require_once(dirname(__FILE__) . '/../PHPWebDriver/WebDriverBy.php'); require_once(dirname(__FILE__) . '/../PHPWebDriver/WebDriverKeys.php'); -class ProxyTest extends PHPUnit_Framework_TestCase { +class ActionChainsTest extends PHPUnit_Framework_TestCase { protected static $session; public function setUp() { diff --git a/test/AlertTest.php b/test/AlertTest.php index e1740e554..01f4e0192 100644 --- a/test/AlertTest.php +++ b/test/AlertTest.php @@ -116,7 +116,7 @@ public function testAlertSendKeys() { $a->sendKeys("cheese"); $fail = "PHPWebDriver_ElementNotDisplayedWebDriverError should have been thrown"; } catch (Exception $e) { - if (! is_a($e, "PHPWebDriver_ElementNotDisplayedWebDriverErro")) { + if (! is_a($e, "PHPWebDriver_ElementNotDisplayedWebDriverError")) { $fail = "exception should be PHPWebDriver_ElementNotDisplayedWebDriverError"; } } diff --git a/test/ProfileTest.php b/test/ProfileTest.php new file mode 100644 index 000000000..969b6e4cc --- /dev/null +++ b/test/ProfileTest.php @@ -0,0 +1,16 @@ +session('firefox', array(), array(), $browser_profile=$profile); + $session->close(); + } +} \ No newline at end of file diff --git a/test/support/profiles/.DS_Store b/test/support/profiles/.DS_Store new file mode 100644 index 000000000..5008ddfcf Binary files /dev/null and b/test/support/profiles/.DS_Store differ diff --git a/test/support/profiles/red/.parentlock b/test/support/profiles/red/.parentlock new file mode 100644 index 000000000..e69de29bb diff --git a/test/support/profiles/red/Cache/0/7D/3A1EFd01 b/test/support/profiles/red/Cache/0/7D/3A1EFd01 new file mode 100644 index 000000000..419a74960 Binary files /dev/null and b/test/support/profiles/red/Cache/0/7D/3A1EFd01 differ diff --git a/test/support/profiles/red/Cache/0/B9/F8A2Ed01 b/test/support/profiles/red/Cache/0/B9/F8A2Ed01 new file mode 100644 index 000000000..bd0f824b2 Binary files /dev/null and b/test/support/profiles/red/Cache/0/B9/F8A2Ed01 differ diff --git a/test/support/profiles/red/Cache/0/F9/207A0d01 b/test/support/profiles/red/Cache/0/F9/207A0d01 new file mode 100644 index 000000000..8979a39b7 Binary files /dev/null and b/test/support/profiles/red/Cache/0/F9/207A0d01 differ diff --git a/test/support/profiles/red/Cache/1/77/06D38d01 b/test/support/profiles/red/Cache/1/77/06D38d01 new file mode 100644 index 000000000..43f3f0aca Binary files /dev/null and b/test/support/profiles/red/Cache/1/77/06D38d01 differ diff --git a/test/support/profiles/red/Cache/2/E7/36188d01 b/test/support/profiles/red/Cache/2/E7/36188d01 new file mode 100644 index 000000000..df4fb0259 Binary files /dev/null and b/test/support/profiles/red/Cache/2/E7/36188d01 differ diff --git a/test/support/profiles/red/Cache/3/01/7E0E7d01 b/test/support/profiles/red/Cache/3/01/7E0E7d01 new file mode 100644 index 000000000..6be8fadb7 Binary files /dev/null and b/test/support/profiles/red/Cache/3/01/7E0E7d01 differ diff --git a/test/support/profiles/red/Cache/3/25/2C929d01 b/test/support/profiles/red/Cache/3/25/2C929d01 new file mode 100644 index 000000000..6effffd06 Binary files /dev/null and b/test/support/profiles/red/Cache/3/25/2C929d01 differ diff --git a/test/support/profiles/red/Cache/3/69/274F1d01 b/test/support/profiles/red/Cache/3/69/274F1d01 new file mode 100644 index 000000000..5238bd76a Binary files /dev/null and b/test/support/profiles/red/Cache/3/69/274F1d01 differ diff --git a/test/support/profiles/red/Cache/3/7C/D31FCd01 b/test/support/profiles/red/Cache/3/7C/D31FCd01 new file mode 100644 index 000000000..6b7469ef2 Binary files /dev/null and b/test/support/profiles/red/Cache/3/7C/D31FCd01 differ diff --git a/test/support/profiles/red/Cache/4/35/6A0CCd01 b/test/support/profiles/red/Cache/4/35/6A0CCd01 new file mode 100644 index 000000000..36336557e Binary files /dev/null and b/test/support/profiles/red/Cache/4/35/6A0CCd01 differ diff --git a/test/support/profiles/red/Cache/4/62/01B30d01 b/test/support/profiles/red/Cache/4/62/01B30d01 new file mode 100644 index 000000000..53c3cee27 Binary files /dev/null and b/test/support/profiles/red/Cache/4/62/01B30d01 differ diff --git a/test/support/profiles/red/Cache/4/72/4C640d01 b/test/support/profiles/red/Cache/4/72/4C640d01 new file mode 100644 index 000000000..5a20b3302 Binary files /dev/null and b/test/support/profiles/red/Cache/4/72/4C640d01 differ diff --git a/test/support/profiles/red/Cache/4/DF/72591d01 b/test/support/profiles/red/Cache/4/DF/72591d01 new file mode 100644 index 000000000..8781b1b5f Binary files /dev/null and b/test/support/profiles/red/Cache/4/DF/72591d01 differ diff --git a/test/support/profiles/red/Cache/5/4D/1715Bd01 b/test/support/profiles/red/Cache/5/4D/1715Bd01 new file mode 100644 index 000000000..f2ecc0ccb Binary files /dev/null and b/test/support/profiles/red/Cache/5/4D/1715Bd01 differ diff --git a/test/support/profiles/red/Cache/5/BE/A6319d01 b/test/support/profiles/red/Cache/5/BE/A6319d01 new file mode 100644 index 000000000..2dba0f238 --- /dev/null +++ b/test/support/profiles/red/Cache/5/BE/A6319d01 @@ -0,0 +1,675 @@ +
+ +
+ +
+
+ + +

Congratulations to the first winners of Firefox Flicks 2013! Check them out and get inspired to make your own. There's still time to enter.

+
+ +
+
+ + +

Sign up for our monthly newsletter and get the latest on your favorite browser.

+
+ +
+
+ + +

Fast. Smart. Safe. It's never been easier to put Firefox on your Android phone.

+
+ +
+
+ + +

Fast. Smart. Safe. It's never been easier to put Firefox on your Android phone.

+
+ +
+
+ +
\ No newline at end of file diff --git a/test/support/profiles/red/Cache/6/0E/6E579d01 b/test/support/profiles/red/Cache/6/0E/6E579d01 new file mode 100644 index 000000000..7bca9caa9 Binary files /dev/null and b/test/support/profiles/red/Cache/6/0E/6E579d01 differ diff --git a/test/support/profiles/red/Cache/8/4D/3ED69d01 b/test/support/profiles/red/Cache/8/4D/3ED69d01 new file mode 100644 index 000000000..c668e4537 Binary files /dev/null and b/test/support/profiles/red/Cache/8/4D/3ED69d01 differ diff --git a/test/support/profiles/red/Cache/8/8C/266B5d01 b/test/support/profiles/red/Cache/8/8C/266B5d01 new file mode 100644 index 000000000..f7ffe3af7 --- /dev/null +++ b/test/support/profiles/red/Cache/8/8C/266B5d01 @@ -0,0 +1,939 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + WINNT 6.1 0x10de + 0x0a6c + + DIRECT2D BLOCKED_DRIVER_VERSION 8.17.12.5896 LESS_THAN_OR_EQUAL + WINNT 6.1 0x10de + 0x0a6c + + DIRECT3D_9_LAYERS BLOCKED_DRIVER_VERSION 8.17.12.5896 LESS_THAN_OR_EQUAL + WINNT 5.1 0x10de DIRECT3D_9_LAYERS BLOCKED_DRIVER_VERSION 7.0.0.0 GREATER_THAN_OR_EQUAL + All 0x1002 DIRECT2D BLOCKED_DRIVER_VERSION 8.982.0.0 EQUAL + All 0x1022 DIRECT2D BLOCKED_DRIVER_VERSION 8.982.0.0 EQUAL + All 0x1022 DIRECT3D_9_LAYERS BLOCKED_DRIVER_VERSION 8.982.0.0 EQUAL + All 0x1002 DIRECT3D_9_LAYERS BLOCKED_DRIVER_VERSION 8.982.0.0 EQUAL + WINNT 6.2 0x1002 DIRECT2D BLOCKED_DRIVER_VERSION 9.10.8.0 LESS_THAN_OR_EQUAL + WINNT 6.2 0x1022 DIRECT2D BLOCKED_DRIVER_VERSION 9.10.8.0 LESS_THAN_OR_EQUAL + Darwin 10 0x10de WEBGL_MSAA BLOCKED_DEVICE + Darwin 11 0x10de WEBGL_MSAA BLOCKED_DEVICE + Darwin 12 0x10de WEBGL_MSAA BLOCKED_DEVICE + Darwin 10 0x8086 WEBGL_MSAA BLOCKED_DEVICE + Darwin 11 0x8086 WEBGL_MSAA BLOCKED_DEVICE + Darwin 12 0x8086 WEBGL_MSAA BLOCKED_DEVICE + Darwin 10 0x1002 WEBGL_MSAA BLOCKED_DEVICE + Darwin 11 0x1002 WEBGL_MSAA BLOCKED_DEVICE + Darwin 12 0x1002 WEBGL_MSAA BLOCKED_DEVICE + WINNT 6.1 0x1002 + 0x9802 + 0x9803 + 0x9803 + 0x9804 + 0x9805 + 0x9806 + 0x9807 + + DIRECT2D BLOCKED_DEVICE + WINNT 6.1 0x1002 + 0x9802 + 0x9803 + 0x9803 + 0x9804 + 0x9805 + 0x9806 + 0x9807 + + DIRECT3D_9_LAYERS BLOCKED_DEVICE + + + + \ No newline at end of file diff --git a/test/support/profiles/red/Cache/8/DC/BD3EFd01 b/test/support/profiles/red/Cache/8/DC/BD3EFd01 new file mode 100644 index 000000000..5a1639160 Binary files /dev/null and b/test/support/profiles/red/Cache/8/DC/BD3EFd01 differ diff --git a/test/support/profiles/red/Cache/8/F3/6BD46d01 b/test/support/profiles/red/Cache/8/F3/6BD46d01 new file mode 100644 index 000000000..5a130fa03 Binary files /dev/null and b/test/support/profiles/red/Cache/8/F3/6BD46d01 differ diff --git a/test/support/profiles/red/Cache/9/E5/875CFd01 b/test/support/profiles/red/Cache/9/E5/875CFd01 new file mode 100644 index 000000000..cf82e5385 Binary files /dev/null and b/test/support/profiles/red/Cache/9/E5/875CFd01 differ diff --git a/test/support/profiles/red/Cache/9/F7/DAD0Cd01 b/test/support/profiles/red/Cache/9/F7/DAD0Cd01 new file mode 100644 index 000000000..937323df0 Binary files /dev/null and b/test/support/profiles/red/Cache/9/F7/DAD0Cd01 differ diff --git a/test/support/profiles/red/Cache/A/8D/1AEC0d01 b/test/support/profiles/red/Cache/A/8D/1AEC0d01 new file mode 100644 index 000000000..3292f5bb7 Binary files /dev/null and b/test/support/profiles/red/Cache/A/8D/1AEC0d01 differ diff --git a/test/support/profiles/red/Cache/B/8D/3FE6Cd01 b/test/support/profiles/red/Cache/B/8D/3FE6Cd01 new file mode 100644 index 000000000..1972c1ab0 Binary files /dev/null and b/test/support/profiles/red/Cache/B/8D/3FE6Cd01 differ diff --git a/test/support/profiles/red/Cache/C/0E/22036d01 b/test/support/profiles/red/Cache/C/0E/22036d01 new file mode 100644 index 000000000..e021378cf Binary files /dev/null and b/test/support/profiles/red/Cache/C/0E/22036d01 differ diff --git a/test/support/profiles/red/Cache/D/69/5581Cd01 b/test/support/profiles/red/Cache/D/69/5581Cd01 new file mode 100644 index 000000000..0a01a7d7b Binary files /dev/null and b/test/support/profiles/red/Cache/D/69/5581Cd01 differ diff --git a/test/support/profiles/red/Cache/E/04/FC074d01 b/test/support/profiles/red/Cache/E/04/FC074d01 new file mode 100644 index 000000000..ae135eb42 Binary files /dev/null and b/test/support/profiles/red/Cache/E/04/FC074d01 differ diff --git a/test/support/profiles/red/Cache/F/9E/72CA6d01 b/test/support/profiles/red/Cache/F/9E/72CA6d01 new file mode 100644 index 000000000..713e2afd4 Binary files /dev/null and b/test/support/profiles/red/Cache/F/9E/72CA6d01 differ diff --git a/test/support/profiles/red/Cache/_CACHE_001_ b/test/support/profiles/red/Cache/_CACHE_001_ new file mode 100644 index 000000000..7da29686d Binary files /dev/null and b/test/support/profiles/red/Cache/_CACHE_001_ differ diff --git a/test/support/profiles/red/Cache/_CACHE_002_ b/test/support/profiles/red/Cache/_CACHE_002_ new file mode 100644 index 000000000..a093063e2 Binary files /dev/null and b/test/support/profiles/red/Cache/_CACHE_002_ differ diff --git a/test/support/profiles/red/Cache/_CACHE_003_ b/test/support/profiles/red/Cache/_CACHE_003_ new file mode 100644 index 000000000..3432b70af Binary files /dev/null and b/test/support/profiles/red/Cache/_CACHE_003_ differ diff --git a/test/support/profiles/red/Cache/_CACHE_MAP_ b/test/support/profiles/red/Cache/_CACHE_MAP_ new file mode 100644 index 000000000..30306f80e Binary files /dev/null and b/test/support/profiles/red/Cache/_CACHE_MAP_ differ diff --git a/test/support/profiles/red/_CACHE_CLEAN_ b/test/support/profiles/red/_CACHE_CLEAN_ new file mode 100644 index 000000000..56a6051ca --- /dev/null +++ b/test/support/profiles/red/_CACHE_CLEAN_ @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/test/support/profiles/red/addons.sqlite b/test/support/profiles/red/addons.sqlite new file mode 100644 index 000000000..a871f3efa Binary files /dev/null and b/test/support/profiles/red/addons.sqlite differ diff --git a/test/support/profiles/red/blocklist.xml b/test/support/profiles/red/blocklist.xml new file mode 100644 index 000000000..f7ffe3af7 --- /dev/null +++ b/test/support/profiles/red/blocklist.xml @@ -0,0 +1,939 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + WINNT 6.1 0x10de + 0x0a6c + + DIRECT2D BLOCKED_DRIVER_VERSION 8.17.12.5896 LESS_THAN_OR_EQUAL + WINNT 6.1 0x10de + 0x0a6c + + DIRECT3D_9_LAYERS BLOCKED_DRIVER_VERSION 8.17.12.5896 LESS_THAN_OR_EQUAL + WINNT 5.1 0x10de DIRECT3D_9_LAYERS BLOCKED_DRIVER_VERSION 7.0.0.0 GREATER_THAN_OR_EQUAL + All 0x1002 DIRECT2D BLOCKED_DRIVER_VERSION 8.982.0.0 EQUAL + All 0x1022 DIRECT2D BLOCKED_DRIVER_VERSION 8.982.0.0 EQUAL + All 0x1022 DIRECT3D_9_LAYERS BLOCKED_DRIVER_VERSION 8.982.0.0 EQUAL + All 0x1002 DIRECT3D_9_LAYERS BLOCKED_DRIVER_VERSION 8.982.0.0 EQUAL + WINNT 6.2 0x1002 DIRECT2D BLOCKED_DRIVER_VERSION 9.10.8.0 LESS_THAN_OR_EQUAL + WINNT 6.2 0x1022 DIRECT2D BLOCKED_DRIVER_VERSION 9.10.8.0 LESS_THAN_OR_EQUAL + Darwin 10 0x10de WEBGL_MSAA BLOCKED_DEVICE + Darwin 11 0x10de WEBGL_MSAA BLOCKED_DEVICE + Darwin 12 0x10de WEBGL_MSAA BLOCKED_DEVICE + Darwin 10 0x8086 WEBGL_MSAA BLOCKED_DEVICE + Darwin 11 0x8086 WEBGL_MSAA BLOCKED_DEVICE + Darwin 12 0x8086 WEBGL_MSAA BLOCKED_DEVICE + Darwin 10 0x1002 WEBGL_MSAA BLOCKED_DEVICE + Darwin 11 0x1002 WEBGL_MSAA BLOCKED_DEVICE + Darwin 12 0x1002 WEBGL_MSAA BLOCKED_DEVICE + WINNT 6.1 0x1002 + 0x9802 + 0x9803 + 0x9803 + 0x9804 + 0x9805 + 0x9806 + 0x9807 + + DIRECT2D BLOCKED_DEVICE + WINNT 6.1 0x1002 + 0x9802 + 0x9803 + 0x9803 + 0x9804 + 0x9805 + 0x9806 + 0x9807 + + DIRECT3D_9_LAYERS BLOCKED_DEVICE + + + + \ No newline at end of file diff --git a/test/support/profiles/red/bookmarkbackups/bookmarks-2013-05-01.json b/test/support/profiles/red/bookmarkbackups/bookmarks-2013-05-01.json new file mode 100644 index 000000000..67406a7c5 --- /dev/null +++ b/test/support/profiles/red/bookmarkbackups/bookmarks-2013-05-01.json @@ -0,0 +1 @@ +{"title":"","id":1,"dateAdded":1367421445094464,"lastModified":1367421445094464,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"Bookmarks Menu","id":2,"parent":1,"dateAdded":1367421445094464,"lastModified":1367421445728539,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"Recently Bookmarked","id":13,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"RecentlyBookmarked"}],"type":"text/x-moz-place","uri":"place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&sort=12&excludeQueries=1&maxResults=10&queryType=1"},{"index":1,"title":"Recent Tags","id":14,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"RecentTags"}],"type":"text/x-moz-place","uri":"place:sort=14&type=6&maxResults=10&queryType=1"},{"index":2,"title":"","id":15,"parent":2,"dateAdded":1367421445728539,"lastModified":1367421445728539,"type":"text/x-moz-place-separator"},{"index":3,"title":"Mozilla Firefox","id":7,"parent":2,"dateAdded":1367421445704340,"lastModified":1367421445710353,"type":"text/x-moz-place-container","children":[{"title":"Help and Tutorials","id":8,"parent":7,"dateAdded":1367421445704770,"lastModified":1367421445705874,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/help/"},{"index":1,"title":"Customize Firefox","id":9,"parent":7,"dateAdded":1367421445707118,"lastModified":1367421445707610,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/customize/"},{"index":2,"title":"Get Involved","id":10,"parent":7,"dateAdded":1367421445708692,"lastModified":1367421445709507,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/community/"},{"index":3,"title":"About Us","id":11,"parent":7,"dateAdded":1367421445710353,"lastModified":1367421445710865,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/about/"}]}]},{"index":1,"title":"Bookmarks Toolbar","id":3,"parent":1,"dateAdded":1367421445094464,"lastModified":1367421445726284,"annos":[{"name":"bookmarkProperties/description","flags":0,"expires":4,"mimeType":null,"type":3,"value":"Add bookmarks to this folder to see them displayed on the Bookmarks Toolbar"}],"type":"text/x-moz-place-container","root":"toolbarFolder","children":[{"title":"Most Visited","id":12,"parent":3,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"MostVisited"}],"type":"text/x-moz-place","uri":"place:sort=8&maxResults=10"},{"index":1,"title":"Getting Started","id":6,"parent":3,"dateAdded":1367421445703546,"lastModified":1367421445704078,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/central/"}]},{"index":2,"title":"Tags","id":4,"parent":1,"dateAdded":1367421445094464,"lastModified":1367421445094464,"type":"text/x-moz-place-container","root":"tagsFolder","children":[]},{"index":3,"title":"Unsorted Bookmarks","id":5,"parent":1,"dateAdded":1367421445094464,"lastModified":1367421445699508,"type":"text/x-moz-place-container","root":"unfiledBookmarksFolder","children":[]}]} \ No newline at end of file diff --git a/test/support/profiles/red/cert8.db b/test/support/profiles/red/cert8.db new file mode 100644 index 000000000..8a08f4cf3 Binary files /dev/null and b/test/support/profiles/red/cert8.db differ diff --git a/test/support/profiles/red/compatibility.ini b/test/support/profiles/red/compatibility.ini new file mode 100644 index 000000000..817f42529 --- /dev/null +++ b/test/support/profiles/red/compatibility.ini @@ -0,0 +1,5 @@ +[Compatibility] +LastVersion=20.0_20130326150557/20130326150557 +LastOSABI=Darwin_x86_64-gcc3 +LastPlatformDir=/Applications/Firefox.app/Contents/MacOS +LastAppDir=/Applications/Firefox.app/Contents/MacOS diff --git a/test/support/profiles/red/content-prefs.sqlite b/test/support/profiles/red/content-prefs.sqlite new file mode 100644 index 000000000..3209cd55f Binary files /dev/null and b/test/support/profiles/red/content-prefs.sqlite differ diff --git a/test/support/profiles/red/cookies.sqlite b/test/support/profiles/red/cookies.sqlite new file mode 100644 index 000000000..9bd38b050 Binary files /dev/null and b/test/support/profiles/red/cookies.sqlite differ diff --git a/test/support/profiles/red/downloads.sqlite b/test/support/profiles/red/downloads.sqlite new file mode 100644 index 000000000..2a416b39d Binary files /dev/null and b/test/support/profiles/red/downloads.sqlite differ diff --git a/test/support/profiles/red/extensions.ini b/test/support/profiles/red/extensions.ini new file mode 100644 index 000000000..5610f2b78 --- /dev/null +++ b/test/support/profiles/red/extensions.ini @@ -0,0 +1,4 @@ +[ExtensionDirs] + +[ThemeDirs] +Extension0=/Applications/Firefox.app/Contents/MacOS/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd} diff --git a/test/support/profiles/red/extensions.sqlite b/test/support/profiles/red/extensions.sqlite new file mode 100644 index 000000000..5004f8dfa Binary files /dev/null and b/test/support/profiles/red/extensions.sqlite differ diff --git a/test/support/profiles/red/extensions/garg_sms@yahoo.in.xpi b/test/support/profiles/red/extensions/garg_sms@yahoo.in.xpi new file mode 100644 index 000000000..5a20b3302 Binary files /dev/null and b/test/support/profiles/red/extensions/garg_sms@yahoo.in.xpi differ diff --git a/test/support/profiles/red/key3.db b/test/support/profiles/red/key3.db new file mode 100644 index 000000000..218ba2298 Binary files /dev/null and b/test/support/profiles/red/key3.db differ diff --git a/test/support/profiles/red/localstore.rdf b/test/support/profiles/red/localstore.rdf new file mode 100644 index 000000000..7f21fe1d3 --- /dev/null +++ b/test/support/profiles/red/localstore.rdf @@ -0,0 +1,21 @@ + + + + + + + + + + + + diff --git a/test/support/profiles/red/mimeTypes.rdf b/test/support/profiles/red/mimeTypes.rdf new file mode 100644 index 000000000..7a28756f5 --- /dev/null +++ b/test/support/profiles/red/mimeTypes.rdf @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/support/profiles/red/permissions.sqlite b/test/support/profiles/red/permissions.sqlite new file mode 100644 index 000000000..fdb620ba3 Binary files /dev/null and b/test/support/profiles/red/permissions.sqlite differ diff --git a/test/support/profiles/red/places.sqlite b/test/support/profiles/red/places.sqlite new file mode 100644 index 000000000..337037fce Binary files /dev/null and b/test/support/profiles/red/places.sqlite differ diff --git a/test/support/profiles/red/pluginreg.dat b/test/support/profiles/red/pluginreg.dat new file mode 100644 index 000000000..4cff3da2a --- /dev/null +++ b/test/support/profiles/red/pluginreg.dat @@ -0,0 +1,268 @@ +Generated File. Do not edit. + +[HEADER] +Version:0.15:$ +Arch:x86_64-gcc3:$ + +[PLUGINS] +o1dbrowserplugin.plugin:$ +/Library/Internet Plug-Ins/o1dbrowserplugin.plugin:$ +3.18.3.12840:$ +1366680031000:0:1:$ +Version 3.18.3.12840:$ +Google Talk Plugin Video Renderer:$ +1 +0:application/o1d:Google Talk Plugin Video Renderer:o1d:$ +googletalkbrowserplugin.plugin:$ +/Library/Internet Plug-Ins/googletalkbrowserplugin.plugin:$ +3.18.3.12840:$ +1366680031000:0:1:$ +Version 3.18.3.12840:$ +Google Talk Plugin:$ +1 +0:application/googletalk:Google voice and video chat:googletalk:$ +npgtpo3dautoplugin.plugin:$ +/Library/Internet Plug-Ins/npgtpo3dautoplugin.plugin:$ +0.1.44.28:$ +1366678501000:0:1:$ +Google Talk Plugin Video Accelerator version:0.1.44.28:$ +Google Talk Plugin Video Accelerator:$ +1 +0:application/vnd.gtpo3d.auto:Google Talk Plugin Video Accelerator Type::$ +Flash Player.plugin:$ +/Library/Internet Plug-Ins/Flash Player.plugin:$ +11.7.700.169:$ +1365714336000:0:1:$ +Shockwave Flash 11.7 r700:$ +Shockwave Flash:$ +2 +0:application/x-shockwave-flash:Shockwave Flash:swf:$ +1:application/futuresplash:FutureSplash Player:spl:$ +JavaAppletPlugin.plugin:$ +/Library/Internet Plug-Ins/JavaAppletPlugin.plugin:$ +Java 7 Update 21:$ +1365373125000:0:1:$ +Displays Java applet content, or a placeholder if Java is not installed.:$ +Java Applet Plug-in:$ +21 +0:application/x-java-applet;jpi-version=1.7.0_21:Java applet::$ +1:application/x-java-applet;version=1.4:Java applet::$ +2:application/x-java-applet;deploy=10.21.2:Java applet::$ +3:application/x-java-applet;version=1.2.1:Java applet::$ +4:application/x-java-applet;version=1.2.2:Java applet::$ +5:application/x-java-applet;version=1.3:Java applet::$ +6:application/x-java-applet;javafx=2.2.21:Java applet::$ +7:application/x-java-applet;version=1.1.1:Java applet::$ +8:application/x-java-vm:Java applet::$ +9:application/x-java-vm-npruntime:Java applet::$ +10:application/x-java-applet;version=1.2:Java applet::$ +11:application/x-java-applet;version=1.7:Java applet::$ +12:application/x-java-applet;version=1.4.1:Java applet::$ +13:application/x-java-applet;version=1.1.2:Java applet::$ +14:application/x-java-applet:Basic Java Applets:javaapplet:$ +15:application/x-java-applet;version=1.1:Java applet::$ +16:application/x-java-applet;version=1.1.3:Java applet::$ +17:application/x-java-applet;version=1.4.2:Java applet::$ +18:application/x-java-applet;version=1.6:Java applet::$ +19:application/x-java-applet;version=1.3.1:Java applet::$ +20:application/x-java-applet;version=1.5:Java applet::$ +QuickTime Plugin.plugin:$ +/Library/Internet Plug-Ins/QuickTime Plugin.plugin:$ +7.7.1:$ +1363978238000:0:1:$ +The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site.:$ +QuickTime Plug-in 7.7.1:$ +61 +0:video/mp4:MPEG-4 media:mp4:$ +1:audio/x-flac:FLAC audio:flac, fla, xfl:$ +2:audio/x-ac3:AC3 audio:ac3:$ +3:video/x-m4v:Video:m4v:$ +4:application/x-sdp:SDP stream descriptor:sdp:$ +5:audio/AMR:AMR audio:AMR:$ +6:video/x-flv:Flash Video:flv:$ +7:application/x-rtsp:RTSP stream descriptor:rtsp,rts:$ +8:application/x-flac:FLAC audio:flac, fla, xfl:$ +9:video/3gpp2:3GPP2 media:3g2,3gp2:$ +10:audio/flac:FLAC audio:flac, fla, xfl:$ +11:audio/mpeg:MPEG audio:mpeg,mpg,m1s,m1a,mp2,mpm,mpa,m2a,mp3,swa:$ +12:audio/ogg:Ogg Audio:oga:$ +13:video/x-nuv:NuppelVideo:nuv:$ +14:audio/mpeg3:MP3 audio:mp3,swa:$ +15:application/sdp:SDP stream descriptor:sdp:$ +16:application/x-mpeg:AMC media:amc:$ +17:video/x-msvideo:Video For Windows:avi,vfw,vfw,avi,gvi,divx,vp6:$ +18:video/mpeg:MPEG media:mpeg,mpg,m1s,m1v,m1a,m75,m15,mp2,mpm,mpv,mpa:$ +19:audio/aac:AAC audio:aac,adts:$ +20:application/annodex:Annodex Media:anx:$ +21:audio/x-gsm:GSM audio:gsm:$ +22:video/sd-video:SD video:sdv:$ +23:audio/x-caf:CAF audio:caf:$ +24:audio/x-ogg:Ogg Audio:oga:$ +25:application/flac:FLAC audio:flac, fla, xfl:$ +26:application/ogg:Ogg Multimedia Bitstream:ogg, ogx:$ +27:audio/3gpp:3GPP media:3gp,3gpp:$ +28:application/x-ogg:Ogg Multimedia Bitstream:ogg, ogx:$ +29:audio/mp3:MP3 audio:mp3,swa:$ +30:video/avi:Video For Windows:avi,vfw,vfw,avi,gvi,divx,vp6:$ +31:audio/mp4:MPEG-4 media:mp4:$ +32:audio/x-aiff:AIFF audio:aiff,aif,aifc,cdda:$ +33:video/x-mpeg:MPEG media:mpeg,mpg,m1s,m1v,m1a,m75,m15,mp2,mpm,mpv,mpa:$ +34:video/3gpp:3GPP media:3gp,3gpp:$ +35:audio/x-mpeg:MPEG audio:mpeg,mpg,m1s,m1a,mp2,mpm,mpa,m2a,mp3,swa:$ +36:audio/x-aac:AAC audio:aac,adts:$ +37:audio/3gpp2:3GPP2 media:3g2,3gp2:$ +38:video/ogg:Ogg Video:ogv:$ +39:audio/x-mp3:MP3 audio:mp3,swa:$ +40:audio/x-wav:WAVE audio:wav,bwf:$ +41:video/quicktime:QuickTime Movie:mov,qt,mqv:$ +42:audio/x-speex:Ogg Speex audio:spx:$ +43:audio/x-mpeg3:MP3 audio:mp3,swa:$ +44:audio/x-m4a:AAC audio:m4a:$ +45:audio/ac3:AC3 audio:ac3:$ +46:audio/x-annodex:Annodex Audio:axa:$ +47:audio/annodex:Annodex Audio:axa:$ +48:audio/x-m4p:AAC audio:m4p:$ +49:audio/speex:Ogg Speex audio:spx:$ +50:video/x-annodex:Annodex Video:axv:$ +51:video/annodex:Annodex Video:axv:$ +52:audio/x-tta:True Audio:tta:$ +53:audio/x-m4b:AAC audio book:m4b:$ +54:audio/aiff:AIFF audio:aiff,aif,aifc,cdda:$ +55:application/x-annodex:Annodex Media:anx:$ +56:video/msvideo:Video For Windows:avi,vfw,vfw,avi,gvi,divx,vp6:$ +57:audio/basic:uLaw/AU audio:au,snd,ulw:$ +58:video/x-ogg:Ogg Video:ogv:$ +59:audio/wav:WAVE audio:wav,bwf:$ +60:audio/vnd.qcelp:QUALCOMM PureVoice audio:qcp,qcp:$ +OVSHelper.plugin:$ +/Library/Internet Plug-Ins/OVSHelper.plugin:$ +1.1:$ +1360224470000:0:1:$ +DivX VOD Helper Plug-in:$ +DivX VOD Helper Plug-in:$ +1 +0:application/x-divxovshelper:DivX OVS Helper Plug-in:app:$ +DivXBrowserPlugin.plugin:$ +/Library/Internet Plug-Ins/DivXBrowserPlugin.plugin:$ +2.2:$ +1360224328000:0:1:$ +DivX Plus Web Player version 2.2.2.14:$ +DivX Plus Web Player:$ +1 +0:video/divx:DivX Video File:divx,div:$ +CitrixOnlineWebDeploymentPlugin.plugin:$ +/Users/adam/Library/Internet Plug-Ins/CitrixOnlineWebDeploymentPlugin.plugin:$ +1.0.79:$ +1346969232000:0:1:$ +Plugin that detects installed Citrix Online products (visit www.citrixonline.com).:$ +Citrix Online Web Deployment Plugin 1.0.0.79:$ +1 +0:application/x-col-application-detector:Citrix Online Application Detector::$ +WebEx64.plugin:$ +/Users/adam/Library/Internet Plug-Ins/WebEx64.plugin:$ +1.0:$ +1343903912000:0:1:$ +WebEx64 General Plugin Container Version 204:$ +WebEx64 General Plugin Container:$ +1 +0:application/webx-gpc-plugin64:gpc::$ +Unity Web Player.plugin:$ +/Library/Internet Plug-Ins/Unity Web Player.plugin:$ +UnityPlayer version 3.5.0f6:$ +1329912028000:0:1:$ +:$ +Unity Player:$ +1 +0:application/vnd.unity:Unity Player:unity3d:$ +GlimsAdditions.webplugin:$ +/Library/Internet Plug-Ins/GlimsAdditions.webplugin:$ +1.0:$ +1326328647000:0:1:$ +Glims Plug-in for Safari:$ +Glims:$ +1 +0:application/x-glims-js:Glims Plug-in for Safari::$ +doubleTwistWebPlugin.bundle:$ +/Users/adam/Library/Internet Plug-Ins/doubleTwistWebPlugin.bundle:$ +2:$ +1298080116000:0:1:$ +doubleTwist Web Plugin:$ +doubleTwist Web Plugin:$ +1 +0:application/x-vnd-doubleTwist:doubleTwist Web Plugin::$ +Flip4Mac WMV Plugin.plugin:$ +/Library/Internet Plug-Ins/Flip4Mac WMV Plugin.plugin:$ +2.3.8.1:$ +1294959536000:0:0:$ +The Flip4Mac WMV Plugin allows you to view Windows Media content using QuickTime.:$ +Flip4Mac Windows Media Plugin 2.3.8 :$ +13 +0:video/x-ms-asf:Windows Media Video:asf:$ +1:video/x-ms-asx:Windows Media Playlist:asx:$ +2:audio/x-ms-wax:Windows Media Playlist:wax:$ +3:application/x-ms-wmp:Windows Media Plugin::$ +4:video/x-ms-wmp:Windows Media Video:wmp:$ +5:application/x-mplayer2:Windows Media Plugin::$ +6:video/x-ms-wmx:Windows Media Playlist:wmx:$ +7:video/x-ms-wm:Windows Media Video:wm:$ +8:video/x-ms-wvx:Windows Media Playlist:wvx:$ +9:video/x-ms-wmv:Windows Media Video:wmv:$ +10:video/x-ms-asf-plugin:Windows Media Plugin::$ +11:audio/x-ms-wma:Windows Media Audio:wma:$ +12:application/asx:Windows Media Plugin::$ +Silverlight.plugin:$ +/Library/Internet Plug-Ins/Silverlight.plugin:$ +4.0.51204.0:$ +1291461887000:0:0:$ +4.0.51204.0:$ +Silverlight Plug-In:$ +2 +0:application/x-silverlight:Microsoft Silverlight:xaml:$ +1:application/x-silverlight-2:Microsoft Silverlight:xaml:$ +RealPlayer Plugin.plugin:$ +/Applications/RealPlayer.app/Contents/MacOS/RealPlayer Plugin.plugin:$ +0.0.1d1:$ +1281003961000:0:1:$ +RealPlayer Plugin:$ +RealPlayer Plugin.plugin:$ +2 +0:audio/x-pn-realaudio-plugin:RealMedia:rm:$ +1:audio/x-pn-realaudio:RealPlayer Metafile:ram:$ +F5 SSL VPN Plugin.plugin:$ +/Library/Internet Plug-Ins/F5 SSL VPN Plugin.plugin:$ +6031.2010.0122.1:$ +1264190362000:0:1:$ +F5 Network Access plugin, Ver. 6031.2010.0122.1:$ +F5 Network Access plugin:$ +1 +0:application/x-F5-SSLVPN:F5 Network Access plugin:xvpn:$ +iPhotoPhotocast.plugin:$ +/Library/Internet Plug-Ins/iPhotoPhotocast.plugin:$ +7.0:$ +1249043146000:0:1:$ +iPhoto6:$ +iPhotoPhotocast:$ +1 +0:application/photo:iPhoto 700::$ + +[INVALID] +/Library/Internet Plug-Ins/f5_sslvpn.bundle:$ +1264190362000:$ +/Library/Internet Plug-Ins/Flip4Mac WMV Plugin.webplugin:$ +1294959560000:$ +/Library/Internet Plug-Ins/Unused:$ +1334006242000:$ +/Library/Internet Plug-Ins/nsIQTScriptablePlugin.xpt:$ +1346167289000:$ +/Library/Internet Plug-Ins/Quartz Composer.webplugin:$ +1346167295000:$ +/Library/Internet Plug-Ins/AdobePDFViewer.plugin:$ +1361428463000:$ +/Library/Internet Plug-Ins/flashplayer.xpt:$ +1364589721000:$ +/Users/adam/Library/Internet Plug-Ins/ClickToFlash.webplugin:$ +1270073833000:$ +/Users/adam/Library/Internet Plug-Ins/WebEx.plugin:$ +1292356820000:$ +/Users/adam/Library/Internet Plug-Ins/GlimsAddition.notplugin:$ +1328279903000:$ diff --git a/test/support/profiles/red/prefs.js b/test/support/profiles/red/prefs.js new file mode 100644 index 000000000..fe9f9ca92 --- /dev/null +++ b/test/support/profiles/red/prefs.js @@ -0,0 +1,68 @@ +# Mozilla User Preferences + +/* Do not edit this file. + * + * If you make changes to this file while the application is running, + * the changes will be overwritten when the application exits. + * + * To make a manual change to preferences, you can visit the URL about:config + */ + +user_pref("app.update.lastUpdateTime.addon-background-update-timer", 1367421870); +user_pref("app.update.lastUpdateTime.background-update-timer", 1367421750); +user_pref("app.update.lastUpdateTime.blocklist-background-update-timer", 1367421990); +user_pref("app.update.lastUpdateTime.browser-cleanup-thumbnails", 1367421445); +user_pref("app.update.lastUpdateTime.search-engine-update-timer", 1367421565); +user_pref("browser.bookmarks.restore_default_bookmarks", false); +user_pref("browser.cache.disk.capacity", 358400); +user_pref("browser.cache.disk.smart_size.first_run", false); +user_pref("browser.cache.disk.smart_size.use_old_max", false); +user_pref("browser.cache.disk.smart_size_cached_value", 358400); +user_pref("browser.download.panel.firstSessionCompleted", true); +user_pref("browser.migration.version", 9); +user_pref("browser.pagethumbnails.storage_version", 2); +user_pref("browser.places.smartBookmarksVersion", 4); +user_pref("browser.rights.3.shown", true); +user_pref("browser.shell.checkDefaultBrowser", false); +user_pref("browser.startup.homepage_override.buildID", "20130326150557"); +user_pref("browser.startup.homepage_override.mstone", "20.0"); +user_pref("browser.syncPromoViewsLeftMap", "{\"addons\":4}"); +user_pref("datareporting.healthreport.nextDataSubmissionTime", "1367507845000"); +user_pref("datareporting.policy.firstRunTime", "1367421445000"); +user_pref("datareporting.sessions.current.activeTicks", 5); +user_pref("datareporting.sessions.current.clean", true); +user_pref("datareporting.sessions.current.firstPaint", 1246); +user_pref("datareporting.sessions.current.main", 89); +user_pref("datareporting.sessions.current.sessionRestored", 1278); +user_pref("datareporting.sessions.current.startTime", "1367421629586"); +user_pref("datareporting.sessions.current.totalTime", 1567002); +user_pref("datareporting.sessions.currentIndex", 1); +user_pref("datareporting.sessions.previous.0", "{\"s\":1367421444475,\"a\":18,\"t\":179202,\"c\":true,\"m\":94,\"fp\":1955,\"sr\":2067}"); +user_pref("dom.mozApps.used", true); +user_pref("dom.w3c_touch_events.expose", false); +user_pref("extensions.blocklist.pingCountTotal", 2); +user_pref("extensions.blocklist.pingCountVersion", 2); +user_pref("extensions.bootstrappedAddons", "{\"garg_sms@yahoo.in\":{\"version\":\"1.1\",\"type\":\"extension\",\"descriptor\":\"/Users/adam/work/saunter/py.saunter-examples/picpaste/rc/support/profiles/red/extensions/garg_sms@yahoo.in.xpi\"}}"); +user_pref("extensions.databaseSchema", 14); +user_pref("extensions.enabledAddons", "%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:20.0"); +user_pref("extensions.installCache", "[{\"name\":\"app-system-local\",\"addons\":{\"{23fcfd51-4958-4f00-80a3-ae97e717ed8b}\":{\"descriptor\":\"/Library/Application Support/Mozilla/Extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{23fcfd51-4958-4f00-80a3-ae97e717ed8b}\",\"mtime\":1362284899000}}},{\"name\":\"app-global\",\"addons\":{\"{972ce4c6-7e08-4474-a285-3208198ce6fd}\":{\"descriptor\":\"/Applications/Firefox.app/Contents/MacOS/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}\",\"mtime\":1365430677000}}},{\"name\":\"app-profile\",\"addons\":{\"garg_sms@yahoo.in\":{\"descriptor\":\"/Users/adam/work/saunter/py.saunter-examples/picpaste/rc/support/profiles/red/extensions/garg_sms@yahoo.in.xpi\",\"mtime\":1367421499000}}}]"); +user_pref("extensions.lastAppVersion", "20.0"); +user_pref("extensions.lastPlatformVersion", "20.0"); +user_pref("extensions.pendingOperations", false); +user_pref("extensions.shownSelectionUI", true); +user_pref("gecko.buildID", "20130326150557"); +user_pref("gecko.mstone", "20.0"); +user_pref("gfx.blacklist.webgl.msaa", 4); +user_pref("intl.charsetmenu.browser.cache", "UTF-8"); +user_pref("network.cookie.prefsMigrated", true); +user_pref("pdfjs.migrationVersion", 1); +user_pref("pdfjs.previousHandler.alwaysAskBeforeHandling", true); +user_pref("pdfjs.previousHandler.preferredAction", 4); +user_pref("places.history.expiration.transient_current_max_pages", 100664); +user_pref("plugin.disable_full_page_plugin_for_types", "application/pdf"); +user_pref("privacy.sanitize.migrateFx3Prefs", true); +user_pref("toolkit.startup.last_success", 1367421629); +user_pref("urlclassifier.keyupdatetime.https://sb-ssl.google.com/safebrowsing/newkey", 1370013451); +user_pref("xpinstall.whitelist.add", ""); +user_pref("xpinstall.whitelist.add.180", ""); +user_pref("xpinstall.whitelist.add.36", ""); diff --git a/test/support/profiles/red/safebrowsing/classifier.hashkey b/test/support/profiles/red/safebrowsing/classifier.hashkey new file mode 100644 index 000000000..51e07489a --- /dev/null +++ b/test/support/profiles/red/safebrowsing/classifier.hashkey @@ -0,0 +1 @@ +%�hS \ No newline at end of file diff --git a/test/support/profiles/red/safebrowsing/goog-malware-shavar.cache b/test/support/profiles/red/safebrowsing/goog-malware-shavar.cache new file mode 100644 index 000000000..de284861a Binary files /dev/null and b/test/support/profiles/red/safebrowsing/goog-malware-shavar.cache differ diff --git a/test/support/profiles/red/safebrowsing/goog-malware-shavar.pset b/test/support/profiles/red/safebrowsing/goog-malware-shavar.pset new file mode 100644 index 000000000..2453063c6 Binary files /dev/null and b/test/support/profiles/red/safebrowsing/goog-malware-shavar.pset differ diff --git a/test/support/profiles/red/safebrowsing/goog-malware-shavar.sbstore b/test/support/profiles/red/safebrowsing/goog-malware-shavar.sbstore new file mode 100644 index 000000000..e634bbb80 Binary files /dev/null and b/test/support/profiles/red/safebrowsing/goog-malware-shavar.sbstore differ diff --git a/test/support/profiles/red/safebrowsing/goog-phish-shavar.cache b/test/support/profiles/red/safebrowsing/goog-phish-shavar.cache new file mode 100644 index 000000000..de284861a Binary files /dev/null and b/test/support/profiles/red/safebrowsing/goog-phish-shavar.cache differ diff --git a/test/support/profiles/red/safebrowsing/goog-phish-shavar.pset b/test/support/profiles/red/safebrowsing/goog-phish-shavar.pset new file mode 100644 index 000000000..a75c96e19 Binary files /dev/null and b/test/support/profiles/red/safebrowsing/goog-phish-shavar.pset differ diff --git a/test/support/profiles/red/safebrowsing/goog-phish-shavar.sbstore b/test/support/profiles/red/safebrowsing/goog-phish-shavar.sbstore new file mode 100644 index 000000000..90983e399 Binary files /dev/null and b/test/support/profiles/red/safebrowsing/goog-phish-shavar.sbstore differ diff --git a/test/support/profiles/red/safebrowsing/test-malware-simple.cache b/test/support/profiles/red/safebrowsing/test-malware-simple.cache new file mode 100644 index 000000000..0906bfadf Binary files /dev/null and b/test/support/profiles/red/safebrowsing/test-malware-simple.cache differ diff --git a/test/support/profiles/red/safebrowsing/test-malware-simple.pset b/test/support/profiles/red/safebrowsing/test-malware-simple.pset new file mode 100644 index 000000000..49689ea22 Binary files /dev/null and b/test/support/profiles/red/safebrowsing/test-malware-simple.pset differ diff --git a/test/support/profiles/red/safebrowsing/test-malware-simple.sbstore b/test/support/profiles/red/safebrowsing/test-malware-simple.sbstore new file mode 100644 index 000000000..4980a7550 Binary files /dev/null and b/test/support/profiles/red/safebrowsing/test-malware-simple.sbstore differ diff --git a/test/support/profiles/red/safebrowsing/test-phish-simple.cache b/test/support/profiles/red/safebrowsing/test-phish-simple.cache new file mode 100644 index 000000000..cc6082b1e Binary files /dev/null and b/test/support/profiles/red/safebrowsing/test-phish-simple.cache differ diff --git a/test/support/profiles/red/safebrowsing/test-phish-simple.pset b/test/support/profiles/red/safebrowsing/test-phish-simple.pset new file mode 100644 index 000000000..49689ea22 Binary files /dev/null and b/test/support/profiles/red/safebrowsing/test-phish-simple.pset differ diff --git a/test/support/profiles/red/safebrowsing/test-phish-simple.sbstore b/test/support/profiles/red/safebrowsing/test-phish-simple.sbstore new file mode 100644 index 000000000..70a040da7 Binary files /dev/null and b/test/support/profiles/red/safebrowsing/test-phish-simple.sbstore differ diff --git a/test/support/profiles/red/search.json b/test/support/profiles/red/search.json new file mode 100644 index 000000000..b4c37755b --- /dev/null +++ b/test/support/profiles/red/search.json @@ -0,0 +1 @@ +{"version":7,"buildID":"20130326150557","locale":"en-US","directories":{"/Applications/Firefox.app/Contents/MacOS/searchplugins":{"lastModifiedTime":1365430671000,"engines":[{"_id":"[app]/amazondotcom.xml","_name":"Amazon.com","_hidden":false,"description":"Amazon.com Search","__searchForm":"http://www.amazon.com/","_iconURL":"data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHgSURBVHjalFM9TNtQEP4cB7PwM1RITUXIgsRaYEEVEyKZwhiyZAQyd0BhpFOlIjoBqhjSqVQMoVMLLAjEwECCQJkSkBqJYDOAFOMKFSf28d7DTUxiUDnp/Pzeu/vuu7t3ICKF6SLTMv2/lB0fRWKfjwDm4JJisYh0Oo3fpZLYT0SjSCQS8JAFMADNDZ3NZsnf1taiqVTKi4nGASruk5lkkmTmMB6JUKFQqO+DfX1eABWeQoVR6f7HSdM0obqu48Yw8G1tDT82NsRd1TSbU9BbGPCog8PDj+jLzurFoAVgMh4XxoNDQ6SqKi0tL9eBvAB8zZwymYxYY7EYAoEA8vm82BNTg6XUIs0MeGTZoR1mhXSnwNl4pmAbjU7mcjkKhkL1ynMnntZ4OEw3VyrV8utk7s5TdW++0QXz+1i3P7IK36t+PCfVn1OQOoOA0gXr5DPak+cPXbBK+/T3S69AtY3LJ98vZ1or/iLr+pTuvr59/A6s003UdqZFJF/PCKQ3o5CUznoBST2AfbEF/9iqYEDaIfwj73VJPEfgNTe0tWNYR0uwy9uOW0OkrgHI7z5ADo2C7v48nLV3XHKAT+x/1m1sX58xsBxg8rZJrDYD8DHHp4aJj/MK09sXjPOt46PcCzAACXY8/u34wN0AAAAASUVORK5CYII=","_urls":[{"template":"http://www.amazon.com/exec/obidos/external-search/","rels":[],"params":[{"name":"field-keywords","value":"{searchTerms}"},{"name":"mode","value":"blended"},{"name":"tag","value":"mozilla-20"},{"name":"sourceid","value":"Mozilla-search"}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/amazondotcom.xml"},{"_id":"[app]/bing.xml","_name":"Bing","_hidden":false,"description":"Bing. Search by Microsoft.","__searchForm":"http://www.bing.com/search","_iconURL":"data:image/x-icon;base64,AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAABMLAAATCwAAAAAAAAAAAAAVpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8ysf97zf+24//F6f/F6f/F6f+K0/9QvP8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8krP+Z2P/////////w+f/F6f/F6f/i9P/////////T7v9Bt/8Vpv8Vpv8Vpv8Vpv/T7v/////w+f97zf8Vpv8Vpv8Vpv8Vpv9QvP/T7v/////w+f9Bt/8Vpv8Vpv97zf////////9QvP8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8krP/i9P/////i9P8Vpv8Vpv+24//////i9P8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv+K0/////////8Vpv8Vpv/F6f////////8krP8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv+n3v/////w+f8Vpv8Vpv/F6f////////+n3v8krP8Vpv8Vpv8Vpv8Vpv8Vpv9tx/////////+Z2P8Vpv8Vpv/F6f/////////////i9P+K0/9QvP9QvP9tx//F6f////////+n3v8Vpv8Vpv8Vpv/F6f/////T7v+Z2P/i9P////////////////////+24/9QvP8Vpv8Vpv8Vpv8Vpv/F6f/////F6f8Vpv8Vpv8krP9QvP9QvP9Bt/8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv/F6f/////F6f8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv9Bt/9QvP9Bt/8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8Vpv8AAHBsAABhdAAAbiAAAHJ0AABsaQAAdGkAACBDAABlbgAAUEEAAEVYAAAuQwAAOy4AAEU7AABBVAAAQ00AAC5W","_urls":[{"template":"http://api.bing.com/osjson.aspx","rels":[],"type":"application/x-suggestions+json","params":[{"name":"query","value":"{searchTerms}"},{"name":"form","value":"OSDJAS"}]},{"template":"http://www.bing.com/search","rels":[],"params":[{"name":"q","value":"{searchTerms}"},{"name":"form","value":"MOZSBR"},{"pref":"ms-pc","name":"pc","condition":"pref","mozparam":true}]},{"template":"http://www.bing.com/search","rels":[],"type":"application/x-moz-keywordsearch","params":[{"name":"q","value":"{searchTerms}"},{"name":"form","value":"MOZLBR"},{"pref":"ms-pc","name":"pc","condition":"pref","mozparam":true}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/bing.xml","queryCharset":"UTF-8"},{"_id":"[app]/eBay.xml","_name":"eBay","_hidden":false,"description":"eBay - Online auctions","__searchForm":"http://search.ebay.com/","_iconURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABaklEQVQ4jc2TO0hbYQBGz42pMVDrINQuGvrCpZOSoQ4WoZoOxVk7FISCQxy6BEUtSIeCIBTsYCl0cHEQV0GU0lcIIkrpUEGNVYdi6qOtiTH+ubn3c4iTOPSaxbOfM30fkuokzUoy+n/MqVOHpDkP4lk+WpIMUM7FcCxJuqAMgK8U+dzAp5Us9QOr3gJm6RvbLRG2WyI4v3dIH7vcf7VO8/BP9jI2ZqGD3HQN6R/9zCz3AuCqwIeVIfwAf2L9BB+1ocwhtS96cBtGiPfdYnLxgMejmySivRSCtbDxlp3qML/+LbGfXSOV/l4MYNsEwo1cuXObTGcXgfEjynwWNdf8OPkDTLyVQNM0ztZ7Hoae8Tk5TM7+y5PwVDFQFXtO+vUb5LqkooNY1lUaXiaRxMTTIL7dB5hEO2U3u7lReQ+Y5O71CBX+KvC6nPmNMb2LN8sUDiVJl2MH+RJ8xwd8KSHwFRXvPCdvd86fOqETu2NuOELmXqEAAAAASUVORK5CYII=","_urls":[{"template":"http://anywhere.ebay.com/services/suggest/","rels":[],"type":"application/x-suggestions+json","params":[{"name":"s","value":"0"},{"name":"q","value":"{searchTerms}"}]},{"template":"http://rover.ebay.com/rover/1/711-47294-18009-3/4","rels":[],"params":[{"name":"mpre","value":"http://shop.ebay.com/?_nkw={searchTerms}"}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/eBay.xml"},{"_id":"[app]/google.xml","_name":"Google","_hidden":false,"description":"Google Search","__searchForm":"https://www.google.com/","_iconURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUUlEQVR42pWTzUsCYRCH9y9zu3SooCCkjhIRRLeIykXokiWCJ7PvDpZRlz6si1lIQZ3SQxQdOhREpgSm0JeQvfu0+i6I7LKLh4F5h5nnnRl+o6jTdHn8omAYbVqhXqvYFXcEBKFDwcoZZB8B4LkEB9cwGGmFKHb01A1EU9JXzfdvDYZi1lwLwBcVAIwsNWPesIwls7gDtB2Z7N9ujVe+IX2LO2AgItB1OL9vJqsmILDrOoK02IkBAdYy4FsQJC5h+VQCHQDWTqYSgo8fuHuRxS4Ae3stQ7UGE5ttAHqCUgfxC7m4ryrowOyeO6CxqHwZxtYFqtYc5+kNan/gDTsAeueEIRj7n/rmRQMwueUAGF0VAAT3rQBTC0Y3DoDOGbm00icML4oWHYSTgo0MFqjlmPpDgqMcFCuQf4erBzjOwXjcriu9qHg0uutO2+es6fl67T9ptebvFRjBVgAAAABJRU5ErkJggg==","_urls":[{"template":"https://www.google.com/complete/search?client=firefox&q={searchTerms}","rels":[],"type":"application/x-suggestions+json","params":[]},{"template":"https://www.google.com/search","rels":[],"params":[{"name":"q","value":"{searchTerms}"},{"name":"ie","value":"utf-8"},{"name":"oe","value":"utf-8"},{"name":"aq","value":"t"},{"name":"rls","value":"{moz:distributionID}:{moz:locale}:{moz:official}"},{"name":"client","falseValue":"firefox","trueValue":"firefox-a","condition":"defaultEngine","mozparam":true}]},{"template":"https://www.google.com/search","rels":[],"type":"application/x-moz-keywordsearch","params":[{"name":"q","value":"{searchTerms}"},{"name":"ie","value":"utf-8"},{"name":"oe","value":"utf-8"},{"name":"aq","value":"t"},{"name":"rls","value":"{moz:distributionID}:{moz:locale}:{moz:official}"},{"name":"client","falseValue":"firefox","trueValue":"firefox-a","condition":"defaultEngine","mozparam":true},{"name":"channel","value":"fflb"}]},{"template":"https://www.google.com/search","rels":[],"type":"application/x-moz-contextsearch","params":[{"name":"q","value":"{searchTerms}"},{"name":"ie","value":"utf-8"},{"name":"oe","value":"utf-8"},{"name":"aq","value":"t"},{"name":"rls","value":"{moz:distributionID}:{moz:locale}:{moz:official}"},{"name":"client","falseValue":"firefox","trueValue":"firefox-a","condition":"defaultEngine","mozparam":true},{"name":"channel","value":"rcs"}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/google.xml","queryCharset":"UTF-8"},{"_id":"[app]/twitter.xml","_name":"Twitter","_hidden":false,"description":"Realtime Twitter Search","__searchForm":"https://twitter.com/search/","_iconURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAABZWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPkFjb3JuIHZlcnNpb24gMy4zPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgqo9EsfAAACMUlEQVQ4jX2TMWtTURTHf+e+l1CTtCapLuLgoIuOolPB+AlqDekgpeDSufoFmoIfwNmtCKKmtYNUcJAGQcVBQSyFKuImOthE+9q0zXv37/ASWxvwwB3Ouefc8z/87jFJmGEAEuKImWHUmwFUPOcbBjVYT/M0h0cSkgAZdbm+LwkkO+wfPUgWAliTUCIGZE1CVYjNsL4iW25PI38NaCO7y6/kK6PBGY2XPjoANluTtvhzAUAVYrv3LsMzsgC21LrDSHGBY8MTDJdvgl4zYu/p+nGAEACvU5wenbbFVpHQ3dbMxS8Adv9HnlxmliiCeG8PnBFm8khnSeJtAJOELW1eAF5RKB4nau+APcHxCPkMsoeYy4IXwjOUD9jdfqlq+cqBAlQAPhG1L+GCHLmRKXwyRWerx8YDGCCCDMB3AGs0gvQBcyfIFy/R+Q2JT4ha6gEMeoX/cMXYSJ0azsB0vbTCVmueON4FuVSZgh7fvgkI6WyBtALAetMcDVISiX+A2Q7ZIQN8v9/frtClUIKk+0LV0bcGRv1q4pjsJTt9A3vO/i4D/1HsE2azRK0Y52YBaOAkyfU/i2onI1VLNzBu4ayL8IgukJAbzuITMFfVRGnN5puhaiQHGJdbYyQaxxhDXCZXcOnEISQxdKI1HDOaKL+x+WaouUrcF5dSiDMbBN3PiHOY/0AnChDbGBs495RqeVkgaxAcLu4POLAwrK6GgzENxHoLJajLsaqQxwqOXKbx/2zlH1DoZhoGHT3iAAAAAElFTkSuQmCC","_urls":[{"template":"https://twitter.com/search","rels":[],"params":[{"name":"q","value":"{searchTerms}"},{"name":"partner","value":"Firefox"},{"name":"source","value":"desktop-search"}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/twitter.xml","queryCharset":"UTF-8"},{"_id":"[app]/wikipedia.xml","_name":"Wikipedia (en)","_hidden":false,"description":"Wikipedia, the free encyclopedia","__searchForm":"http://en.wikipedia.org/wiki/Special:Search","_iconURL":"data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAEAgQAhIOEAMjHyABIR0gA6ejpAGlqaQCpqKkAKCgoAPz9%2FAAZGBkAmJiYANjZ2ABXWFcAent6ALm6uQA8OjwAiIiIiIiIiIiIiI4oiL6IiIiIgzuIV4iIiIhndo53KIiIiB%2FWvXoYiIiIfEZfWBSIiIEGi%2FfoqoiIgzuL84i9iIjpGIoMiEHoiMkos3FojmiLlUipYliEWIF%2BiDe0GoRa7D6GPbjcu1yIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","_urls":[{"template":"http://en.wikipedia.org/w/api.php","rels":[],"type":"application/x-suggestions+json","params":[{"name":"action","value":"opensearch"},{"name":"search","value":"{searchTerms}"}]},{"template":"http://en.wikipedia.org/wiki/Special:Search","rels":[],"params":[{"name":"search","value":"{searchTerms}"},{"name":"sourceid","value":"Mozilla-search"}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/wikipedia.xml","queryCharset":"UTF-8"},{"_id":"[app]/yahoo.xml","_name":"Yahoo","_hidden":false,"description":"Yahoo Search","__searchForm":"http://search.yahoo.com/","_iconURL":"data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbgJqAIoCdgCaAnoAnhKCAKYijgCuLpIAskKeALpSpgC+Yq4AzHy8ANqezgDmvt4A7tLqAPz5+wD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKlRFIoABWAKERERE6ADcKMzzu2hOgAAhERK8REWCWBERE36ERMHMEREvo6iEgY6hEn6Pu0mAzqkz/xjMzoDNwpERERDoAMzAKlERIoAAzMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAA//8AAP//AADAOQAAgBkAAAAPAAAACQAAAAkAAAAIAAAACAAAAAgAAIAYAADAOAAA//8AAP//AAD//wAA","_urls":[{"template":"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}","rels":[],"type":"application/x-suggestions+json","params":[]},{"template":"http://search.yahoo.com/search","rels":[],"params":[{"name":"p","value":"{searchTerms}"},{"name":"ei","value":"UTF-8"},{"pref":"yahoo-fr","name":"fr","condition":"pref","mozparam":true}]}],"filePath":"/Applications/Firefox.app/Contents/MacOS/searchplugins/yahoo.xml","queryCharset":"UTF-8"}]}}} \ No newline at end of file diff --git a/test/support/profiles/red/secmod.db b/test/support/profiles/red/secmod.db new file mode 100644 index 000000000..559986368 Binary files /dev/null and b/test/support/profiles/red/secmod.db differ diff --git a/test/support/profiles/red/sessionstore.bak b/test/support/profiles/red/sessionstore.bak new file mode 100644 index 000000000..2a4e345c1 --- /dev/null +++ b/test/support/profiles/red/sessionstore.bak @@ -0,0 +1 @@ +{"windows":[{"tabs":[{"entries":[{"url":"about:home","title":"Mozilla Firefox Start Page","ID":0,"docshellID":6,"docIdentifier":0},{"url":"https://www.google.ca/search?q=addons&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=fflb","title":"addons - Google Search","ID":2,"docshellID":6,"docIdentifier":2,"children":[{"url":"about:blank","ID":3,"docshellID":8,"owner_b64":"CbflmEkNQj+opi5sTsh3UAAAAAAAAAAAwAAAAAAAAEYB3pRy0IA0EdOTmQAQS6D9QDlf4EV9GErbo/2vmMihrxEAAAAC/////wAAAbsBAAAAy2h0dHBzOi8vd3d3Lmdvb2dsZS5jYS91cmw/c2E9dCZyY3Q9aiZxPSZlc3JjPXMmc291cmNlPXdlYiZjZD0xJnZlZD0wQ0RFUUZqQUEmdXJsPWh0dHBzJTNBJTJGJTJGYWRkb25zLm1vemlsbGEub3JnJTJGJmVpPUl6S0JVYm1xQk1hRHl3SGhtWURBQWcmdXNnPUFGUWpDTkdvVGRQVkpKWURtYURrS29GU3B1YXN2NkhWQ2cmYnZtPWJ2LjQ1OTIxMTI4LGQuYVdjAAAAAAAAAAUAAAAIAAAADQAAAAj/////AAAACP////8AAAAIAAAADQAAABUAAAC2AAAAFQAAAAQAAAAVAAAAAQAAABYAAAADAAAAFv////8AAAAA/////wAAABoAAACxAAAAFf////8BAAAAAAAAAAAAAQAAAAAAAA==","docIdentifier":3}]},{"url":"https://addons.mozilla.org/en-US/firefox/","title":"Add-ons for Firefox","ID":4,"docshellID":6,"referrer":"https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDEQFjAA&url=https%3A%2F%2Faddons.mozilla.org%2F&ei=IzKBUbmqBMaDywHhmYDAAg&usg=AFQjCNGoTdPVJJYDmaDkKoFSpuasv6HVCg&bvm=bv.45921128,d.aWc","docIdentifier":4},{"url":"https://addons.mozilla.org/en-US/firefox/addon/save-my-youtube-day/contribute/roadblock/?src=hp-hc-upandcoming&version=1.1","title":"Meet the YouTube Flash to HTML5 Developer :: Add-ons for Firefox","ID":5,"docshellID":6,"referrer":"https://addons.mozilla.org/en-US/firefox/","docIdentifier":5,"formdata":{"id":{"language":{"selectedIndex":8,"value":"en-us"}},"xpath":{}},"scroll":"0,0"}],"index":4,"hidden":false,"attributes":{"image":"https://addons.cdn.mozilla.net/media/img/favicon.ico"}}],"selected":1,"_closedTabs":[{"state":{"entries":[{"url":"http://www.mozilla.org/en-US/firefox/20.0/firstrun/","title":"Welcome to Firefox","ID":1,"docshellID":5,"docIdentifier":1,"formdata":{"id":{"id_country":{"selectedIndex":232,"value":"us"},"id_lang":{"selectedIndex":2,"value":"en"}},"xpath":{}},"scroll":"0,0"}],"index":1,"hidden":false,"attributes":{"image":"http://mozorg.cdn.mozilla.net/media/img/firefox/favicon.ico"}},"title":"Welcome to Firefox","image":"http://mozorg.cdn.mozilla.net/media/img/firefox/favicon.ico","pos":0}],"busy":false,"width":994,"height":768,"screenX":4,"screenY":22,"sizemode":"normal","cookies":[{"host":".mozilla.org","value":"150903082","path":"/","name":"__utmc"},{"host":".addons.mozilla.org","value":"164683759","path":"/","name":"__utmc"}]}],"selectedWindow":1,"_closedWindows":[],"session":{"state":"stopped","lastUpdate":1367421623567,"startTime":1367421446487,"recentCrashes":0},"scratchpads":[]} \ No newline at end of file diff --git a/test/support/profiles/red/sessionstore.js b/test/support/profiles/red/sessionstore.js new file mode 100644 index 000000000..8a661dd34 --- /dev/null +++ b/test/support/profiles/red/sessionstore.js @@ -0,0 +1 @@ +{"windows":[{"tabs":[{"entries":[{"url":"about:home","title":"Mozilla Firefox Start Page","ID":0,"docshellID":5,"docIdentifier":0,"scroll":"0,0"}],"index":1,"hidden":false,"attributes":{"image":"chrome://branding/content/icon16.png"}}],"selected":1,"_closedTabs":[],"busy":false,"width":994,"height":768,"screenX":4,"screenY":22,"sizemode":"normal"}],"selectedWindow":1,"_closedWindows":[],"session":{"state":"stopped","lastUpdate":1367423196510,"startTime":1367421630854,"recentCrashes":0},"scratchpads":[]} \ No newline at end of file diff --git a/test/support/profiles/red/signons.sqlite b/test/support/profiles/red/signons.sqlite new file mode 100644 index 000000000..ebc4e021f Binary files /dev/null and b/test/support/profiles/red/signons.sqlite differ diff --git a/test/support/profiles/red/startupCache/startupCache.8.little b/test/support/profiles/red/startupCache/startupCache.8.little new file mode 100644 index 000000000..b10a6569e Binary files /dev/null and b/test/support/profiles/red/startupCache/startupCache.8.little differ diff --git a/test/support/profiles/red/thumbnails/12643f0996e399bde80cacf76faf567f.png b/test/support/profiles/red/thumbnails/12643f0996e399bde80cacf76faf567f.png new file mode 100644 index 000000000..9168b0c7d Binary files /dev/null and b/test/support/profiles/red/thumbnails/12643f0996e399bde80cacf76faf567f.png differ diff --git a/test/support/profiles/red/thumbnails/4aa7f80ff514156cb9820739f87a8560.png b/test/support/profiles/red/thumbnails/4aa7f80ff514156cb9820739f87a8560.png new file mode 100644 index 000000000..9168b0c7d Binary files /dev/null and b/test/support/profiles/red/thumbnails/4aa7f80ff514156cb9820739f87a8560.png differ diff --git a/test/support/profiles/red/thumbnails/a8aa3ec18c47e73b960acf2a8a4d2b05.png b/test/support/profiles/red/thumbnails/a8aa3ec18c47e73b960acf2a8a4d2b05.png new file mode 100644 index 000000000..22dc0c92b Binary files /dev/null and b/test/support/profiles/red/thumbnails/a8aa3ec18c47e73b960acf2a8a4d2b05.png differ diff --git a/test/support/profiles/red/thumbnails/a9ae9e9176433159745e36ca67e512d1.png b/test/support/profiles/red/thumbnails/a9ae9e9176433159745e36ca67e512d1.png new file mode 100644 index 000000000..22dc0c92b Binary files /dev/null and b/test/support/profiles/red/thumbnails/a9ae9e9176433159745e36ca67e512d1.png differ diff --git a/test/support/profiles/red/thumbnails/ba226a439a5b61f3de375021fa4edc29.png b/test/support/profiles/red/thumbnails/ba226a439a5b61f3de375021fa4edc29.png new file mode 100644 index 000000000..69f3ce5a6 Binary files /dev/null and b/test/support/profiles/red/thumbnails/ba226a439a5b61f3de375021fa4edc29.png differ diff --git a/test/support/profiles/red/thumbnails/c314b11dc9f9d711d7a2dbdbaf470dfa.png b/test/support/profiles/red/thumbnails/c314b11dc9f9d711d7a2dbdbaf470dfa.png new file mode 100644 index 000000000..0a7a1bbaf Binary files /dev/null and b/test/support/profiles/red/thumbnails/c314b11dc9f9d711d7a2dbdbaf470dfa.png differ diff --git a/test/support/profiles/red/thumbnails/d37b37c9cb95f622406f785fe99d162c.png b/test/support/profiles/red/thumbnails/d37b37c9cb95f622406f785fe99d162c.png new file mode 100644 index 000000000..69f3ce5a6 Binary files /dev/null and b/test/support/profiles/red/thumbnails/d37b37c9cb95f622406f785fe99d162c.png differ diff --git a/test/support/profiles/red/thumbnails/dc667ec1e4923f44be15b19380bd4453.png b/test/support/profiles/red/thumbnails/dc667ec1e4923f44be15b19380bd4453.png new file mode 100644 index 000000000..0a7a1bbaf Binary files /dev/null and b/test/support/profiles/red/thumbnails/dc667ec1e4923f44be15b19380bd4453.png differ diff --git a/test/support/profiles/red/times.json b/test/support/profiles/red/times.json new file mode 100755 index 000000000..1c23f4f0f --- /dev/null +++ b/test/support/profiles/red/times.json @@ -0,0 +1,3 @@ +{ +"created": 1367421442899 +} diff --git a/test/support/profiles/red/urlclassifierkey3.txt b/test/support/profiles/red/urlclassifierkey3.txt new file mode 100644 index 000000000..39617be52 --- /dev/null +++ b/test/support/profiles/red/urlclassifierkey3.txt @@ -0,0 +1,2 @@ +clientkey:24:oQvgp84AwSc94Hpx44uQ8w== +wrappedkey:100:AKEgNiu-EDYMB9R9dPxHxG0MbJMkOJwoLclvibjc3i6xPww1Q7KCYRDrQMeuKfwEABmVXKEN_kChaHJsV0z1_mmxObkScqoyDg== diff --git a/test/support/profiles/red/webapps/webapps.json b/test/support/profiles/red/webapps/webapps.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/test/support/profiles/red/webapps/webapps.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/support/profiles/red/webappsstore.sqlite b/test/support/profiles/red/webappsstore.sqlite new file mode 100644 index 000000000..22f76eb60 Binary files /dev/null and b/test/support/profiles/red/webappsstore.sqlite differ