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

Do not filter out platform objects when doing dictionary conversions in overload resolution #26154

Merged
merged 2 commits into from Apr 9, 2020

Conversation

@Manishearth
Copy link
Member

Manishearth commented Apr 9, 2020

https://heycam.github.io/webidl/#es-overloads

In step 12, the platform object check is for substep 4, but importantly it only matters if V implements the matching interface. If not, it should be able to fall back to substep 10 and attempt conversion to a dictionary.

https://heycam.github.io/webidl/#es-overloads

In step 12, the platform object check is for substep 4, but importantly it only matters if `V` implements the matching interface. If not, it should be able to fall back to substep 10 and attempt conversion to a dictionary.
@highfive
Copy link

highfive commented Apr 9, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/bindings/codegen/CodegenRust.py
  • @KiChjang: components/script/dom/bindings/codegen/CodegenRust.py
@highfive
Copy link

highfive commented Apr 9, 2020

warning Warning warning

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

Manishearth commented Apr 9, 2020

r? @jdm

@bors-servo try

The specific thing triggering it was the following WebIDL and code:

interface XRRay {
  constructor(optional DOMPointInit origin = {}, optional DOMPointInit direction = {});
  constructor(XRRigidTransform transform)
}
new XRRay(new DOMPoint({x: 1, y: 0, z: 0}))

I can wait for XRRay to land to add a test for this, or I can add stuff to TestBinding. Thoughts?

@highfive highfive assigned jdm and unassigned SimonSapin Apr 9, 2020
bors-servo added a commit that referenced this pull request Apr 9, 2020
Do not filter out platform objects when doing dictionary conversions

https://heycam.github.io/webidl/#es-overloads

In step 12, the platform object check is for substep 4, but importantly it only matters if `V` implements the matching interface. If not, it should be able to fall back to substep 10 and attempt conversion to a dictionary.
@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

Trying commit c24481a with merge af80543...

@Manishearth Manishearth changed the title Do not filter out platform objects when doing dictionary conversions Do not filter out platform objects when doing dictionary conversions in overload resolution Apr 9, 2020
@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

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

@jdm
Copy link
Member

jdm commented Apr 9, 2020

Testbinding would be my preference.

@Manishearth
Copy link
Member Author

Manishearth commented Apr 9, 2020

Added a test

@jdm
Copy link
Member

jdm commented Apr 9, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

📌 Commit a9c4f15 has been approved by jdm

@jdm
Copy link
Member

jdm commented Apr 9, 2020

@bors-servo r-
Needs a ./mach fmt.

@Manishearth
Copy link
Member Author

Manishearth commented Apr 9, 2020

@bors-servo r=jdm

@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

📌 Commit a9c4f15 has been approved by jdm

@Manishearth Manishearth force-pushed the Manishearth:platform-object-overload branch from a9c4f15 to ee0ca1a Apr 9, 2020
@jdm
Copy link
Member

jdm commented Apr 9, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

📌 Commit ee0ca1a has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

Testing commit ee0ca1a with merge f0fa275...

bors-servo added a commit that referenced this pull request Apr 9, 2020
Do not filter out platform objects when doing dictionary conversions in overload resolution

https://heycam.github.io/webidl/#es-overloads

In step 12, the platform object check is for substep 4, but importantly it only matters if `V` implements the matching interface. If not, it should be able to fall back to substep 10 and attempt conversion to a dictionary.
@Manishearth Manishearth force-pushed the Manishearth:platform-object-overload branch from ee0ca1a to 58bab8a Apr 9, 2020
@Manishearth
Copy link
Member Author

Manishearth commented Apr 9, 2020

@bors-servo r=jdm

@highfive highfive removed the S-tests-failed label Apr 9, 2020
@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

📌 Commit 58bab8a has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

Testing commit 58bab8a with merge 1ea5edb...

bors-servo added a commit that referenced this pull request Apr 9, 2020
Do not filter out platform objects when doing dictionary conversions in overload resolution

https://heycam.github.io/webidl/#es-overloads

In step 12, the platform object check is for substep 4, but importantly it only matters if `V` implements the matching interface. If not, it should be able to fall back to substep 10 and attempt conversion to a dictionary.
@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

💔 Test failed - status-taskcluster

@Manishearth
Copy link
Member Author

Manishearth commented Apr 9, 2020

@bors-servo retry

  • webdriver connection failures
@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

Testing commit 58bab8a with merge 9f895ac...

bors-servo added a commit that referenced this pull request Apr 9, 2020
Do not filter out platform objects when doing dictionary conversions in overload resolution

https://heycam.github.io/webidl/#es-overloads

In step 12, the platform object check is for substep 4, but importantly it only matters if `V` implements the matching interface. If not, it should be able to fall back to substep 10 and attempt conversion to a dictionary.
@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Apr 9, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

Testing commit 58bab8a with merge 455a99c...

@bors-servo
Copy link
Contributor

bors-servo commented Apr 9, 2020

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

@bors-servo bors-servo merged commit 455a99c into servo:master Apr 9, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
@Manishearth Manishearth deleted the Manishearth:platform-object-overload branch Apr 10, 2020
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

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