Skip to content

Commit 1bbad3f

Browse files
committed
This commit introduces CEF 139 which works now that each media instance has its own cache/cookies folder (previous commit). It also changes the Test Bookmarks page to a heavily updated one with new links and a filter/search mechanism
1 parent 356b682 commit 1bbad3f

File tree

4 files changed

+95
-84
lines changed

4 files changed

+95
-84
lines changed

autobuild.xml

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,6 @@
9999
</map>
100100
<key>boost</key>
101101
<map>
102-
<key>copyright</key>
103-
<string>(see individual source files)</string>
104-
<key>description</key>
105-
<string>Boost C++ Libraries</string>
106-
<key>license</key>
107-
<string>boost 1.0</string>
108-
<key>license_file</key>
109-
<string>LICENSES/boost.txt</string>
110-
<key>name</key>
111-
<string>boost</string>
112102
<key>platforms</key>
113103
<map>
114104
<key>darwin64</key>
@@ -154,8 +144,18 @@
154144
<string>windows64</string>
155145
</map>
156146
</map>
147+
<key>license</key>
148+
<string>boost 1.0</string>
149+
<key>license_file</key>
150+
<string>LICENSES/boost.txt</string>
151+
<key>copyright</key>
152+
<string>(see individual source files)</string>
157153
<key>version</key>
158154
<string>1.86</string>
155+
<key>name</key>
156+
<string>boost</string>
157+
<key>description</key>
158+
<string>Boost C++ Libraries</string>
159159
</map>
160160
<key>bugsplat</key>
161161
<map>
@@ -205,14 +205,6 @@
205205
</map>
206206
<key>colladadom</key>
207207
<map>
208-
<key>copyright</key>
209-
<string>Copyright 2006 Sony Computer Entertainment Inc.</string>
210-
<key>license</key>
211-
<string>SCEA</string>
212-
<key>license_file</key>
213-
<string>LICENSES/collada.txt</string>
214-
<key>name</key>
215-
<string>colladadom</string>
216208
<key>platforms</key>
217209
<map>
218210
<key>darwin64</key>
@@ -258,8 +250,16 @@
258250
<string>windows64</string>
259251
</map>
260252
</map>
253+
<key>license</key>
254+
<string>SCEA</string>
255+
<key>license_file</key>
256+
<string>LICENSES/collada.txt</string>
257+
<key>copyright</key>
258+
<string>Copyright 2006 Sony Computer Entertainment Inc.</string>
261259
<key>version</key>
262260
<string>2.3.0-r8</string>
261+
<key>name</key>
262+
<string>colladadom</string>
263263
</map>
264264
<key>cubemaptoequirectangular</key>
265265
<map>
@@ -441,28 +441,18 @@
441441
</map>
442442
<key>dullahan</key>
443443
<map>
444-
<key>copyright</key>
445-
<string>Copyright (c) 2017, Linden Research, Inc.</string>
446-
<key>description</key>
447-
<string>A headless browser SDK that uses the Chromium Embedded Framework (CEF). It is designed to make it easier to write applications that render modern web content directly to a memory buffer, inject synthesized mouse and keyboard events as well as interact with web based features like JavaScript or cookies.</string>
448-
<key>license</key>
449-
<string>MPL</string>
450-
<key>license_file</key>
451-
<string>LICENSES/LICENSE.txt</string>
452-
<key>name</key>
453-
<string>dullahan</string>
454444
<key>platforms</key>
455445
<map>
456446
<key>darwin64</key>
457447
<map>
458448
<key>archive</key>
459449
<map>
460450
<key>hash</key>
461-
<string>7fde76e3f0e62d0e0593b6157f4d740ecef2429d</string>
451+
<string>8f3672e548c140a48296669b65cb4ce9a54154e2</string>
462452
<key>hash_algorithm</key>
463453
<string>sha1</string>
464454
<key>url</key>
465-
<string>https://github.com/secondlife/dullahan/releases/download/v1.14.0-r3/dullahan-1.14.0.202408091638_118.4.1_g3dd6078_chromium-118.0.5993.54-darwin64-10322607516.tar.zst</string>
455+
<string>https://github.com/secondlife/dullahan/releases/download/v1.16.0-CEF_139.0.17/dullahan-1.16.0.202508120105_139.0.17_g6c347eb_chromium-139.0.7258.31-darwin64-16896111303.tar.zst</string>
466456
</map>
467457
<key>name</key>
468458
<string>darwin64</string>
@@ -486,18 +476,28 @@
486476
<key>archive</key>
487477
<map>
488478
<key>hash</key>
489-
<string>4124c79d8b0e319877ffa4c12581d5c1318b4d93</string>
479+
<string>ec077eb13edf0b69324d73b49bb434e69e67d2d0</string>
490480
<key>hash_algorithm</key>
491481
<string>sha1</string>
492482
<key>url</key>
493-
<string>https://github.com/secondlife/dullahan/releases/download/v1.14.0-r3/dullahan-1.14.0.202408091639_118.4.1_g3dd6078_chromium-118.0.5993.54-windows64-10322607516.tar.zst</string>
483+
<string>https://github.com/secondlife/dullahan/releases/download/v1.16.0-CEF_139.0.17/dullahan-1.16.0.202508120105_139.0.17_g6c347eb_chromium-139.0.7258.31-windows64-16896111303.tar.zst</string>
494484
</map>
495485
<key>name</key>
496486
<string>windows64</string>
497487
</map>
498488
</map>
489+
<key>license</key>
490+
<string>MPL</string>
491+
<key>license_file</key>
492+
<string>LICENSES/LICENSE.txt</string>
493+
<key>copyright</key>
494+
<string>Copyright (c) 2017, Linden Research, Inc.</string>
499495
<key>version</key>
500-
<string>1.14.0.202408091639_118.4.1_g3dd6078_chromium-118.0.5993.54</string>
496+
<string>1.16.0.202508120105_139.0.17_g6c347eb_chromium-139.0.7258.31</string>
497+
<key>name</key>
498+
<string>dullahan</string>
499+
<key>description</key>
500+
<string>A headless browser SDK that uses the Chromium Embedded Framework (CEF). It is designed to make it easier to write applications that render modern web content directly to a memory buffer, inject synthesized mouse and keyboard events as well as interact with web based features like JavaScript or cookies.</string>
501501
</map>
502502
<key>emoji_shortcodes</key>
503503
<map>
@@ -625,16 +625,6 @@
625625
</map>
626626
<key>freetype</key>
627627
<map>
628-
<key>copyright</key>
629-
<string>Copyright 2006, 2007, 2008, 2009, 2010 by David Turner, Robert Wilhelm, and Werner Lemberg.</string>
630-
<key>description</key>
631-
<string>Font rendering library</string>
632-
<key>license</key>
633-
<string>FreeType</string>
634-
<key>license_file</key>
635-
<string>LICENSES/freetype.txt</string>
636-
<key>name</key>
637-
<string>freetype</string>
638628
<key>platforms</key>
639629
<map>
640630
<key>darwin64</key>
@@ -680,8 +670,18 @@
680670
<string>windows64</string>
681671
</map>
682672
</map>
673+
<key>license</key>
674+
<string>FreeType</string>
675+
<key>license_file</key>
676+
<string>LICENSES/freetype.txt</string>
677+
<key>copyright</key>
678+
<string>Copyright 2006, 2007, 2008, 2009, 2010 by David Turner, Robert Wilhelm, and Werner Lemberg.</string>
683679
<key>version</key>
684680
<string>2.13.3-cb2e120</string>
681+
<key>name</key>
682+
<string>freetype</string>
683+
<key>description</key>
684+
<string>Font rendering library</string>
685685
</map>
686686
<key>glext</key>
687687
<map>
@@ -1395,15 +1395,6 @@
13951395
</map>
13961396
<key>llca</key>
13971397
<map>
1398-
<key>copyright</key>
1399-
<string>Copyright (c) 2016, Linden Research, Inc.; data provided by the Mozilla NSS Project.
1400-
</string>
1401-
<key>license</key>
1402-
<string>mit</string>
1403-
<key>license_file</key>
1404-
<string>LICENSES/ca-license.txt</string>
1405-
<key>name</key>
1406-
<string>llca</string>
14071398
<key>platforms</key>
14081399
<map>
14091400
<key>common</key>
@@ -1421,8 +1412,17 @@
14211412
<string>common</string>
14221413
</map>
14231414
</map>
1415+
<key>license</key>
1416+
<string>mit</string>
1417+
<key>license_file</key>
1418+
<string>LICENSES/ca-license.txt</string>
1419+
<key>copyright</key>
1420+
<string>Copyright (c) 2016, Linden Research, Inc.; data provided by the Mozilla NSS Project.
1421+
</string>
14241422
<key>version</key>
14251423
<string>202407221423.0</string>
1424+
<key>name</key>
1425+
<string>llca</string>
14261426
</map>
14271427
<key>llphysicsextensions_source</key>
14281428
<map>
@@ -2620,14 +2620,6 @@ Copyright (c) 2012, 2014, 2015, 2016 nghttp2 contributors</string>
26202620
</map>
26212621
<key>vlc-bin</key>
26222622
<map>
2623-
<key>copyright</key>
2624-
<string>Copyright (C) 1998-2016 VLC authors and VideoLAN</string>
2625-
<key>license</key>
2626-
<string>GPL2</string>
2627-
<key>license_file</key>
2628-
<string>LICENSES/vlc.txt</string>
2629-
<key>name</key>
2630-
<string>vlc-bin</string>
26312623
<key>platforms</key>
26322624
<map>
26332625
<key>darwin64</key>
@@ -2659,8 +2651,16 @@ Copyright (c) 2012, 2014, 2015, 2016 nghttp2 contributors</string>
26592651
<string>windows64</string>
26602652
</map>
26612653
</map>
2654+
<key>license</key>
2655+
<string>GPL2</string>
2656+
<key>license_file</key>
2657+
<string>LICENSES/vlc.txt</string>
2658+
<key>copyright</key>
2659+
<string>Copyright (C) 1998-2016 VLC authors and VideoLAN</string>
26622660
<key>version</key>
26632661
<string>3.0.21.10218721728</string>
2662+
<key>name</key>
2663+
<string>vlc-bin</string>
26642664
</map>
26652665
<key>vulkan_gltf</key>
26662666
<map>
@@ -2858,16 +2858,6 @@ Copyright (c) 2012, 2014, 2015, 2016 nghttp2 contributors</string>
28582858
</map>
28592859
<key>tinyexr</key>
28602860
<map>
2861-
<key>copyright</key>
2862-
<string>Copyright (c) 2014 - 2021, Syoyo Fujita and many contributors.</string>
2863-
<key>description</key>
2864-
<string>tinyexr import library</string>
2865-
<key>license</key>
2866-
<string>3-clause BSD</string>
2867-
<key>license_file</key>
2868-
<string>LICENSES/tinyexr_license.txt</string>
2869-
<key>name</key>
2870-
<string>tinyexr</string>
28712861
<key>platforms</key>
28722862
<map>
28732863
<key>common</key>
@@ -2885,16 +2875,26 @@ Copyright (c) 2012, 2014, 2015, 2016 nghttp2 contributors</string>
28852875
<string>common</string>
28862876
</map>
28872877
</map>
2888-
<key>source_type</key>
2889-
<string>git</string>
2878+
<key>license</key>
2879+
<string>3-clause BSD</string>
2880+
<key>license_file</key>
2881+
<string>LICENSES/tinyexr_license.txt</string>
2882+
<key>copyright</key>
2883+
<string>Copyright (c) 2014 - 2021, Syoyo Fujita and many contributors.</string>
2884+
<key>version</key>
2885+
<string>1.0.9-5e8947c</string>
2886+
<key>name</key>
2887+
<string>tinyexr</string>
28902888
<key>vcs_branch</key>
28912889
<string>dependabot/github_actions/secondlife/action-autobuild-4</string>
28922890
<key>vcs_revision</key>
28932891
<string>4dc4d1d90d82a22843e2adf5130f9ecb5ee5769e</string>
28942892
<key>vcs_url</key>
28952893
<string>https://github.com/secondlife/3p-tinyexr</string>
2896-
<key>version</key>
2897-
<string>1.0.9-5e8947c</string>
2894+
<key>description</key>
2895+
<string>tinyexr import library</string>
2896+
<key>source_type</key>
2897+
<string>git</string>
28982898
</map>
28992899
<key>discord_sdk</key>
29002900
<map>

