-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Support type=module script element #23545
Conversation
@bors-servo try=wpt
|
[WIP] Support type=module script element This is still WIP but hope can be reviewed first to see if I'm on the right track. Thanks! πββοΈ - [x] Support external module script - [ ] Support internal module script - [ ] Compile cyclic modules --- - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #23370 (GitHub issue number if applicable) - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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/23545) <!-- Reviewable:end -->
π Test failed - linux-rel-wpt |
e027b98
to
5d7de70
Compare
@bors-servo try=wpt
|
[WIP] Support type=module script element This is still WIP but hope can be reviewed first to see if I'm on the right track. Thanks! πββοΈ - [x] Support external module script - [ ] Support internal module script - [ ] Compile cyclic modules --- - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #23370 (GitHub issue number if applicable) - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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/23545) <!-- Reviewable:end -->
π Test failed - linux-rel-wpt |
text: DOMString, | ||
url: ServoUrl, | ||
external: bool, | ||
type_: ScriptType, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type_: ScriptType, | |
r#type: ScriptType, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively,
type_: ScriptType, | |
script_type: ScriptType, |
whichever makes the most sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also name it ScriptKind
instead of ScriptType
.
5d7de70
to
7371b4f
Compare
@bors-servo try=wpt |
[WIP] Support type=module script element This is still WIP but hope can be reviewed first to see if I'm on the right track. Thanks! πββοΈ - [x] Support external module script - [ ] Support internal module script - [ ] Compile cyclic modules --- - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #23370 (GitHub issue number if applicable) - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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/23545) <!-- Reviewable:end -->
π Test failed - linux-rel-css |
You will want to modify https://github.com/servo/servo/blob/master/tests/wpt/include.ini#L94. |
Thanks! Didn't notice that π |
@bors-servo try=wpt
|
[WIP] Support type=module script element This is still WIP but hope can be reviewed first to see if I'm on the right track. Thanks! πββοΈ - [x] Support external module script - [ ] Support internal module script - [ ] Compile cyclic modules --- - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #23370 (GitHub issue number if applicable) - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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/23545) <!-- Reviewable:end -->
π Test failed - linux-rel-css |
@bors-servo retry try |
Support type=module script element This is still WIP but hope can be reviewed first to see if I'm on the right track. Thanks! πββοΈ - [x] Support external module script - [x] Support internal module script - [x] Compile cyclic modules --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23370 (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/23545) <!-- Reviewable:end -->
To keep them in one place, the latest failure is:
A bunch of timeouts:
Two color failures:
|
IIRC, a bunch of timeouts might be #24762 π? |
Possibly. The color failures concern me more, we should see if other PRs
are having issues as well.
Worth double checking this PR to see if any other changes snuck in.
β¦On Mon, Jan 6, 2020, 8:30 PM cybai ***@***.***> wrote:
IIRC, a bunch of timeouts might be #24762
<#24762> π?
β
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#23545?email_source=notifications&email_token=AAMK6SDMBO6ZE2EFAS645P3Q4NBRDA5CNFSM4HWUJB72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIFV4SI#issuecomment-571170377>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMK6SFSFHTBQEGRBKQ6NATQ4NBRDANCNFSM4HWUJB7Q>
.
|
βοΈ Test successful - status-taskcluster |
wow, rude, @bors-servo |
@bors-servo r=jdm,manishearth try- retry |
π Commit 508bfbd has been approved by |
Support type=module script element This is still WIP but hope can be reviewed first to see if I'm on the right track. Thanks! πββοΈ - [x] Support external module script - [x] Support internal module script - [x] Compile cyclic modules --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23370 (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/23545) <!-- Reviewable:end -->
Color failures are #24726 |
βοΈ Test successful - status-taskcluster |
I misunderstood the test case when I worked on servo#23545. That test case is actually not related to dynamic import; instead, the reason why it crashes is, `currentScript` should be updated to `null`.
Set `currentScript` to `null` for module scripts I misunderstood the test case when I worked on #23545. That test case is actually not related to dynamic import; instead, the reason why it crashes is, `currentScript` should be updated to `null`. In spec, the step 6 of [execute-the-script-block](https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block) only says `Assert: document's currentScript attribute is null.` but doesn't says it should be set to null. Not sure if it can be improved. --- - [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 <!-- 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. -->
I misunderstood the test case when I worked on servo#23545. That test case is actually not related to dynamic import; instead, the reason why it crashes is, `currentScript` should be updated to `null`.
This is still WIP but hope can be reviewed first to see if I'm on the right track. Thanks! πββοΈ
./mach build -d
does not report any errors./mach test-tidy
does not report any errorsThis change isβ