|
@@ -42,6 +42,13 @@ var GUM = null;
|
42
|
42
|
const CHROME_EXTENSION_POPUP_ERROR
|
43
|
43
|
= "Inline installs can not be initiated from pop-up windows.";
|
44
|
44
|
|
|
45
|
+/**
|
|
46
|
+ * The error returned by chrome when trying to start inline installation from
|
|
47
|
+ * iframe.
|
|
48
|
+ */
|
|
49
|
+const CHROME_EXTENSION_IFRAME_ERROR
|
|
50
|
+ = "Chrome Web Store installations can only be started by the top frame.";
|
|
51
|
+
|
45
|
52
|
/**
|
46
|
53
|
* The error message returned by chrome when the extension is installed.
|
47
|
54
|
*/
|
|
@@ -266,7 +273,8 @@ var ScreenObtainer = {
|
266
|
273
|
handleExtensionInstallationError(options, streamCallback, failCallback, e) {
|
267
|
274
|
const webStoreInstallUrl = getWebStoreInstallUrl(this.options);
|
268
|
275
|
|
269
|
|
- if (CHROME_EXTENSION_POPUP_ERROR === e
|
|
276
|
+ if ((CHROME_EXTENSION_POPUP_ERROR === e
|
|
277
|
+ || CHROME_EXTENSION_IFRAME_ERROR === e)
|
270
|
278
|
&& options.interval > 0
|
271
|
279
|
&& typeof(options.checkAgain) === "function"
|
272
|
280
|
&& typeof(options.listener) === "function") {
|