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

Automatically enable WebGL 2 for specific domains. #26191

Merged
merged 1 commit into from Apr 16, 2020

Conversation

@jdm
Copy link
Member

jdm commented Apr 15, 2020

Our WebGL 2 implementation has progressed to the point where some but not all content works well. One particular example of non-working content is Babylon.js; if the WebGL2RenderingContext interface is present, it automatically tries to use it and causes panics in Servo. However, there are demos like http://www.servoexperiments.com/webxr-particles/ that work fine today and would be great to feature on our HoloLens homepage.

This change adds what is effectively an origin trial, where we can identify content that works well, ensure it's running in a list of blessed hosts, and reap the benefits.

@highfive
Copy link

highfive commented Apr 15, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/htmlcanvaselement.rs, components/script/dom/webgl2renderingcontext.rs, components/script/dom/webidls/WebGL2RenderingContext.webidl
  • @KiChjang: components/script/dom/htmlcanvaselement.rs, components/script/dom/webgl2renderingcontext.rs, components/script/dom/webidls/WebGL2RenderingContext.webidl
@highfive
Copy link

highfive commented Apr 15, 2020

warning Warning warning

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

Manishearth commented Apr 15, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Apr 15, 2020

📌 Commit 15aca7a has been approved by Manishearth

@jdm
Copy link
Member Author

jdm commented Apr 15, 2020

@bors-servo r-
Format is unahppy for some reason.

@jdm jdm force-pushed the jdm:webgl2-origin-trial branch from 15aca7a to e2845a6 Apr 15, 2020
@jdm
Copy link
Member Author

jdm commented Apr 15, 2020

@bors-servo r=Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Apr 15, 2020

📌 Commit e2845a6 has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Apr 15, 2020

Testing commit e2845a6 with merge 3df7861...

bors-servo added a commit that referenced this pull request Apr 15, 2020
Automatically enable WebGL 2 for specific domains.

Our WebGL 2 implementation has progressed to the point where some but not all content works well. One particular example of non-working content is Babylon.js; if the WebGL2RenderingContext interface is present, it automatically tries to use it and causes panics in Servo. However, there are demos like http://www.servoexperiments.com/webxr-particles/ that work fine today and would be great to feature on our HoloLens homepage.

This change adds what is effectively an origin trial, where we can identify content that works well, ensure it's running in a list of blessed hosts, and reap the benefits.
@bors-servo
Copy link
Contributor

bors-servo commented Apr 15, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member Author

jdm commented Apr 15, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Apr 16, 2020

Testing commit e2845a6 with merge f8db666...

@bors-servo
Copy link
Contributor

bors-servo commented Apr 16, 2020

☀️ Test successful - status-taskcluster
Approved by: Manishearth
Pushing f8db666 to master...

@bors-servo bors-servo merged commit f8db666 into servo:master Apr 16, 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
Linked issues

Successfully merging this pull request may close these issues.

None yet

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