Stanford Web Security Research

Cross-Browser Security Testing

Description

Numerous regression tests have been written for WebKit, but many rely on the use of the layoutTestController to produce text dumps and for other functionality. We want to be able to run the security regression tests on Mozilla Firefox.

Download

We have developed a prototype of an emulator for the layoutTestController in Firefox as a browser extension:

WebKit layoutTestController emulator, version 0.2

Install this add-on in a separate profile. For security, you will not be able to browse the web using the add-on.

We have also written a script to run the security tests on Firefox. Please see the Quick-Start guide for more information.

run-firefox-tests script

Documentation

pdf
pdf

Preliminary Results

These tests have found a number of differences between WebKit and Firefox. In some cases, Firefox is more strict than WebKit and in other cases WebKit is more strict than Firefox. We are currently investigating these differences and have filed two of them as bugs against Firefox.

Tweaking LayoutTests

In order to run the WebKit LayoutTests on Firefox, a few of the tests need to be tweaked. This is usually because Firefox throws an exception when an access is forbidden, but WebKit logs to the error console. We are working with the WebKit project to modify their tests to run to completion on Firefox.

Staff