Fix iOS 10.3 base64 image tainting canvas (Fix #1151)

This commit is contained in:
Niklas von Hertzen
2017-08-13 23:27:03 +08:00
parent fd1447a6e7
commit 8999c76181
4 changed files with 73 additions and 16 deletions

View File

@ -95,14 +95,18 @@ const assertPath = (result, expected, desc) => {
testContainer.src = url + '?selenium&run=false&reftest&' + Math.random();
if (hasHistoryApi) {
// Chrome does not resolve relative background urls correctly inside of a nested iframe
history.replaceState(null, '', url);
try {
history.replaceState(null, '', url);
} catch (e) {}
}
document.body.appendChild(testContainer);
});
after(() => {
if (hasHistoryApi) {
history.replaceState(null, '', testRunnerUrl);
try {
history.replaceState(null, '', testRunnerUrl);
} catch (e) {}
}
document.body.removeChild(testContainer);
});