mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 08:39:59 -05:00
catch common exception in default behavior
This commit is contained in:
parent
2cd64811b3
commit
034f7938c4
@ -52,7 +52,13 @@ class UmbraBehavior {
|
|||||||
var iframes = document.querySelectorAll("iframe");
|
var iframes = document.querySelectorAll("iframe");
|
||||||
var iframesLength = iframes.length;
|
var iframesLength = iframes.length;
|
||||||
for (var i = 0; i < iframesLength; i++) {
|
for (var i = 0; i < iframesLength; i++) {
|
||||||
|
try {
|
||||||
documents.push(iframes[i].contentWindow.document);
|
documents.push(iframes[i].contentWindow.document);
|
||||||
|
} catch (e) {
|
||||||
|
// it'd be too much logging because this is common:
|
||||||
|
// SecurityError: Blocked a frame with origin "..." from accessing a cross-origin frame
|
||||||
|
// console.log("exception looking at iframe" + iframes[i] + ": " + e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var documentsLength = documents.length;
|
var documentsLength = documents.length;
|
||||||
|
2
setup.py
2
setup.py
@ -32,7 +32,7 @@ def find_package_data(package):
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='brozzler',
|
name='brozzler',
|
||||||
version='1.5.dev318',
|
version='1.5.dev319',
|
||||||
description='Distributed web crawling with browsers',
|
description='Distributed web crawling with browsers',
|
||||||
url='https://github.com/internetarchive/brozzler',
|
url='https://github.com/internetarchive/brozzler',
|
||||||
author='Noah Levitt',
|
author='Noah Levitt',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user