Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0a1db2a

Browse files
Narretzgkalpak
authored andcommitted
fix(Angular): add workaround for Safari / Webdriver problem
Closes #16645
1 parent 4bd4246 commit 0a1db2a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Angular.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,8 +1695,13 @@ function angularInit(element, bootstrap) {
16951695
});
16961696
if (appElement) {
16971697
if (!isAutoBootstrapAllowed) {
1698-
window.console.error('AngularJS: disabling automatic bootstrap. <script> protocol indicates ' +
1698+
try {
1699+
window.console.error('AngularJS: disabling automatic bootstrap. <script> protocol indicates ' +
16991700
'an extension, document.location.href does not match.');
1701+
} catch (e) {
1702+
// Support: Safari 11 w/ Webdriver
1703+
// The console.error will throw and make the test fail
1704+
}
17001705
return;
17011706
}
17021707
config.strictDi = getNgAttribute(appElement, 'strict-di') !== null;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy