mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix iOS 10.3 base64 image tainting canvas (Fix #1151)
This commit is contained in:
@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user