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

Eliminate all uses of "Uint8ClampedArray" #2444

Closed
dflynn15 opened this issue Apr 14, 2016 · 11 comments
Closed

Eliminate all uses of "Uint8ClampedArray" #2444

dflynn15 opened this issue Apr 14, 2016 · 11 comments

Comments

@dflynn15
Copy link

Here is a quick testing matrix showing the failure/success breakdown: https://docs.google.com/spreadsheets/d/1IV26RrQ8_55NS-P1vKsA5qrfwTsAF9146KzciSj7zxI/edit?usp=sharing

When going through the demos on mapbox.com there are several combinations of OS and Browser for Internet Explorer that will not render the map.

mapbox-gl-js version: Tested with latest 0.17.0 which is being used by the example pages.

Steps to Trigger Behavior

  1. Go to any example page on mapbox.com (used https://www.mapbox.com/mapbox-gl-js/examples/ for testing)
  2. Check the console and see the error.
  3. The most common error is the inconsistency of IE supporting Uint8ClampedArray as a defined function.

Expected Behavior

Map to load on IE 10+

Actual Behavior

Map does not render

@mourner
Copy link
Member

mourner commented Apr 14, 2016

We don't support IE10, only IE11 and Edge. But IE11 failing on Win8.1 while being fine on Win7 is surprising. Are you absolutely sure you didn't accidentally check IE10 for that cell? The error about Uint8ClampedArray should only happen on IE10.

@dflynn15
Copy link
Author

Yep. I checked it out in my personal VM's and BrowserStack just to make sure I wasn't missing something. Feel free to validate, however several people at my work were able to validate the bug as well.

Similarly you can see the JS error here (http://www.javascripture.com/Uint8ClampedArray) with the same set of browsers + OS.

@mourner
Copy link
Member

mourner commented Apr 14, 2016

Looks like it was added in a security update in April 2014. I don't think we want to support outdated IE11 versions so I'm inclined to close the issue.

@cromwellryan
Copy link

We're confirming whether the version of Windows 8.1 / IE11 we're testing on has KB2929437

@jfirebaugh
Copy link
Contributor

We should add a check for Uint8ClampedArray support to mapboxgl.supported.

@mourner
Copy link
Member

mourner commented Apr 14, 2016

I'm also wondering whether it will work just fine if we use Uint8Array
where Uint8ClampedArray is not supported

четверг, 14 апреля 2016 г. пользователь John Firebaugh написал:

We should add a check for Uint8ClampedArray support to mapboxgl.supported
https://www.mapbox.com/mapbox-gl-js/api/#mapboxgl.supported.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#2444 (comment)

Vladimir Agafonkin
http://agafonkin.com/en
+380 (93) 745 44 61

@cromwellryan
Copy link

We have confirmed that the original version of IE11 on Windows 8.1 (BrowserStack) doesn't have this KB installed. We'll have more details tomorrow once we have a relatively patched version of 8.1 available.

@lucaswoj
Copy link
Contributor

@ansis Can you comment on whether or not we can eliminate the use of Uint8ClampedArray here?

@lucaswoj lucaswoj changed the title Internet Explorer error (breaking render) Eliminate all uses of "Uint8ClampedArray" Apr 18, 2016
@mourner
Copy link
Member

mourner commented Apr 18, 2016

@lucaswoj we could clamp opacities manually. However I'm not sure if that IE version would work flawlessly even without ClampedArray since that IE security update mentions other WebGL fixes/improvements that we may rely on. We should make a branch and check.

@ansis
Copy link
Contributor

ansis commented Apr 18, 2016

@lucaswoj if this switches to a Uint8Array then these lines need manual clamping

@lucaswoj
Copy link
Contributor

My impression, from investigating compatibility tables, is that we don't support any browsers that don't support Uint8ClampedArray. We can close this issue and move forward with mapbox/mapbox-gl-supported#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants