Browse Source

[CRX] Recognize blob and data-URLs in the router

When a blob or data-URL is opened with the extension, viewer.html
rewrites the URL. But when the viewer is refreshed (e.g. F5), Chrome
would fail to display the viewer because the extension router was not
set up to recognize such URLs.

Now it is.
Rob Wu 8 years ago
parent
commit
d9f90d595d
  1. 2
      extensions/chromium/extension-router.js
  2. 2
      extensions/chromium/manifest.json

2
extensions/chromium/extension-router.js

@ -27,6 +27,8 @@ limitations under the License.
'ftp', 'ftp',
'file', 'file',
'chrome-extension', 'chrome-extension',
'blob',
'data',
// Chromium OS // Chromium OS
'filesystem', 'filesystem',
// Chromium OS, shorthand for filesystem:<origin>/external/ // Chromium OS, shorthand for filesystem:<origin>/external/

2
extensions/chromium/manifest.json

@ -63,6 +63,8 @@
"ftp:/*", "ftp:/*",
"file:/*", "file:/*",
"chrome-extension:/*", "chrome-extension:/*",
"blob:*",
"data:*",
"filesystem:/*", "filesystem:/*",
"drive:*" "drive:*"
] ]

Loading…
Cancel
Save