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

Disable using Transferables in Safari #9003

Merged
merged 9 commits into from
Nov 21, 2019
7 changes: 4 additions & 3 deletions src/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,11 +452,12 @@ export function parseCacheControl(cacheControl: string): Object {
let _isSafari = null;

/**
* Retuns true if the when run WebKit derived browsers.
* This is used to work-around a memory-leak in Safari caused by using web-worker transfers.
* Retuns true when run in WebKit derived browsers.
* This is used as a workaround for a memory leak in Safari caused by using Transferable objects to
* transfer data between WebWorker's and the main thread.
* https://github.com/mapbox/mapbox-gl-js/issues/8771
*
* This should be removed once the unerlying safari issue is fixed.
* This should be removed once the underlying Safari issue is fixed.
*
* @private
* @returns {boolean}
Expand Down