indra/media_plugins/cef/media_plugin_cef.cpp

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class MediaPluginCEF :
7171
void onLoadStartCallback();
7272
void onRequestExitCallback();
7373
void onLoadEndCallback(int httpStatusCode, std::string url);
74-
void onLoadError(int status, const std::string error_text);
74+
void onLoadError(int status, const std::string error_text, const std::string error_url);
7575
void onAddressChangeCallback(std::string url);
7676
void onOpenPopupCallback(std::string url, std::string target);
7777
bool onHTTPAuthCallback(const std::string host, const std::string realm, std::string& username, std::string& password);
@@ -249,15 +249,17 @@ void MediaPluginCEF::onLoadStartCallback()
249249

250250
/////////////////////////////////////////////////////////////////////////////////
251251
//
252-
void MediaPluginCEF::onLoadError(int status, const std::string error_text)
252+
void MediaPluginCEF::onLoadError(int status, const std::string error_text, const std::string error_url)
253253
{
254254
std::stringstream msg;
255255

256-
msg << "<b>Loading error!</b>";
256+
msg << "<b>Loading error</b>";
257257
msg << "<p>";
258-
msg << "Message: " << error_text;
259-
msg << "<br>";
260-
msg << "Code: " << status;
258+
msg << "Error message: " << error_text;
259+
msg << "<p>";
260+
msg << "Error URL: <tt>" << error_url << "</tt>";
261+
msg << "<p>";
262+
msg << "Error code: " << status;
261263

262264
mCEFLib->showBrowserMessage(msg.str());
263265
}
@@ -614,7 +616,12 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
614616
mCEFLib->setOnTooltipCallback(std::bind(&MediaPluginCEF::onTooltipCallback, this, std::placeholders::_1));
615617
mCEFLib->setOnLoadStartCallback(std::bind(&MediaPluginCEF::onLoadStartCallback, this));
616618
mCEFLib->setOnLoadEndCallback(std::bind(&MediaPluginCEF::onLoadEndCallback, this, std::placeholders::_1, std::placeholders::_2));
617-
mCEFLib->setOnLoadErrorCallback(std::bind(&MediaPluginCEF::onLoadError, this, std::placeholders::_1, std::placeholders::_2));
619+
620+
// CEF 139 seems to have introduced a loading failure at the login page (only??) I haven't seen it on
621+
// any other page and it only happens about 1 in 8 times. Without this handler for the error page
622+
// (red box, error message/code/url) the page load recovers after display a brief built in error.
623+
// Not ideal but better than stopping altgoether. Will restore this once I discover the error.
624+
//mCEFLib->setOnLoadErrorCallback(std::bind(&MediaPluginCEF::onLoadError, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3));
618625
mCEFLib->setOnAddressChangeCallback(std::bind(&MediaPluginCEF::onAddressChangeCallback, this, std::placeholders::_1));
619626
mCEFLib->setOnOpenPopupCallback(std::bind(&MediaPluginCEF::onOpenPopupCallback, this, std::placeholders::_1, std::placeholders::_2));
620627
mCEFLib->setOnHTTPAuthCallback(std::bind(&MediaPluginCEF::onHTTPAuthCallback, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));

indra/newview/skins/default/xui/en/floater_web_content.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
width="22">
179179
<button.commit_callback
180180
function="WebContent.TestURL"
181-
parameter="https://sl-viewer-media-system.s3.amazonaws.com/index.html"/>
181+
parameter="https://sl-viewer-media-system.s3.amazonaws.com/bookmarks/index.html"/>
182182
</button>
183183
</layout_panel>
184184
<layout_panel

indra/newview/viewer_manifest.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,12 +624,16 @@ def construct(self):
624624
with self.prefix(src=os.path.join(pkgdir, 'bin', config)):
625625
self.path("chrome_elf.dll")
626626
self.path("d3dcompiler_47.dll")
627+
self.path("dxcompiler.dll")
628+
self.path("dxil.dll")
627629
self.path("libcef.dll")
628630
self.path("libEGL.dll")
629631
self.path("libGLESv2.dll")
630-
self.path("dullahan_host.exe")
631-
self.path("snapshot_blob.bin")
632632
self.path("v8_context_snapshot.bin")
633+
self.path("vk_swiftshader.dll")
634+
self.path("vk_swiftshader_icd.json")
635+
self.path("vulkan-1.dll")
636+
self.path("dullahan_host.exe")
633637

634638
# MSVC DLLs needed for CEF and have to be in same directory as plugin
635639
with self.prefix(src=os.path.join(self.args['build'], os.pardir,

0 commit comments

Comments
 (0)