This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Commit 0694af8
committed
fix(angularInit): allow auto-bootstraping from inline script
Some browsers (e.g. Safari 9.x, PhantomJS) do not set `link.origin/protocol`
correctly, when setting `link.href` to `null`, which prevented auto-bootstraping
Angular from scripts without a `src` attribute (i.e. inline scripts).
Inline scripts are on the same origin as the loading page, so auto-bootstraping
should be allowed.
Fixes #15567
Closes #155711 parent 090a839 commit 0694af8
2 files changed
+29
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1479 | 1479 | | |
1480 | 1480 | | |
1481 | 1481 | | |
1482 | | - | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
1483 | 1486 | | |
1484 | 1487 | | |
1485 | | - | |
| 1488 | + | |
1486 | 1489 | | |
1487 | 1490 | | |
| 1491 | + | |
1488 | 1492 | | |
1489 | 1493 | | |
1490 | 1494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
1687 | | - | |
| 1687 | + | |
| 1688 | + | |
1688 | 1689 | | |
1689 | 1690 | | |
1690 | 1691 | | |
| |||
1715 | 1716 | | |
1716 | 1717 | | |
1717 | 1718 | | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
1718 | 1738 | | |
1719 | | - | |
| 1739 | + | |
| 1740 | + | |
1720 | 1741 | | |
1721 | 1742 | | |
1722 | 1743 | | |
| |||
0 commit comments