Connect securely to https websites by checking certificates with network notaries.
Perspectives is a browser extension that helps to verify whether your connection to any web site really is secure. It does this by checking the connection certificate with multiple observers hosted around the world. For more information see: http://www.perspectives-project.org.
Install
You can install Perspectives for Firefox or SeaMonkey at addons.mozilla.org. Future support for other browsers is also planned.
Contact
You can contact the developers or post questions for discussion on the Perspectives Dev newsgroup:
In ~/.mozilla/firefox/r4nd0m5tr.dev/extensions create a file called [email protected] and enter the text Path_to_your_Perspectives_clone/plugin/ (where you cloned the git repo to).
This enables you to see changes without having to rebuild with make everytime.
Unfortunately you still have to restart the browser because Perspectives is not yet a "restartless extensions" (see issue #76).
Enter about:config in the location bar and set the following variables:
devtools.debugger.remote-enabled = true
devtools.chrome.enabled = true
This enables you to use the "Browser Toolbox" (debugger).
Restart the browser and open Menu -> Developer -> Browser Toolbox -> Ok -> Debugger
Search for the file you want to debug (e.g. notaries.js).
Search for the code line you want to debug and set a breakpoint.
Edit the d_print_flags in plugin/chrome/content/common.js if you like to see some useful logs.
Optional tips if you want speed-up development a bit:
If you just need console logs use Menu -> Developer -> Browser Console (Ctrl + Shift + J) instead of the "Browser Toolbox". The plain console loads a little faster (Note: "Browser Console" is not the standard "Javascript Console").
Use the debugger keyword in Javascript to make the debugger automatically jump to the file and codeline. You need to have "Browser Toolbox" already open though!
You can also move the Developer menu into the toolbar to skip one menu step.
Test
To test Perspectives:
Use make test to build Perspectives.xpi, or make test install-fx to build and install all in one step (this assumes Firefox exists in your path).
Install the plugin and restart the browser.
Open the following URL: chrome://perspectives/content/test/test.html
Press the 'Run Tests' button. Test results will be displayed on the page.
The file test/Manual Test Cases.txt has lists of other tests to run through when doing a full test pass.
Some tests are performed at build time - e.g. checking localization files for the correct format and contents. All tests of the javascript code are run inside the extension - for security reasons they must be installed along with other extension files.
If you have ideas for further tests please let us know!
请发表评论