- From: James Graham <james@hoppipolla.co.uk>
- Date: Thu, 20 Mar 2014 09:33:04 +0000
- To: Koji Ishii <kojiishi@gluesoft.co.jp>, "public-test-infra@w3.org" <public-test-infra@w3.org>
On 20/03/14 00:12, Koji Ishii wrote: >>> I believe this is because Blink/WebKit incorrectly prevent accessing resources loaded into data: urls cross-origin. Unfortunately I think working around this bug will require rewriting the tests to load the test data into an isolated browsing context in which to perform the parsing using some other mechanism. >> >> Fails on IE11 too: >> Access is denied. (stack: Error: Access is denied. at Anonymous function (http://w3c-test.org/html/syntax/parsing/test.js:162:16) at step (http://w3c-test.org/resources/testharness.js:1159:13) at onload (http://w3c-test.org/html/syntax/parsing/test.js:160:7)) >> >> So it looks like the only platform the tests support is Firefox. It doesn’t look like a great test for interoperability… It also works in Presto :) Note that these tests also take a query string to specify the type of test to run. So you can get tests that do run in other browsers by specifying run_type=write e.g. [1]. I think it's fair to assume that if the tests pass in write mode they would also have passed in the normal mode, but if they fail in write mode it's not clear whether the parser or the document.write support is broken. >> Is it hard to rewrite the test as you suggested? I'm not sure, I haven't thought about it. One of the goals of this approach was to use as few parts of the platform that might interfere with the exact bytes on the input stream as possible. > After a bit more thoughts… > > Would it be a simple fix to add CORS header to serve.py? I don't think CORS will help here. > If it’s not a good way to go, what do you think for the python script to create an HTML file for each test and load them using the regular iframe? Does it sound like a reasonable way to go? Creating a HTML file for each input is of course possible, the only downside is that it might make the tests slower to run. If you want to try implementing this, the script to create the tests is [2]. [1] http://w3c-test.org/html/syntax/parsing/html5lib_tests1.html?run_type=write [2] https://github.com/w3c/web-platform-tests/blob/master/tools/scripts/update_html5lib_tests.py
Received on Thursday, 20 March 2014 09:35:56 UTC