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

Fix modes for fetching classic worker script and introduce parser metadata for request #23351

Merged
merged 2 commits into from May 16, 2019

Conversation

@CYBAI
Copy link
Collaborator

CYBAI commented May 9, 2019

While reading the spec for fetch a classic worker script, I found the mode and credential-mode are opposite to the spec. So, the first commit will fix it.

Also, I found there's a parser metadata for request so I tried to introduce it in this PR as well.

For WPT, I found there's a /workers/constructors/Worker/same-origin.html which was disabled in #3180. We pass most of the tests now.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #___ (GitHub issue number if applicable)
  • There are tests for these changes

This change is Reviewable

@highfive
Copy link

highfive commented May 9, 2019

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/workerglobalscope.rs, components/script/dom/dedicatedworkerglobalscope.rs, components/script/fetch.rs, components/script/dom/serviceworkerglobalscope.rs
  • @KiChjang: components/script/dom/workerglobalscope.rs, components/script/dom/dedicatedworkerglobalscope.rs, components/script/fetch.rs, components/net_traits/request.rs, components/script/dom/serviceworkerglobalscope.rs
@CYBAI
Copy link
Collaborator Author

CYBAI commented May 9, 2019

@bors-servo try=wpt

bors-servo added a commit that referenced this pull request May 9, 2019
Fix modes for fetching classic worker script and introduce parser metadata for request

While reading [the spec](https://html.spec.whatwg.org/multipage/#fetch-a-classic-worker-script) for `fetch a classic worker script`, I found the `mode` and `credential-mode` are opposite to the spec. So, the first commit will fix it.

Also, I found there's a `parser metadata` for `request` so I tried to introduce it in this PR as well.

For WPT, I found there's a `/workers/constructors/Worker/same-origin.html` which was disabled in  #3180. We pass most of the tests now.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)
- [x] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23351)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 9, 2019

Trying commit 19b658a with merge 0c01188...

@bors-servo
Copy link
Contributor

bors-servo commented May 9, 2019

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
State: approved= try=True

@CYBAI CYBAI force-pushed the CYBAI:fix-modes branch from 19b658a to 261c8d9 May 11, 2019
@CYBAI
Copy link
Collaborator Author

CYBAI commented May 14, 2019

@nox ping for review 🙇

@nox
Copy link
Member

nox commented May 15, 2019

@bors-servo
Copy link
Contributor

bors-servo commented May 15, 2019

📌 Commit 261c8d9 has been approved by nox

@jdm
Copy link
Member

jdm commented May 15, 2019

@bors-servo treeclosed-

@bors-servo
Copy link
Contributor

bors-servo commented May 15, 2019

Testing commit 261c8d9 with merge 915237c...

bors-servo added a commit that referenced this pull request May 15, 2019
Fix modes for fetching classic worker script and introduce parser metadata for request

While reading [the spec](https://html.spec.whatwg.org/multipage/#fetch-a-classic-worker-script) for `fetch a classic worker script`, I found the `mode` and `credential-mode` are opposite to the spec. So, the first commit will fix it.

Also, I found there's a `parser metadata` for `request` so I tried to introduce it in this PR as well.

For WPT, I found there's a `/workers/constructors/Worker/same-origin.html` which was disabled in  #3180. We pass most of the tests now.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)
- [x] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23351)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 16, 2019

💔 Test failed - linux-rel-css

@jdm
Copy link
Member

jdm commented May 16, 2019

@bors-servo retry

  • deploying to the build machines in the middle of the run caused problems
@bors-servo
Copy link
Contributor

bors-servo commented May 16, 2019

Testing commit 261c8d9 with merge 633d0ca...

bors-servo added a commit that referenced this pull request May 16, 2019
Fix modes for fetching classic worker script and introduce parser metadata for request

While reading [the spec](https://html.spec.whatwg.org/multipage/#fetch-a-classic-worker-script) for `fetch a classic worker script`, I found the `mode` and `credential-mode` are opposite to the spec. So, the first commit will fix it.

Also, I found there's a `parser metadata` for `request` so I tried to introduce it in this PR as well.

For WPT, I found there's a `/workers/constructors/Worker/same-origin.html` which was disabled in  #3180. We pass most of the tests now.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)
- [x] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23351)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 16, 2019

💔 Test failed - linux-rel-wpt

@jdm
Copy link
Member

jdm commented May 16, 2019

bors-servo added a commit that referenced this pull request May 16, 2019
Fix modes for fetching classic worker script and introduce parser metadata for request

While reading [the spec](https://html.spec.whatwg.org/multipage/#fetch-a-classic-worker-script) for `fetch a classic worker script`, I found the `mode` and `credential-mode` are opposite to the spec. So, the first commit will fix it.

Also, I found there's a `parser metadata` for `request` so I tried to introduce it in this PR as well.

For WPT, I found there's a `/workers/constructors/Worker/same-origin.html` which was disabled in  #3180. We pass most of the tests now.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)
- [x] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23351)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 16, 2019

Testing commit 261c8d9 with merge 4256869...

@bors-servo
Copy link
Contributor

bors-servo commented May 16, 2019

@bors-servo bors-servo merged commit 261c8d9 into servo:master May 16, 2019
4 checks passed
4 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@CYBAI CYBAI deleted the CYBAI:fix-modes branch May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.