From 0ec82d4a50e6b0c0af9c18ca4f070b30d5c3e90e Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Sat, 30 Jan 2016 14:21:54 +0100 Subject: [PATCH] Allow local PDF files to be viewed in local frames The Chrome extension enforces that local files cannot be embedded in non-local web pages. The previous check was too strict (because the origin of a file:-URL is "null"), and prevented local PDF from being viewed in local files). This patch fixes that problem, by querying the actual tab URL via the background page. Steps to verify: 1. Create a HTML file: `