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

Commit 70b801f

Browse files
authored
test(Angular): remove special case for Edge
Edge 17 supports this behavior. Closes #16558
1 parent 3cf4eed commit 70b801f

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

test/AngularSpec.js

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,21 +1785,9 @@ describe('angular', function() {
17851785
protocol = 'browserext:'; // Upcoming standard scheme.
17861786
}
17871787

1788-
1789-
if (protocol === 'ms-browser-extension:') {
1790-
// Support: Edge 13-15
1791-
// In Edge, URLs with protocol 'ms-browser-extension:' return "null" for the origin,
1792-
// therefore it's impossible to know if a script is same-origin.
1793-
it('should not bootstrap for same-origin documents', function() {
1794-
expect(allowAutoBootstrap(createFakeDoc({src: protocol + '//something'}, protocol))).toBe(false);
1795-
});
1796-
1797-
} else {
1798-
it('should bootstrap for same-origin documents', function() {
1799-
1800-
expect(allowAutoBootstrap(createFakeDoc({src: protocol + '//something'}, protocol))).toBe(true);
1801-
});
1802-
}
1788+
it('should bootstrap for same-origin documents', function() {
1789+
expect(allowAutoBootstrap(createFakeDoc({src: protocol + '//something'}, protocol))).toBe(true);
1790+
});
18031791

18041792
it('should not bootstrap for cross-origin documents', function() {
18051793
expect(allowAutoBootstrap(createFakeDoc({src: protocol + '//something-else'}, protocol))).toBe(false);

0 commit comments

Comments
 (0)