Re: [workers-tests] Fix incorrect tests for storage APIs in data: URL workers (#4832)

Yeah, accessing self.localStorage should throw in a data: worker. But it should also throw in any other worker, so trying to access it doesn't tell you anything about the cross-originness/sandboxed nature of the worker. It's not any different than trying to access `self.frobinator`. That will also throw in a data: worker, but also wouldn't be a very meaningful test for this particular case...

Good point about WebSQL though. It doesn't seem like testing for that would hurt though, given that if browsers don't implement it the test will still pass. But yeah, maybe it would indeed be cleaner to just not include that test either.

View on GitHub: https://github.com/w3c/web-platform-tests/pull/4832#issuecomment-288147045

Received on Tuesday, 21 March 2017 17:03:06 UTC