Fairly sure KHTML was LGPL, Apple could not have closed it even if they wanted to. Same goes for what became JSCore which also remains LGPL.
Re:APFS filesystem format
by michaelmrose on Tuesday April 25, 2017 @03:16AM
(#14191415)
Pretty sure you are in fact wrong.
JavascriptCore was also based on BSD code, but was then rewritten by the WebKit team and made GPL.