Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Use iframe for Chromium perf tests to remove --disable-web-security #147

Merged
merged 1 commit into from
Dec 15, 2015

Conversation

hiroshige-g
Copy link
Contributor

Previously:
(a) util_performance_test.js in Blink runs performance tests using
(b) pywebsocket's scripts,
but this required --disable-web-security for cross-origin workers
because (a) and (b) have different origins.

We change this so that:
(a) util_performance_test.js creates
(c) <iframe> with src=pywebsocket's example/*_iframe.html that runs
the performance tests on the iframe using
(b) pywebsocket's scripts.
Because (b) and (c) have the same origin (but (a) has a different origin),
Tests are run in the same-origin while we have an cross-origin iframe.

This CL adds pywebsocket-side iframe HTML/JavaScript files for (b) and (c).

[1] pywebsocket-side: This CL.
[2] Chromium-side: https://codereview.chromium.org/1521943002/

BUG=https://code.google.com/p/chromium/issues/detail?id=567533

…urity

Previously:
(a) util_performance_test.js in Blink runs performance tests using
(b) pywebsocket's scripts,
but this required --disable-web-security for cross-origin workers
because (a) and (b) have different origins.

We change this so that:
(a) util_performance_test.js creates
(c) <iframe> with src=pywebsocket's example/*_iframe.html that runs
    the performance tests on the iframe using
(b) pywebsocket's scripts.
Because (b) and (c) have the same origin (but (a) has a different origin),
Tests are run in the same-origin while we have an cross-origin iframe.

This CL adds pywebsocket-side iframe HTML/JavaScript files for (b) and (c).

[1] pywebsocket-side: This CL.
[2] Chromium-side: https://codereview.chromium.org/1521943002/

BUG=https://code.google.com/p/chromium/issues/detail?id=567533
@hiroshige-g
Copy link
Contributor Author

tyoshino, could you take a look?
Not urgent, but targeting M-49.

@tyoshino
Copy link
Contributor

Could you please fix the OP? It contains HTML tags and entity references. Copied from https://codereview.chromium.org/1521943002 or somewhere?

@hiroshige-g
Copy link
Contributor Author

Fixed. (it was generated from the commit message and was corrupt because it was interpreted as markdown. Fixed by adding a markdown annotation)

@tyoshino
Copy link
Contributor

lgtm 4f10526

hiroshige-g added a commit that referenced this pull request Dec 15, 2015
Use iframe for Chromium perf tests to remove --disable-web-security
@hiroshige-g hiroshige-g merged commit 2d7b73c into googlearchive:master Dec 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants