Skip to content

Commit 1473ca3

Browse files
committed
Update CEF
1 parent d7c8503 commit 1473ca3

File tree

10 files changed

+15
-22
lines changed

10 files changed

+15
-22
lines changed

src/Packages/UnityWebBrowser.Engine.Cef.Linux-x64/LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021-2022 Voltstro-Studios
3+
Copyright (c) 2021-2023 Voltstro-Studios
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/Packages/UnityWebBrowser.Engine.Cef.Linux-x64/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
"changelogUrl": "https://projects.voltstro.dev/UnityWebBrowser/changelog/",
1414
"unity": "2021.2",
1515
"dependencies": {
16-
"dev.voltstro.unitywebbrowser.engine.cef": "2.0.1-106.1.1",
16+
"dev.voltstro.unitywebbrowser.engine.cef": "2.0.1-113.3.1",
1717
"dev.voltstro.unitywebbrowser.unix-support": "1.0.0"
1818
},
1919
"documentationUrl": "https://projects.voltstro.dev/UnityWebBrowser/",
2020
"description": "CEF Engine for Unity Web Browser (Linux x64)",
2121
"displayName": "Unity Web Browser CEF Engine (Linux x64)",
22-
"version": "2.0.1-106.1.1"
22+
"version": "2.0.1-113.3.1"
2323
}

src/Packages/UnityWebBrowser.Engine.Cef.Win-x64/LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021-2022 Voltstro-Studios
3+
Copyright (c) 2021-2023 Voltstro-Studios
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/Packages/UnityWebBrowser.Engine.Cef.Win-x64/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"changelogUrl": "https://projects.voltstro.dev/UnityWebBrowser/changelog/",
1414
"unity": "2021.2",
1515
"dependencies": {
16-
"dev.voltstro.unitywebbrowser.engine.cef": "2.0.1-106.1.1"
16+
"dev.voltstro.unitywebbrowser.engine.cef": "2.0.1-113.3.1"
1717
},
1818
"documentationUrl": "https://projects.voltstro.dev/UnityWebBrowser/",
1919
"description": "CEF Engine for Unity Web Browser (Windows x64)",
2020
"displayName": "Unity Web Browser CEF Engine (Windows x64)",
21-
"version": "2.0.1-106.1.1"
21+
"version": "2.0.1-113.3.1"
2222
}

src/Packages/UnityWebBrowser.Engine.Cef/LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021-2022 Voltstro-Studios
3+
Copyright (c) 2021-2023 Voltstro-Studios
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/Packages/UnityWebBrowser.Engine.Cef/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"changelogUrl": "https://projects.voltstro.dev/UnityWebBrowser/changelog/",
44
"description": "CEF Engine for Unity Web Browser",
55
"documentationUrl": "https://projects.voltstro.dev/UnityWebBrowser/",
6-
"version": "2.0.1-106.1.1",
6+
"version": "2.0.1-113.3.1",
77
"author": {
88
"email": "me@voltstro.dev",
99
"url": "https://voltstro.dev",

src/ThirdParty/CefGlue

Submodule CefGlue updated from a692b38 to eb10be5

src/UnityWebBrowser.Engine.Cef/Browser/StreamCefResourceHandler.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ protected override bool Skip(long bytesToSkip, out long bytesSkipped, CefResourc
249249
return true;
250250
}
251251

252-
protected override bool Read(IntPtr dataOut, int bytesToRead, out int bytesRead, CefResourceReadCallback callback)
252+
protected override bool Read(Stream dataStream, int bytesToRead, out int bytesRead, CefResourceReadCallback callback)
253253
{
254254
CefLoggerWrapper.Debug($"{CefLoggerWrapper.FullCefMessageTag} Stream Cef Resource Handler Read() called.");
255255
bytesRead = 0;
@@ -268,15 +268,8 @@ protected override bool Read(IntPtr dataOut, int bytesToRead, out int bytesRead,
268268

269269
// To indicate response completion set bytesRead to 0 and return false
270270
if (bytesRead == 0) return false;
271-
272-
using (CefSafeBuffer safeBuffer = new CefSafeBuffer(dataOut, (ulong) bytesRead))
273-
using (UnmanagedMemoryStream dataOutStream =
274-
new UnmanagedMemoryStream(safeBuffer, 0, bytesRead, FileAccess.Write))
275-
{
276-
//We need to use bytesRead instead of tempbuffer.Length otherwise
277-
//garbage from the previous copy would be written to dataOut
278-
dataOutStream.Write(tempBuffer, 0, bytesRead);
279-
}
271+
272+
dataStream.Write(tempBuffer, 0, bytesRead);
280273

281274
return bytesRead > 0;
282275
}

src/UnityWebBrowser.Engine.Cef/UnityWebBrowser.Engine.Cef.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<ApplicationIcon>chromium-logo.ico</ApplicationIcon>
1111
<Description>External process to handel rendering with CEF</Description>
1212
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
13-
<Version>2.0.1-106.1.1</Version>
13+
<Version>2.0.1-113.3.1</Version>
1414
<DefineConstants>BROWSER_PROCESS</DefineConstants>
1515
</PropertyGroup>
1616

src/UnityWebBrowser.UnityProject/Packages/packages-lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
"depth": 0,
184184
"source": "local",
185185
"dependencies": {
186-
"dev.voltstro.unitywebbrowser.engine.cef": "2.0.1-106.1.1",
186+
"dev.voltstro.unitywebbrowser.engine.cef": "2.0.1-113.3.1",
187187
"dev.voltstro.unitywebbrowser.unix-support": "1.0.0"
188188
}
189189
},
@@ -201,7 +201,7 @@
201201
"depth": 0,
202202
"source": "local",
203203
"dependencies": {
204-
"dev.voltstro.unitywebbrowser.engine.cef": "2.0.1-106.1.1"
204+
"dev.voltstro.unitywebbrowser.engine.cef": "2.0.1-113.3.1"
205205
}
206206
},
207207
"dev.voltstro.unitywebbrowser.unix-support": {

0 commit comments

Comments
 (0)