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

Give error and resize special getter/setters for body/frameset reflection #25644

Merged
merged 1 commit into from Feb 12, 2020

Conversation

@pshaughn
Copy link
Member

pshaughn commented Jan 30, 2020

Most of the event handlers that needed to be reflected between body and window were doing so via special getter/setters in htmlelement.rs, but error and resize were missing; they are now included, passing the tests for whether these are reflected.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #25186 for the case that isn't a bad test or an unimplemented event type, and fix #25187
  • There are tests for these changes
@highfive
Copy link

highfive commented Jan 30, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/htmlelement.rs, components/script/dom/macros.rs
  • @KiChjang: components/script/dom/htmlelement.rs, components/script/dom/macros.rs
@jdm
Copy link
Member

jdm commented Jan 30, 2020

Good find!
@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Jan 30, 2020

📌 Commit 65cc434 has been approved by jdm

@highfive highfive assigned jdm and unassigned asajeffrey Jan 30, 2020
@bors-servo
Copy link
Contributor

bors-servo commented Jan 30, 2020

Testing commit 65cc434 with merge 91734cd...

bors-servo added a commit that referenced this pull request Jan 30, 2020
Give error and resize special getter/setters for body/frameset reflection

<!-- Please describe your changes on the following line: -->
Most of the event handlers that needed to be reflected between body and window were doing so via special getter/setters in htmlelement.rs, but error and resize were missing; they are now included, passing the tests for whether these are reflected.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix the part of #25186 that's actually about reflection

<!-- Either: -->
- [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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jan 30, 2020

💔 Test failed - status-taskcluster

@CYBAI
Copy link
Collaborator

CYBAI commented Jan 30, 2020

  ▶ Unexpected subtest result in /html/webappapis/scripting/events/event-handler-attributes-windowless-body.html:
  └ PASS [expected FAIL] Ignore setting of error window event handlers on windowless body
  ▶ Unexpected subtest result in /html/webappapis/scripting/events/event-handler-attributes-windowless-body.html:
  └ PASS [expected FAIL] Ignore setting of error window event handlers on windowless frameset
@pshaughn pshaughn force-pushed the pshaughn:windowreflecting branch from 65cc434 to f043a3e Jan 30, 2020
@jdm
Copy link
Member

jdm commented Feb 12, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Feb 12, 2020

📌 Commit f043a3e has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Feb 12, 2020

Testing commit f043a3e with merge 29d31fb...

bors-servo added a commit that referenced this pull request Feb 12, 2020
Give error and resize special getter/setters for body/frameset reflection

<!-- Please describe your changes on the following line: -->
Most of the event handlers that needed to be reflected between body and window were doing so via special getter/setters in htmlelement.rs, but error and resize were missing; they are now included, passing the tests for whether these are reflected.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25186 for the case that isn't a bad test or an unimplemented event type, and fix #25187

<!-- Either: -->
- [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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Feb 12, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Feb 12, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Feb 12, 2020

Testing commit f043a3e with merge df9176b...

bors-servo added a commit that referenced this pull request Feb 12, 2020
Give error and resize special getter/setters for body/frameset reflection

<!-- Please describe your changes on the following line: -->
Most of the event handlers that needed to be reflected between body and window were doing so via special getter/setters in htmlelement.rs, but error and resize were missing; they are now included, passing the tests for whether these are reflected.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25186 for the case that isn't a bad test or an unimplemented event type, and fix #25187

<!-- Either: -->
- [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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Feb 12, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Feb 12, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Feb 12, 2020

Testing commit f043a3e with merge 004f0cf...

bors-servo added a commit that referenced this pull request Feb 12, 2020
Give error and resize special getter/setters for body/frameset reflection

<!-- Please describe your changes on the following line: -->
Most of the event handlers that needed to be reflected between body and window were doing so via special getter/setters in htmlelement.rs, but error and resize were missing; they are now included, passing the tests for whether these are reflected.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25186 for the case that isn't a bad test or an unimplemented event type, and fix #25187

<!-- Either: -->
- [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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Feb 12, 2020

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing 004f0cf to master...

@bors-servo bors-servo merged commit f043a3e into servo:master Feb 12, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.