|
|
Chromium Code Reviews|
Created:
4 years, 7 months ago by tkent Modified:
4 years, 7 months ago CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptioncontent_shell: Redirect resource requests for some local paths.
This CL changes content_shell in layout test mode so that it redirects resource
requests for file:///{common,images,media,resources}/ to third_party/WebKit/
LayoutTests/imported/wpt/*.
Such URLs are resolved from absolute path links in web-platform-tests like
<script src="/resources/testharness.js">.
After this CL, we can remove path rewrite step for /resources and /common in
test_converter.py.
BUG=498120, 613408
Committed: https://crrev.com/3f67002a393008c12f36c27ce46e38ea3ee9e0c9
Cr-Commit-Position: refs/heads/master@{#395025}
Patch Set 1 : #
Total comments: 8
Patch Set 2 : Apply review comments #Messages
Total messages: 27 (18 generated)
Patchset #1 (id:1) has been deleted
Description was changed from ========== content_shell: Redirect resource requests for some local paths. This CL changes content_shell in layout test mode so that it redirects resource requests for file: outside of third_party/WebKit/LayoutTests/ to third_party/WebKit/LayoutTests/imported/wpt/. Such URLs are resolved from absolute path links in web-platform-tests such as <script src="/resources/testharness.js">. After this CL and reimporting WPT, imported WPT tests won't work with real browsers. BUG= ========== to ========== content_shell: Redirect resource requests for some local paths. This CL changes content_shell in layout test mode so that it redirects resource requests for file: outside of third_party/WebKit/LayoutTests/ to third_party/WebKit/LayoutTests/imported/wpt/. Such URLs are resolved from absolute path links in web-platform-tests like <script src="/resources/testharness.js">. BUG= ==========
Description was changed from ========== content_shell: Redirect resource requests for some local paths. This CL changes content_shell in layout test mode so that it redirects resource requests for file: outside of third_party/WebKit/LayoutTests/ to third_party/WebKit/LayoutTests/imported/wpt/. Such URLs are resolved from absolute path links in web-platform-tests like <script src="/resources/testharness.js">. BUG= ========== to ========== content_shell: Redirect resource requests for some local paths. This CL changes content_shell in layout test mode so that it redirects resource requests for file: outside of third_party/WebKit/LayoutTests/ to third_party/WebKit/LayoutTests/imported/wpt/. Such URLs are resolved from absolute path links in web-platform-tests like <script src="/resources/testharness.js">. BUG=498120 ==========
Patchset #1 (id:20001) has been deleted
Patchset #1 (id:40001) has been deleted
Patchset #1 (id:60001) has been deleted
Patchset #1 (id:80001) has been deleted
Patchset #1 (id:100001) has been deleted
Patchset #1 (id:120001) has been deleted
Description was changed from
==========
content_shell: Redirect resource requests for some local paths.
This CL changes content_shell in layout test mode so that it redirects resource
requests for file: outside of third_party/WebKit/LayoutTests/ to
third_party/WebKit/LayoutTests/imported/wpt/.
Such URLs are resolved from absolute path links in web-platform-tests like
<script src="/resources/testharness.js">.
BUG=498120
==========
to
==========
content_shell: Redirect resource requests for some local paths.
This CL changes content_shell in layout test mode so that it redirects resource
requests for file:///{common,images,media,resources}/ to third_party/WebKit/
LayoutTests/imported/wpt/*.
Such URLs are resolved from absolute path links in web-platform-tests like
<script src="/resources/testharness.js">.
After this CL, we can remove path rewrite step for /resources and /common in
test_converter.py.
BUG=498120
==========
tkent@chromium.org changed reviewers: + jsbell@chromium.org, qyearsley@chromium.org
jsbell@, qyearsley@, do you think we should proceed this CL? note: autocapitalize.html is just a demonstration. I'll revert it if we proceed this approach.
Patchset #1 (id:140001) has been deleted
lgtm
https://codereview.chromium.org/1984103003/diff/160001/content/shell/renderer... File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/1984103003/diff/160001/content/shell/renderer... content/shell/renderer/layout_test/blink_test_runner.cc:207: WebURL RewriteAbsolutePathInWPT(const std::string& utf8_url) { The main reason for this is so that we don't have to modify the imported web platform tests, right? Maybe we could add a comment somewhere here noting this? https://codereview.chromium.org/1984103003/diff/160001/content/shell/renderer... content/shell/renderer/layout_test/blink_test_runner.cc:228: // a short-teram workaround. We can remove this hack when we start to run short-term https://codereview.chromium.org/1984103003/diff/160001/content/shell/renderer... content/shell/renderer/layout_test/blink_test_runner.cc:229: // all WPT tests with wptserve. Although, we may want to still want to have most tests run using file:// even if when wptserve is used for the tests that require it; in that case, we may want to keep this path rewriting in place. https://codereview.chromium.org/1984103003/diff/160001/content/shell/renderer... content/shell/renderer/layout_test/blink_test_runner.cc:351: WebURL url = RewriteAbsolutePathInWPT(utf8_url); Would rewritten_url make sense for this variable name? Keeping it as url is also fine if that seems better to you.
Patchset #2 (id:180001) has been deleted
https://codereview.chromium.org/1984103003/diff/160001/content/shell/renderer... File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/1984103003/diff/160001/content/shell/renderer... content/shell/renderer/layout_test/blink_test_runner.cc:207: WebURL RewriteAbsolutePathInWPT(const std::string& utf8_url) { On 2016/05/18 at 17:26:56, qyearsley wrote: > The main reason for this is so that we don't have to modify the imported web platform tests, right? > > Maybe we could add a comment somewhere here noting this? Done. https://codereview.chromium.org/1984103003/diff/160001/content/shell/renderer... content/shell/renderer/layout_test/blink_test_runner.cc:228: // a short-teram workaround. We can remove this hack when we start to run On 2016/05/18 at 17:26:56, qyearsley wrote: > short-term Removed. https://codereview.chromium.org/1984103003/diff/160001/content/shell/renderer... content/shell/renderer/layout_test/blink_test_runner.cc:229: // all WPT tests with wptserve. On 2016/05/18 at 17:26:56, qyearsley wrote: > Although, we may want to still want to have most tests run using file:// even if when wptserve is used for the tests that require it; in that case, we may want to keep this path rewriting in place. I updated the comment. https://codereview.chromium.org/1984103003/diff/160001/content/shell/renderer... content/shell/renderer/layout_test/blink_test_runner.cc:351: WebURL url = RewriteAbsolutePathInWPT(utf8_url); On 2016/05/18 at 17:26:56, qyearsley wrote: > Would rewritten_url make sense for this variable name? Keeping it as url is also fine if that seems better to you. Done.
Description was changed from
==========
content_shell: Redirect resource requests for some local paths.
This CL changes content_shell in layout test mode so that it redirects resource
requests for file:///{common,images,media,resources}/ to third_party/WebKit/
LayoutTests/imported/wpt/*.
Such URLs are resolved from absolute path links in web-platform-tests like
<script src="/resources/testharness.js">.
After this CL, we can remove path rewrite step for /resources and /common in
test_converter.py.
BUG=498120
==========
to
==========
content_shell: Redirect resource requests for some local paths.
This CL changes content_shell in layout test mode so that it redirects resource
requests for file:///{common,images,media,resources}/ to third_party/WebKit/
LayoutTests/imported/wpt/*.
Such URLs are resolved from absolute path links in web-platform-tests like
<script src="/resources/testharness.js">.
After this CL, we can remove path rewrite step for /resources and /common in
test_converter.py.
BUG=498120, 613408
==========
tkent@chromium.org changed reviewers: + kinuko@chromium.org
kinuko-san, would you approve this please?
lgtm.
The CQ bit was checked by tkent@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from jsbell@chromium.org Link to the patchset: https://codereview.chromium.org/1984103003/#ps200001 (title: "Apply review comments")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1984103003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1984103003/200001
Message was sent while issue was closed.
Committed patchset #2 (id:200001)
Message was sent while issue was closed.
Description was changed from
==========
content_shell: Redirect resource requests for some local paths.
This CL changes content_shell in layout test mode so that it redirects resource
requests for file:///{common,images,media,resources}/ to third_party/WebKit/
LayoutTests/imported/wpt/*.
Such URLs are resolved from absolute path links in web-platform-tests like
<script src="/resources/testharness.js">.
After this CL, we can remove path rewrite step for /resources and /common in
test_converter.py.
BUG=498120, 613408
==========
to
==========
content_shell: Redirect resource requests for some local paths.
This CL changes content_shell in layout test mode so that it redirects resource
requests for file:///{common,images,media,resources}/ to third_party/WebKit/
LayoutTests/imported/wpt/*.
Such URLs are resolved from absolute path links in web-platform-tests like
<script src="/resources/testharness.js">.
After this CL, we can remove path rewrite step for /resources and /common in
test_converter.py.
BUG=498120, 613408
Committed: https://crrev.com/3f67002a393008c12f36c27ce46e38ea3ee9e0c9
Cr-Commit-Position: refs/heads/master@{#395025}
==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/3f67002a393008c12f36c27ce46e38ea3ee9e0c9 Cr-Commit-Position: refs/heads/master@{#395025} |
