Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up(Do not merge) Use the same script thread if new location is same origin #12666
Conversation
highfive
commented
Jul 31, 2016
|
Heads up! This PR modifies the following files:
|
|
@bors-servo try |
(Do not merge) Use the same script thread if new location is same origin Fixes #5239. <!-- 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/12666) <!-- Reviewable:end -->
|
|
|
A couple comments:
To elaborate on the third point, consider what happens if the user clicks a same-origin link in a top-level browsing context. Currently script threads have a notion of a single root browsing context that gets used in lots of places ( |
|
One thing we should bear in mind is that at some point we'll support |
|
What we've talked about in the past is always sharing script threads between any origins that could become same-origin through the use of |
|
-S-awaiting-review +S-awaiting-answer Reviewed 1 of 1 files at r1. components/constellation/constellation.rs, line 1414 [r1] (raw file):
Why can't you use Comments from Reviewable |
|
@nox Because it's the wrong function, we should be comparing with the origin of the document, not the document URL's origin. |
|
@KiChjang There is a commenting issue then. That code doesn't use
But then
|
|
@Ms2ger wrote the comment. What do you think is a better wording? |
|
@bors-servo try |
|
@nox There's a try run up there. I haven't touched this PR for a while. |
|
@KiChjang The logs disappeared. |
|
@bors-servo try- clean retry |
|
@bors-servo try- clean try |
|
Ugh, I'll post a new commit soon. |
4efad0f
to
31607cc
|
@bors-servo try |
(Do not merge) Use the same script thread if new location is same origin Fixes #5239. <!-- 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/12666) <!-- Reviewable:end -->
|
|
Ignore the CSS error, it's a known intermittent. |
31607cc
to
d996d47
|
My thoughts on this would be to make the |
|
A conversation on IRC: http://logs.glob.uno/?c=mozilla%23servo&s=7+Sep+2016&e=7+Sep+2016#c518850 tl;dr: the test should be if the new child is same-origin with it's parent, not same-origin with the old child. |
|
I'm confused. What does child and parent mean in this context? |
|
|
|
See #633. We should share a script thread between any two pipelines with a) the same tab, and b) the same eTLD+1. Here, "same tab" means "same top-level ancestor", i.e. "same mozbrowser-or-root ancestor". |
d996d47
to
5ee05cb
|
This is most probably blocked by #5322. |
KiChjang commentedJul 31, 2016
•
edited by larsbergstrom
Fixes #5239.
This change is