--- a/src/webkit2-extension.c	2017-04-24 19:51:30.000000000 +0000
+++ b/src/webkit2-extension.c	2017-04-24 19:51:30.000000000 +0000
@@ -1846,7 +1846,7 @@
 		return result;
 	}
 
-	canonical_path = canonicalize_file_name(file_path);
+	canonical_path = realpath(file_path, NULL);
 
 	if (NULL != canonical_path) {
 		for (iter = paths; iter; iter = iter->next) {
