Revert "base: DocumentUI: fix a few issues handling remote content"

This reverts commit add0bb74e6a5fca1d5cdb10ca8c2c158a0e86230.