- update /etc/hosts to include entries for 3 unique domains. for example:
127.0.0.1 www.parent-a.com
127.0.0.1 www.parent-b.com
127.0.0.1 sub-frame.example.com
- start three local webservers; 1 for each parent, another for the sub-frame.. for example (using http-server):
cd parent-a && http-server -p 8181 &
cd parent-b && http-server -p 8282 &
cd sub-frame && http-server -p 8888 &
-
load www.parent-a.com and www.parent-b.com in Safari Developer Preview
-
test storage from embedded sub-frame access www.parent-a.com and www.parent-b.com
-
clean up
ps aux | grep [h]ttp-server
kill -9 [pid...]