Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access border-collapse sample on mozillademo #26099

Closed
CYBAI opened this issue Apr 3, 2020 · 1 comment
Closed

Cannot access border-collapse sample on mozillademo #26099

CYBAI opened this issue Apr 3, 2020 · 1 comment

Comments

@CYBAI
Copy link
Collaborator

@CYBAI CYBAI commented Apr 3, 2020

The mozilla demo page for border-collapse at https://mdn.mozillademos.org/en-US/docs/Web/CSS/border-collapse$samples/A_colorful_table_of_browser_engines?revision=1160464 can be visited correctly on Firefox but I can't visit it on Servo.

And with turning on loggings for net, I found the request to the page is actually 404.

However, as we can see, the x-cache from response header is Error from cloudfront in Servo but it's Hit from cloudfront in Firefox

Request logs in Servo:

[2020-04-03T02:57:19Z INFO  net::http_loader] GET request for https://mdn.mozillademos.org/en-US/docs/Web/CSS/border-collapse/A_colorful_table_of_browser_engines?revision=1160464
[2020-04-03T02:57:19Z INFO  net::http_loader]  - ("accept", "text/html, application/xhtml+xml, application/xml; q=0.9, */*; q=0.8")
[2020-04-03T02:57:19Z INFO  net::http_loader]  - ("accept-language", "en-US, en; q=0.5")
[2020-04-03T02:57:19Z INFO  net::http_loader]  - ("user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Servo/1.0 Firefox/72.0")
[2020-04-03T02:57:19Z INFO  net::http_loader]  - ("accept-encoding", "gzip, deflate, br")
[2020-04-03T02:57:20Z DEBUG net::http_loader] Not notifying devtools (no request_id)
[2020-04-03T02:57:20Z INFO  net::http_loader] HTTP/2.0 response for https://mdn.mozillademos.org/en-US/docs/Web/CSS/border-collapse/A_colorful_table_of_browser_engines?revision=1160464
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("content-type", "text/html; charset=utf-8")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("cache-control", "max-age=0, no-cache, no-store, must-revalidate")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("content-language", "en-US")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("date", "Fri, 03 Apr 2020 02:54:10 GMT")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("expires", "Fri, 03 Apr 2020 02:54:10 GMT")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("server", "meinheld/1.0.1")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("strict-transport-security", "max-age=63072000")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("x-content-type-options", "nosniff")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("x-frame-options", "DENY")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("x-xss-protection", "1; mode=block")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("content-encoding", "gzip")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("vary", "Accept-Encoding,Cookie")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("x-cache", "Error from cloudfront")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("via", "1.1 6ea9c3201cba3107c8908dce0b8278e4.cloudfront.net (CloudFront)")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("x-amz-cf-pop", "NRT20-C4")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("x-amz-cf-id", "HiwlitW91UEEzFO5-7jNmWkFF4o-F2NGMCC7GG8WO0kUTFu9PSCCdg==")
[2020-04-03T02:57:20Z INFO  net::http_loader]  - ("age", "189")
[2020-04-03T02:57:20Z DEBUG net::http_loader] got 404 response for "https://mdn.mozillademos.org/en-US/docs/... (843041cb3b6af48d)"
[2020-04-03T02:57:20Z INFO  net::hsts] adding host mdn.mozillademos.org to the strict transport security list
[2020-04-03T02:57:20Z INFO  net::hsts] - max-age 63072000
[2020-04-03T02:57:20Z DEBUG net::http_loader] successfully finished response for "https://mdn.mozillademos.org/en-US/docs/... (843041cb3b6af48d)"

Request in Firefox:

image

Built with latest master e47e884 on macOS 10.14.6

(also refer to #12696 that @jrmuizel provided the link 👀)

@CYBAI CYBAI added the A-network label Apr 3, 2020
@CYBAI
Copy link
Collaborator Author

@CYBAI CYBAI commented Apr 3, 2020

oh, okay! I've found what happened and this is actually not an issue.

The problem is, @dralley and I ran mach command with the url directly. The url contains dollar sign symbol and then it's interpreted as env var.

So, we can see from the first line of log for Servo above; it's actually /CSS/border-collapse/A_colorful_...

GET request for https://mdn.mozillademos.org/en-US/docs/Web/CSS/border-collapse/A_colorful_table_of_browser_engines?revision=1160464

so, when we run following command, we can visit the page correctly.

$ ./mach run 'https://mdn.mozillademos.org/en-US/docs/Web/CSS/border-collapse$samples/A_colorful_table_of_browser_engines?revision=1160464'

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.