make more generic for the future
Created attachment 214892 [details] patch
https://trac.webkit.org/r157824