Index: chrome/ext/background.js |
diff --git a/chrome/ext/background.js b/chrome/ext/background.js |
index 87f2209df71e3565730add28c3ca7a0f9b263ff2..6ebcbb17513885fdd9d1a3f927abc6d87ce6a320 100644 |
--- a/chrome/ext/background.js |
+++ b/chrome/ext/background.js |
@@ -501,7 +501,9 @@ |
{ |
sender.page = new Page(rawSender.tab); |
sender.frame = { |
- url: new URL(rawSender.url), |
+ // In Edge requests from internal extension pages |
+ // (protocol ms-browser-extension://) do no have a sender URL. |
+ url: rawSender.url ? new URL(rawSender.url): null, |
Sebastian Noack
2016/05/29 13:53:59
Nit: Please add a space before the colon.
|
get parent() |
{ |
var frames = framesOfTabs[rawSender.tab.id]; |