If the url contains a query, the path returned by KURL::fileSystemPath() should not include the query. This happens when the inspector is loaded docked in wk2. The uri contains ?docked=true. The inspector proxy installs its own policy client to ignore any request not coming from the inspector base URL. To check urls it uses KURL::fileSystemPath() to make sure request are local files and from the inspector directory.
Created attachment 142455 [details]
Committed r117549: <http://trac.webkit.org/changeset/117549>