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

Use remote-event task source in EventSource #21170

Merged

Conversation

@gterzian
Copy link
Member

gterzian commented Jul 13, 2018

Follow up on #21126, this again 'changes nothing', but will be useful for #21114 in the context of #21111.

Trying to break up work into smaller PR's ;)


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #21112 (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@highfive
Copy link

highfive commented Jul 13, 2018

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/task_source/remote_event.rs, components/script/dom/globalscope.rs, components/script/dom/workerglobalscope.rs, components/script/script_thread.rs, components/script/dom/eventsource.rs and 2 more
  • @KiChjang: components/script/task_source/remote_event.rs, components/script/dom/globalscope.rs, components/script/dom/workerglobalscope.rs, components/script/script_thread.rs, components/script/dom/eventsource.rs and 2 more
@highfive
Copy link

highfive commented Jul 13, 2018

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@gterzian gterzian changed the title use remote-event task source in EventSource Use remote-event task source in EventSource Jul 13, 2018
@gterzian gterzian force-pushed the gterzian:use_remote_event_task_source_for_eventsource branch from 0ff2251 to dbf1ae1 Jul 13, 2018
@@ -482,8 +483,6 @@ impl EventSource {
data: String::new(),
last_event_id: String::new(),
};
// TODO: use the "remote event task source", and canceller.
// https://html.spec.whatwg.org/multipage/#remote-event-task-source

This comment has been minimized.

Copy link
@gterzian

gterzian Jul 13, 2018

Author Member

This comment is a mistake I introduced in #21126, the networking source is the right one here, since it's a plain fetch and not an event-source 'task', see https://html.spec.whatwg.org/multipage/server-sent-events.html#dom-eventsource

@jdm
Copy link
Member

jdm commented Jul 13, 2018

@bors-servo r+
Thanks!

@bors-servo
Copy link
Contributor

bors-servo commented Jul 13, 2018

📌 Commit dbf1ae1 has been approved by jdm

@highfive highfive assigned jdm and unassigned emilio Jul 13, 2018
@bors-servo
Copy link
Contributor

bors-servo commented Jul 13, 2018

Testing commit dbf1ae1 with merge fb6eea3...

bors-servo added a commit that referenced this pull request Jul 13, 2018
…tsource, r=jdm

Use remote-event task source in EventSource

<!-- Please describe your changes on the following line: -->
Follow up on #21126, this again 'changes nothing', but will be useful for #21111 in the context of #21114

Trying to break up work into smaller PR's ;)

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #21112 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/21170)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 13, 2018

💔 Test failed - linux-dev

@gterzian gterzian force-pushed the gterzian:use_remote_event_task_source_for_eventsource branch from dbf1ae1 to baef63b Jul 13, 2018
@gterzian
Copy link
Member Author

gterzian commented Jul 13, 2018

Sorry for the tidy error...

@jdm
Copy link
Member

jdm commented Jul 13, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jul 13, 2018

📌 Commit baef63b has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jul 13, 2018

Testing commit baef63b with merge 9304578...

bors-servo added a commit that referenced this pull request Jul 13, 2018
…tsource, r=jdm

Use remote-event task source in EventSource

<!-- Please describe your changes on the following line: -->
Follow up on #21126, this again 'changes nothing', but will be useful for #21114 in the context of #21111.

Trying to break up work into smaller PR's ;)

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #21112 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/21170)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 13, 2018

💔 Test failed - mac-rel-css2

@jdm
Copy link
Member

jdm commented Jul 13, 2018

@bors-servo retry

  • mac hardware issue
@bors-servo
Copy link
Contributor

bors-servo commented Jul 13, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jul 14, 2018

Testing commit baef63b with merge 8eb2a53...

bors-servo added a commit that referenced this pull request Jul 14, 2018
…tsource, r=jdm

Use remote-event task source in EventSource

<!-- Please describe your changes on the following line: -->
Follow up on #21126, this again 'changes nothing', but will be useful for #21114 in the context of #21111.

Trying to break up work into smaller PR's ;)

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #21112 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/21170)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 14, 2018

@bors-servo bors-servo merged commit baef63b into servo:master Jul 14, 2018
3 of 4 checks passed
3 of 4 checks passed
Taskcluster (pull_request) TaskGroup: failure
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@gterzian gterzian deleted the gterzian:use_remote_event_task_source_for_eventsource branch Jul 14, 2018
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.

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