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

[WIP] Implement the end, script execution, and everything. #9335

Closed
wants to merge 1 commit into from

Conversation

@Ms2ger
Copy link
Contributor

Ms2ger commented Jan 15, 2016

@jdm: I started to review #6677, and ended up here somehow. Thoughts?

Review on Reviewable

@highfive
Copy link

highfive commented Jan 15, 2016

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@KiChjang
Copy link
Member

KiChjang commented Jan 15, 2016

😍 😍 😍

@jdm jdm self-assigned this Jan 15, 2016
@Ms2ger Ms2ger force-pushed the Ms2ger:the-end branch 2 times, most recently from 5590002 to 4d68dfc Jan 16, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Jan 16, 2016

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

@Ms2ger Ms2ger force-pushed the Ms2ger:the-end branch 3 times, most recently from e2f0f96 to e1e6d41 Jan 18, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Feb 10, 2016

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

@frewsxcv
Copy link
Member

frewsxcv commented Feb 27, 2016

@Ms2ger What's the status of this pull request?

@Ms2ger
Copy link
Contributor Author

Ms2ger commented Feb 27, 2016

Needs more work, but I don't have time to finish it right now.

@nox
Copy link
Member

nox commented Feb 27, 2016

Can we close it for now, for triaging?

@Ms2ger
Copy link
Contributor Author

Ms2ger commented Feb 27, 2016

I guess.

@Ms2ger Ms2ger closed this Feb 27, 2016
@jdm
Copy link
Member

jdm commented Feb 27, 2016

I started looking through it the other day. Closing it just because the reviewer hasn't reviewed it yet is a misuse of the triage process :)

@jdm jdm reopened this Feb 27, 2016
@Ms2ger Ms2ger force-pushed the Ms2ger:the-end branch from e1e6d41 to 95b9975 Mar 6, 2016
@Ms2ger Ms2ger removed the S-needs-rebase label Mar 6, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Mar 10, 2016

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

@frewsxcv
Copy link
Member

frewsxcv commented Jul 17, 2016

Is there any value in keeping this open?

@jdm
Copy link
Member

jdm commented Jul 17, 2016

Yes. It's perpetually in the list of things I'm responsible for.

@notriddle
Copy link
Contributor

notriddle commented Aug 31, 2016

Status?

@jdm
Copy link
Member

jdm commented Aug 31, 2016

No change since the previous comments.

Copy link
Member

jdm left a comment

Not many comments here. I reviewed this PR focusing on the concepts involved, rather than spending a lot of time thinking about the implications of each line. I really like how this clarifies the fuzziness around loading scripts, and tying that into a readable implementation of "the end" from the spec. I think this is worth rebasing and spending more time to implement completely!

}

// Step 4.
self.dispatch_dom_content_loaded();

This comment has been minimized.

@jdm

jdm Nov 3, 2016

Member

This should queue a task.

self.dispatch_dom_content_loaded();
}

if self.end_state.get() == EndState::FiredDOMContentLoaded {

This comment has been minimized.

@jdm

jdm Nov 3, 2016

Member

According to the spec we should execute this block after queuing the task in the previous step, so maybe we should actually set end_state above rather than in dispatch_dom_content_loaded?

// TODO: Step 13: completely loaded.

let ConstellationChan(ref sender) = window.constellation_chan();
sender.send(ConstellationMsg::LoadComplete(window.pipeline())).unwrap();

This comment has been minimized.

@jdm

jdm Nov 3, 2016

Member

I wonder if this should be triggered as a result of running DocumentProgressHandler instead? Seems like it would be easy to cause races here.

let document = document_from_node(elem.r());
document.continue_the_end();

document.finish_load(LoadType::Script(self.url.clone()));

This comment has been minimized.

@jdm

jdm Nov 3, 2016

Member

Should we invoke finish_load before continue_the_end? The script counts as something blocking the document load event, so it has an effect on what that method does.

@nox
Copy link
Member

nox commented Nov 27, 2016

I think I can look at this once #14361 lands.

@nox
Copy link
Member

nox commented Jan 21, 2017

I don't see anything to salvage from this PR anymore. Closing.

@nox nox closed this Jan 21, 2017
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

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