Skip to content

Splitting ScriptMsg into various enums... - #7006

Merged
bors-servo merged 1 commit into
masterfrom
unknown repository
Aug 15, 2015
Merged

bors-servo merged 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Aug 5, 2015

Copy link
Copy Markdown

... for #3734, which is also one of the oldest issues. (/cc @jdm)

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 5, 2015
@highfive

highfive commented Aug 5, 2015

Copy link
Copy Markdown

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @Ms2ger (or someone else) soon.

@ghost ghost changed the title Splitting ScriptMsg into various enums for #3734 Splitting ScriptMsg into various enums... Aug 5, 2015
@Ms2ger

Ms2ger commented Aug 6, 2015

Copy link
Copy Markdown
Contributor

Could you add a commit on top of this that puts a Receiver<WorkerScriptMsg> in DedicatedWorkerGlobalScope? That should help evaluate whether this is an improvement.

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #7001) made this pull request unmergeable. Please resolve the merge conflicts.

@jdm

jdm commented Aug 6, 2015

Copy link
Copy Markdown
Member

Note; the WorkerScriptMsg/MainThreadScriptMsg enums will have to contain Common, rather than having them all part of the same enum.

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 7, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Aug 13, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #7097) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 13, 2015
@ghost

ghost commented Aug 13, 2015

Copy link
Copy Markdown
Author

Oh yeah, great... (sigh) -_-

@ghost

ghost commented Aug 13, 2015

Copy link
Copy Markdown
Author

(resolved conflicts) @jdm r?

@jdm

jdm commented Aug 14, 2015

Copy link
Copy Markdown
Member

This is a great improvement! We might even be able to fix the problems with ScriptPort by playing around a bit more as I've suggested.
-S-awaiting-review +S-needs-code-changes


Reviewed 18 of 18 files at r1.
Review status: all files reviewed at latest revision, 8 unresolved discussions, all commit checks successful.


components/script/dom/bindings/global.rs, line 161 [r1] (raw file):
I would prefer if callers would call as_window instead of adding this new method.


components/script/dom/dedicatedworkerglobalscope.rs, line 52 [r1] (raw file):
The comment about "only dispatched to" isn't necessary any more :)


components/script/dom/dedicatedworkerglobalscope.rs, line 61 [r1] (raw file):
I actually suspect that this could be CommonScriptMsg, given the way this struct is used. That would fix the problem with ScriptPort, too.


components/script/dom/storage.rs, line 150 [r1] (raw file):
Use as_window instead.


components/script/dom/window.rs, line 238 [r1] (raw file):
Let's make this return &Sender instead of cloning each time.


components/script/dom/worker.rs, line 54 [r1] (raw file):
nit: indent this to match global.


components/script/dom/worker.rs, line 63 [r1] (raw file):
nit: indent this to match global.


components/script/script_task.rs, line 253 [r1] (raw file):
Out of curiosity, what if we make this Sender<CommonScriptMsg>, and store Sender<MainThreadScriptMsg> values in places that currently store NonWorkerScriptChan values (like Window and ScriptTask).


Comments from the review on Reviewable.io

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 14, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Aug 14, 2015
@ghost

ghost commented Aug 14, 2015

Copy link
Copy Markdown
Author

@jdm r?

@jdm

jdm commented Aug 14, 2015

Copy link
Copy Markdown
Member

@bors-servo: r+


Reviewed 6 of 6 files at r2.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 8915311 has been approved by jdm

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8915311 with merge 3659cca...

@highfive highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Aug 14, 2015
bors-servo pushed a commit that referenced this pull request Aug 14, 2015
Splitting ScriptMsg into various enums...

... for #3734, which is also one of the oldest issues. (/cc @jdm)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7006)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-needs-rebase There are merge conflict errors. labels Aug 14, 2015
@SimonSapin SimonSapin closed this Aug 15, 2015
@SimonSapin SimonSapin reopened this Aug 15, 2015
@nox nox assigned jdm Aug 15, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8915311 with merge 6a52ec9...

bors-servo pushed a commit that referenced this pull request Aug 15, 2015
Splitting ScriptMsg into various enums...

... for #3734, which is also one of the oldest issues. (/cc @jdm)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7006)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, mac1, mac2, mac3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants