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

Add SupportedPropertyNames to Document (also fix iframe getting) #25548

Merged
merged 2 commits into from Feb 14, 2020

Conversation

@pshaughn
Copy link
Member

pshaughn commented Jan 17, 2020

Existing test of named-getting an iframe now succeeds. I added a new test for Object.getOwnPropertyNames(document) based on my understanding of the spec; that test could use a second opinion.

UPDATE: This was trying to do too many things in one PR as originally submitted. It is now using #25572 as a base, and I suggest reviewing that PR before this one to avoid duplicating review effort.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #7273 for all implemented named getters, fix #25146, and fix the iframe case only of #25145.
  • There are tests for these changes
@highfive
Copy link

highfive commented Jan 17, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/document.rs, components/script/dom/shadowroot.rs, components/script/dom/element.rs, components/script/dom/raredata.rs, components/script/dom/documentorshadowroot.rs
  • @KiChjang: components/script/dom/document.rs, components/script/dom/shadowroot.rs, components/script/dom/element.rs, components/script/dom/raredata.rs, components/script/dom/documentorshadowroot.rs
@highfive
Copy link

highfive commented Jan 17, 2020

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
@servo-wpt-sync
Copy link
Collaborator

servo-wpt-sync commented Jan 17, 2020

Opened new PR for upstreamable changes.

Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#21247.

bors-servo added a commit that referenced this pull request Jan 21, 2020
Attempt at window named getter, sharing name_map infrastructure with document named getter

I think I have the window named getter working well enough to look at CI results. This has #25548 as a base but also pulls in most of #21869.
bors-servo added a commit that referenced this pull request Jan 21, 2020
Attempt at window named getter, sharing name_map infrastructure with document named getter

I think I have the window named getter working well enough to look at CI results. This has #25548 as a base but also pulls in most of #21869.
bors-servo added a commit that referenced this pull request Jan 21, 2020
Attempt at window named getter, sharing name_map infrastructure with document named getter

I think I have the window named getter working well enough to look at CI results. This has #25548 as a base but also pulls in most of #21869.
@pshaughn
Copy link
Member Author

pshaughn commented Jan 21, 2020

This is broken right now and needs #25570 fixed as a foundation so element names don't sneak out of the atom cache.

@pshaughn pshaughn force-pushed the pshaughn:docnamedgetter branch from e20b9bc to 7a2456a Jan 22, 2020
@servo-wpt-sync
Copy link
Collaborator

servo-wpt-sync commented Jan 22, 2020

Transplanted upstreamable changes to existing PR.

Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#21247.

@pshaughn
Copy link
Member Author

pshaughn commented Jan 22, 2020

Now using #25572 as a base, which should prevent crashes. I also took into account review comments by @Manishearth from #25562 (which I plan on updating to use this as a base, if this seems solid enough.)
@bors-servo try

@bors-servo
Copy link
Contributor

bors-servo commented Jan 22, 2020

Trying commit 7a2456a with merge 2cbc26e...

bors-servo added a commit that referenced this pull request Jan 22, 2020
Add SupportedPropertyNames to Document (also fix iframe getting)

Existing test of named-getting an iframe now succeeds. I added a new test for Object.getOwnPropertyNames(document) based on my understanding of the spec; that test could use a second opinion.

UPDATE: This was trying to do too many things in one PR as originally submitted. It is now using #25572 as a base, and I suggest reviewing that PR before this one to avoid duplicating review effort.

---
<!-- 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 #7273 for all implemented named getters, fix #25146, and fix the iframe case only of #25145.

<!-- 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. -->
@pshaughn
Copy link
Member Author

pshaughn commented Jan 22, 2020

(forgot to account for comment #25562 (comment), so as of this push the new supported property names test is still broken out into a bunch of really small cases)

@bors-servo
Copy link
Contributor

bors-servo commented Jan 22, 2020

☀️ Test successful - status-taskcluster
State: approved= try=True

@jdm
jdm approved these changes Feb 12, 2020
Copy link
Member

jdm left a comment

Great work! I found this to be quite readable, which is better than the attempt that I made at it originally!

@jdm
Copy link
Member

jdm commented Feb 12, 2020

This can merge after a rebase and #25572 is merged.

@pshaughn pshaughn force-pushed the pshaughn:docnamedgetter branch from 7a2456a to e48eac6 Feb 13, 2020
@servo-wpt-sync
Copy link
Collaborator

servo-wpt-sync commented Feb 13, 2020

Transplanted upstreamable changes to existing PR.

Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#21247.

@jdm
Copy link
Member

jdm commented Feb 13, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Feb 13, 2020

📌 Commit e48eac6 has been approved by jdm

bors-servo added a commit that referenced this pull request Feb 13, 2020
Attempt at window named getter, sharing name_map infrastructure with document named getter

I think I have the window named getter working well enough to look at CI results. This has #25548 as a base but also pulls in most of #21869.
bors-servo added a commit that referenced this pull request Feb 13, 2020
Attempt at window named getter, sharing name_map infrastructure with document named getter

I think I have the window named getter working well enough to look at CI results. This has #25548 as a base but also pulls in most of #21869.
bors-servo added a commit that referenced this pull request Feb 13, 2020
Add SupportedPropertyNames to Document (also fix iframe getting)

Existing test of named-getting an iframe now succeeds. I added a new test for Object.getOwnPropertyNames(document) based on my understanding of the spec; that test could use a second opinion.

UPDATE: This was trying to do too many things in one PR as originally submitted. It is now using #25572 as a base, and I suggest reviewing that PR before this one to avoid duplicating review effort.

---
<!-- 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 #7273 for all implemented named getters, fix #25146, and fix the iframe case only of #25145.

<!-- 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 13, 2020

Testing commit e48eac6 with merge f59f110...

@bors-servo
Copy link
Contributor

bors-servo commented Feb 13, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Feb 13, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Feb 14, 2020

Testing commit e48eac6 with merge f020536...

bors-servo added a commit that referenced this pull request Feb 14, 2020
Add SupportedPropertyNames to Document (also fix iframe getting)

Existing test of named-getting an iframe now succeeds. I added a new test for Object.getOwnPropertyNames(document) based on my understanding of the spec; that test could use a second opinion.

UPDATE: This was trying to do too many things in one PR as originally submitted. It is now using #25572 as a base, and I suggest reviewing that PR before this one to avoid duplicating review effort.

---
<!-- 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 #7273 for all implemented named getters, fix #25146, and fix the iframe case only of #25145.

<!-- 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 14, 2020

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

@bors-servo bors-servo merged commit e48eac6 into servo:master Feb 14, 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.