Hopefully fix WebViewFileController issues

Note that this was coded on Github and not tested.