Skip to content

Commit f9a7e19

Browse files
committed
Repo cleaning
1 parent a4a8d12 commit f9a7e19

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

_hp/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Head(er)s Up! Detecting Security Header Inconsistencies in Browsers
2+
3+
This repository contains all code for our paper `Head(er)s Up! Detecting Security Header Inconsistencies in Browsers`.
4+
5+
This folder contains our test and analysis code. Please find the full README including the installation and usage instructions [here](../README.md).
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import pytest
22

3-
#from wpt._hp.tools.crawler.utils import generate_short_uuid
4-
#from utils import generate_short_uuid
53
from hp.tools.crawler.selenium_run_specific import config, run_specific
64
from hp.tools.crawler.utils import generate_short_uuid
75

6+
87
def test_generate_short_uuid():
98
assert len(generate_short_uuid(3)) == 3
109

1110

1211
def test_selenium_test_specific():
1312
url = "http://sub.headers.websec.saarland/_hp/tests/referrer-access-rp.sub.html?resp_type=basic&browser_id=1&label=RP&first_id=199&last_id=199&scheme=http&t_resp_id=199&t_element_relation=iframe_window.open&t_resp_origin=http://sub.headers.websec.saarland"
14-
for (browser_name, browser_version, binary_location, arguments, _) in config:
13+
for browser_name, browser_version, binary_location, arguments, _ in config:
1514
run_specific(url, browser_name, browser_version, binary_location, arguments)
1615

1716
assert True

_hp/hp/tools/analysis/main_analysis_desktop_basic+parsing.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14766,9 +14766,7 @@
1476614766
{
1476714767
"cell_type": "markdown",
1476814768
"id": "276c5c4c-ea5d-4137-9811-5d9beaa48ee2",
14769-
"metadata": {
14770-
"jp-MarkdownHeadingCollapsed": true
14771-
},
14769+
"metadata": {},
1477214770
"source": [
1477314771
"## Fullscreen/PP\n",
1477414772
"- Testfile: `fullscreen-api-pp.sub.hml`\n",
@@ -26352,7 +26350,7 @@
2635226350
"name": "python",
2635326351
"nbconvert_exporter": "python",
2635426352
"pygments_lexer": "ipython3",
26355-
"version": "3.11.5"
26353+
"version": "3.11.4"
2635626354
}
2635726355
},
2635826356
"nbformat": 4,

_hp/requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

_hp/setup.bash

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,5 @@ source ~/.install-conf
3232
poetry env use 3.11
3333
poetry install
3434

35-
# (Alternative) Run with pip
36-
# pip install --user -r requirements.txt
37-
3835
# Grant WPT ability to bind to port 80 and 443
39-
sudo setcap CAP_NET_BIND_SERVICE=+eip /home/ubuntu/.pyenv/versions/3.11.5/bin/python3.11
36+
sudo setcap CAP_NET_BIND_SERVICE=+eip /home/ubuntu/.pyenv/versions/3.11.5/bin/python3.11

0 commit comments

Comments
 (0)