Skip to content

Commit 6a1f3e3

Browse files
committed
Merge in 'release/6.0' changes
2 parents f6c6435 + 1c61e0c commit 6a1f3e3

File tree

19 files changed

+191
-37
lines changed

19 files changed

+191
-37
lines changed

.azure/pipelines/components-e2e-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,5 @@ jobs:
7575
artifacts:
7676
- name: Components_E2E_Test_Logs
7777
path: '$(Build.SourcesDirectory)/artifacts/TestResults/$(BuildConfiguration)'
78+
includeForks: true
7879
publishOnError: true

.azure/pipelines/jobs/default-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ jobs:
101101
${{ if or(eq(parameters.useHostedUbuntu, false), and(eq(variables['System.TeamProject'], 'internal'), notin(variables['Build.Reason'], 'Manual', 'PullRequest', 'Schedule'))) }}:
102102
${{ if eq(variables['System.TeamProject'], 'public') }}:
103103
name: NetCore-Svc-Public
104-
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
104+
demands: ImageOverride -equals Build.Ubuntu.2004.Amd64.Open
105105
${{ if eq(variables['System.TeamProject'], 'internal') }}:
106106
name: NetCore1ESPool-Svc-Internal
107-
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
107+
demands: ImageOverride -equals Build.Ubuntu.2004.Amd64
108108
${{ if eq(parameters.agentOs, 'Windows') }}:
109109
${{ if eq(variables['System.TeamProject'], 'public') }}:
110110
name: NetCore-Svc-Public

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Users referenced in this file will automatically be requested as reviewers for PRs that modify the given paths.
22
# See https://help.github.com/articles/about-code-owners/
33

4-
* @Pilchie
54
/global.json @dotnet/aspnet-build
65
/.azure/ @dotnet/aspnet-build
76
/.config/ @dotnet/aspnet-build

src/Components/Web.JS/dist/Release/blazor.server.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/Web.JS/dist/Release/blazor.webview.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/Web.JS/src/PageTitle.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ export const PageTitle = {
55
};
66

77
function getAndRemoveExistingTitle(): string | null {
8-
const titleElements = document.getElementsByTagName('title');
8+
// Other <title> elements may exist outside <head> (e.g., inside <svg> elements) but they aren't page titles
9+
const titleElements = document.head ? document.head.getElementsByTagName('title') : [];
910

1011
if (titleElements.length === 0) {
1112
return null;

src/Components/test/E2ETest/ServerExecutionTests/CircuitGracefulTerminationTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
using BasicTestApp;
88
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure;
99
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures;
10-
using Microsoft.AspNetCore.Testing;
1110
using Microsoft.AspNetCore.E2ETesting;
11+
using Microsoft.AspNetCore.Testing;
1212
using Microsoft.Extensions.DependencyInjection;
1313
using Microsoft.Extensions.Logging.Testing;
1414
using OpenQA.Selenium;
@@ -66,6 +66,7 @@ public async Task ReloadingThePage_GracefullyDisconnects_TheCurrentCircuit()
6666
}
6767

6868
[Fact]
69+
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/44185")]
6970
public async Task ClosingTheBrowserWindow_GracefullyDisconnects_TheCurrentCircuit()
7071
{
7172
// Arrange & Act

src/Components/test/E2ETest/ServerExecutionTests/HeadModificationPrerenderingTest.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public void CanModifyHeadDuringAndAfterPrerendering()
3636
Browser.Equal("Title 1", () => Browser.Title);
3737
Browser.Exists(By.Id("meta-description"));
3838

39+
// Check that unrelated <title> elements were left alone
40+
Browser.Equal("This element is used to test that PageTitle prerendering doesn't interfere with non-head title elements.",
41+
() => Browser.Exists(By.CssSelector("#svg-for-title-prerendering-test title")).Text);
42+
3943
var titleText1 = Browser.FindElement(By.Id("title-text-1"));
4044
titleText1.Clear();
4145
titleText1.SendKeys("Updated title 1\n");

src/Components/test/testassets/TestServer/Pages/DeferredComponentContentLayout.cshtml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,11 @@
3434
});
3535
}
3636
</script>
37+
38+
<svg id="svg-for-title-prerendering-test" viewBox="0 0 20 10" xmlns="http://www.w3.org/2000/svg" style="width: 1px; height: 1px;">
39+
<rect x="11" y="1" width="8" height="8">
40+
<title>This element is used to test that PageTitle prerendering doesn't interfere with non-head title elements.</title>
41+
</rect>
42+
</svg>
3743
</body>
3844
</html>

src/Hosting/TestHost/src/ResponseBodyReaderStream.cs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public override int Read(byte[] buffer, int offset, int count)
7070

7171
public override async Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
7272
{
73-
VerifyBuffer(buffer, offset, count);
73+
ValidateBufferArguments(buffer, offset, count);
7474
CheckAborted();
7575

7676
if (_readerComplete)
@@ -101,22 +101,6 @@ public override async Task<int> ReadAsync(byte[] buffer, int offset, int count,
101101
return (int)actual;
102102
}
103103

104-
private static void VerifyBuffer(byte[] buffer, int offset, int count)
105-
{
106-
if (buffer == null)
107-
{
108-
throw new ArgumentNullException(nameof(buffer));
109-
}
110-
if (offset < 0 || offset > buffer.Length)
111-
{
112-
throw new ArgumentOutOfRangeException(nameof(offset), offset, string.Empty);
113-
}
114-
if (count <= 0 || count > buffer.Length - offset)
115-
{
116-
throw new ArgumentOutOfRangeException(nameof(count), count, string.Empty);
117-
}
118-
}
119-
120104
internal void Cancel()
121105
{
122106
Abort(new OperationCanceledException());

0 commit comments

Comments
 (0)