There isn't currently an API for doing this. You're right, though, that SecurityOrigin.cpp would be the file that would implement this feature.
Adam 2009/4/6 Wellu Mäkinen <[email protected]>: > Hi, > > is there an API to limit the WebKit's access to local resources? What I've > been looking for is kind of chroot() inside of WebKit. So a local file loaded > e.g from /usr/share/test would only be able to refer to files under > /usr/share/test. Currently a file loaded from local disk can refer to > anywhere. > > I've been looking at SecurityOrigin.cpp but it seems that once the file is > considered local then it can access any local file. > > Thanks, > -- > Wellu > > _______________________________________________ > webkit-dev mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

