{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/9121","repository_url":"https://api.github.com/repos/mozilla/pdf.js","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/9121/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/9121/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/9121/events","html_url":"https://github.com/mozilla/pdf.js/issues/9121","id":273096105,"node_id":"MDU6SXNzdWUyNzMwOTYxMDU=","number":9121,"title":"Support using WebGL on IE11, Edge","user":{"login":"dmichon-msft","id":26827560,"node_id":"MDQ6VXNlcjI2ODI3NTYw","avatar_url":"https://avatars1.githubusercontent.com/u/26827560?v=4","gravatar_id":"","url":"https://api.github.com/users/dmichon-msft","html_url":"https://github.com/dmichon-msft","followers_url":"https://api.github.com/users/dmichon-msft/followers","following_url":"https://api.github.com/users/dmichon-msft/following{/other_user}","gists_url":"https://api.github.com/users/dmichon-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/dmichon-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmichon-msft/subscriptions","organizations_url":"https://api.github.com/users/dmichon-msft/orgs","repos_url":"https://api.github.com/users/dmichon-msft/repos","events_url":"https://api.github.com/users/dmichon-msft/events{/privacy}","received_events_url":"https://api.github.com/users/dmichon-msft/received_events","type":"User","site_admin":false},"labels":[{"id":247480876,"node_id":"MDU6TGFiZWwyNDc0ODA4NzY=","url":"https://api.github.com/repos/mozilla/pdf.js/labels/1-webgl","name":"1-webgl","color":"dddddd","default":false},{"id":247760221,"node_id":"MDU6TGFiZWwyNDc3NjAyMjE=","url":"https://api.github.com/repos/mozilla/pdf.js/labels/4-ie-edge-specific","name":"4-ie-edge-specific","color":"e102d8","default":false},{"id":59987494,"node_id":"MDU6TGFiZWw1OTk4NzQ5NA==","url":"https://api.github.com/repos/mozilla/pdf.js/labels/4-ie11-specific","name":"4-ie11-specific","color":"e102d8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-11T00:17:21Z","updated_at":"2018-12-02T10:14:25Z","closed_at":null,"author_association":"NONE","body":"IE11 and Edge both support WebGL, but expose the context as `'experimental-webgl'` rather than `'webgl'`. If one were to modify `generateGL()` from:\r\n```\r\ncurrentGL = currentCanvas.getContext('webgl', { premultipliedalpha: false });\r\n```\r\nto\r\n```\r\nvar options = { premultipliedalpha: false };\r\ncurrentGL = currentCanvas.getContext('webgl', options) || currentCanvas.getContext('experimental-webgl', options);\r\n```\r\nthen PDF.js will also be able to leverage WebGL on IE11 and Edge."},"comment":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/comments/443496239","html_url":"https://github.com/mozilla/pdf.js/issues/9121#issuecomment-443496239","issue_url":"https://api.github.com/repos/mozilla/pdf.js/issues/9121","id":443496239,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzQ5NjIzOQ==","user":{"login":"Snuffleupagus","id":2692120,"node_id":"MDQ6VXNlcjI2OTIxMjA=","avatar_url":"https://avatars0.githubusercontent.com/u/2692120?v=4","gravatar_id":"","url":"https://api.github.com/users/Snuffleupagus","html_url":"https://github.com/Snuffleupagus","followers_url":"https://api.github.com/users/Snuffleupagus/followers","following_url":"https://api.github.com/users/Snuffleupagus/following{/other_user}","gists_url":"https://api.github.com/users/Snuffleupagus/gists{/gist_id}","starred_url":"https://api.github.com/users/Snuffleupagus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Snuffleupagus/subscriptions","organizations_url":"https://api.github.com/users/Snuffleupagus/orgs","repos_url":"https://api.github.com/users/Snuffleupagus/repos","events_url":"https://api.github.com/users/Snuffleupagus/events{/privacy}","received_events_url":"https://api.github.com/users/Snuffleupagus/received_events","type":"User","site_admin":false},"created_at":"2018-12-02T10:14:25Z","updated_at":"2018-12-02T10:14:25Z","author_association":"CONTRIBUTOR","body":"> 'experimental-webgl'\r\n\r\nGiven that this kind of prefixing (be it vendor or otherwise) has turned out to actually *hurt* the Web, see e.g. the note at the top of https://developer.mozilla.org/en-US/docs/Glossary/Vendor_Prefix:\r\n> Browser vendors are working to stop using vendor prefixes for experimental features. Web developers have been using them on production Web sites, despite their experimental nature. This has made it more difficult for browser vendors to ensure compatibility and to work on new features; it's also been harmful to smaller browsers who wind up forced to add other browsers' prefixes in order to load popular web sites.\r\n>\r\n> Lately, the trend is to add experimental features behind user-controlled flags or preferences, and to create smaller specifications which can reach a stable state much more quickly.\r\n\r\nI really don't think it's a good idea to, at this point in time, add support for anything other than \"proper\" WebGL implementations; hence I'd suggest to WONTFIX this issue. /cc @timvandermeij \r\n\r\n\r\n"}}
{"actor":{"display_login":"Snuffleupagus"}}