diff options
author | Selim Gurun <sgurun@google.com> | 2014-01-17 08:47:11 -0800 |
---|---|---|
committer | Selim Gurun <sgurun@google.com> | 2014-01-17 09:46:36 -0800 |
commit | d2391b492dec778452238bc6d9d549d56d41c107 (patch) | |
tree | 1a43466deb8197fdde17806e6b3473b5175599f0 /src/com/android/browser/Tab.java | |
parent | 0bc1ffaa383afaf88e9049a3610b2da90b9f0070 (diff) | |
download | packages_apps_Browser-d2391b492dec778452238bc6d9d549d56d41c107.zip packages_apps_Browser-d2391b492dec778452238bc6d9d549d56d41c107.tar.gz packages_apps_Browser-d2391b492dec778452238bc6d9d549d56d41c107.tar.bz2 |
Further tighten the files that the browser can show
Bug: 11516871
Change-Id: I46088ed5f668a484df33bb8458ebf687f1aa70d9
Diffstat (limited to 'src/com/android/browser/Tab.java')
-rw-r--r-- | src/com/android/browser/Tab.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java index 2f00b26..6983ace 100644 --- a/src/com/android/browser/Tab.java +++ b/src/com/android/browser/Tab.java @@ -631,7 +631,7 @@ class Tab implements PictureListener { File file = new File(uri.getPath()); try { if (file.getCanonicalPath().startsWith( - mContext.getDatabasePath("foo").getParent())) { + mContext.getApplicationContext().getApplicationInfo().dataDir)) { return new WebResourceResponse("text/html","UTF-8", new ByteArrayInputStream(RESTRICTED.getBytes("UTF-8"))); } |