Fix crashing in FireFox
Fixed:
-
Fix security error for
getAllin FireFox when there are foreign domain CSS files included On big sites with dozens of CSS files included, where some of them are included from other domains, FireFox throws security error ongetAllbecause jss traverses all available CSS files. To bypass this error and make it work in FireFox, I have added a second argument togetAllfunction:sheet_name, where consumers can optionally specify which CSS filename to take into account. This enablesgetAllto work on only one CSS file and thus to avoid security error. -
FireFox adds properties that are undefined on read, which then crashes
setfunction later on. In a loop where one usesgetAllto get data and then latersetto create new data structures, in FireFox, jss was crashing because FireFox delivers a lot of properties with value 'undefined'.