Files
UnrealEngineUWP/Engine/Source/Runtime/WebBrowser/Private/SWebBrowserView.cpp

782 lines
20 KiB
C++
Raw Normal View History

// Copyright Epic Games, Inc. All Rights Reserved.
#include "SWebBrowserView.h"
Copying //UE4/Dev-Build to //UE4/Dev-Main (Source: //UE4/Dev-Build @ 3209340) #lockdown Nick.Penwarden #rb none ========================== MAJOR FEATURES + CHANGES ========================== Change 3209340 on 2016/11/23 by Ben.Marsh Convert UE4 codebase to an "include what you use" model - where every header just includes the dependencies it needs, rather than every source file including large monolithic headers like Engine.h and UnrealEd.h. Measured full rebuild times around 2x faster using XGE on Windows, and improvements of 25% or more for incremental builds and full rebuilds on most other platforms. * Every header now includes everything it needs to compile. * There's a CoreMinimal.h header that gets you a set of ubiquitous types from Core (eg. FString, FName, TArray, FVector, etc...). Most headers now include this first. * There's a CoreTypes.h header that sets up primitive UE4 types and build macros (int32, PLATFORM_WIN64, etc...). All headers in Core include this first, as does CoreMinimal.h. * Every .cpp file includes its matching .h file first. * This helps validate that each header is including everything it needs to compile. * No engine code includes a monolithic header such as Engine.h or UnrealEd.h any more. * You will get a warning if you try to include one of these from the engine. They still exist for compatibility with game projects and do not produce warnings when included there. * There have only been minor changes to our internal games down to accommodate these changes. The intent is for this to be as seamless as possible. * No engine code explicitly includes a precompiled header any more. * We still use PCHs, but they're force-included on the compiler command line by UnrealBuildTool instead. This lets us tune what they contain without breaking any existing include dependencies. * PCHs are generated by a tool to get a statistical amount of coverage for the source files using it, and I've seeded the new shared PCHs to contain any header included by > 15% of source files. Tool used to generate this transform is at Engine\Source\Programs\IncludeTool. [CL 3209342 by Ben Marsh in Main branch]
2016-11-23 15:48:37 -05:00
#include "Misc/CommandLine.h"
#include "Misc/ConfigCacheIni.h"
Copying //UE4/Dev-Build to //UE4/Dev-Main (Source: //UE4/Dev-Build @ 3209340) #lockdown Nick.Penwarden #rb none ========================== MAJOR FEATURES + CHANGES ========================== Change 3209340 on 2016/11/23 by Ben.Marsh Convert UE4 codebase to an "include what you use" model - where every header just includes the dependencies it needs, rather than every source file including large monolithic headers like Engine.h and UnrealEd.h. Measured full rebuild times around 2x faster using XGE on Windows, and improvements of 25% or more for incremental builds and full rebuilds on most other platforms. * Every header now includes everything it needs to compile. * There's a CoreMinimal.h header that gets you a set of ubiquitous types from Core (eg. FString, FName, TArray, FVector, etc...). Most headers now include this first. * There's a CoreTypes.h header that sets up primitive UE4 types and build macros (int32, PLATFORM_WIN64, etc...). All headers in Core include this first, as does CoreMinimal.h. * Every .cpp file includes its matching .h file first. * This helps validate that each header is including everything it needs to compile. * No engine code includes a monolithic header such as Engine.h or UnrealEd.h any more. * You will get a warning if you try to include one of these from the engine. They still exist for compatibility with game projects and do not produce warnings when included there. * There have only been minor changes to our internal games down to accommodate these changes. The intent is for this to be as seamless as possible. * No engine code explicitly includes a precompiled header any more. * We still use PCHs, but they're force-included on the compiler command line by UnrealBuildTool instead. This lets us tune what they contain without breaking any existing include dependencies. * PCHs are generated by a tool to get a statistical amount of coverage for the source files using it, and I've seeded the new shared PCHs to contain any header included by > 15% of source files. Tool used to generate this transform is at Engine\Source\Programs\IncludeTool. [CL 3209342 by Ben Marsh in Main branch]
2016-11-23 15:48:37 -05:00
#include "Containers/Ticker.h"
#include "WebBrowserModule.h"
Copying //UE4/Dev-Build to //UE4/Dev-Main (Source: //UE4/Dev-Build @ 3209340) #lockdown Nick.Penwarden #rb none ========================== MAJOR FEATURES + CHANGES ========================== Change 3209340 on 2016/11/23 by Ben.Marsh Convert UE4 codebase to an "include what you use" model - where every header just includes the dependencies it needs, rather than every source file including large monolithic headers like Engine.h and UnrealEd.h. Measured full rebuild times around 2x faster using XGE on Windows, and improvements of 25% or more for incremental builds and full rebuilds on most other platforms. * Every header now includes everything it needs to compile. * There's a CoreMinimal.h header that gets you a set of ubiquitous types from Core (eg. FString, FName, TArray, FVector, etc...). Most headers now include this first. * There's a CoreTypes.h header that sets up primitive UE4 types and build macros (int32, PLATFORM_WIN64, etc...). All headers in Core include this first, as does CoreMinimal.h. * Every .cpp file includes its matching .h file first. * This helps validate that each header is including everything it needs to compile. * No engine code includes a monolithic header such as Engine.h or UnrealEd.h any more. * You will get a warning if you try to include one of these from the engine. They still exist for compatibility with game projects and do not produce warnings when included there. * There have only been minor changes to our internal games down to accommodate these changes. The intent is for this to be as seamless as possible. * No engine code explicitly includes a precompiled header any more. * We still use PCHs, but they're force-included on the compiler command line by UnrealBuildTool instead. This lets us tune what they contain without breaking any existing include dependencies. * PCHs are generated by a tool to get a statistical amount of coverage for the source files using it, and I've seeded the new shared PCHs to contain any header included by > 15% of source files. Tool used to generate this transform is at Engine\Source\Programs\IncludeTool. [CL 3209342 by Ben Marsh in Main branch]
2016-11-23 15:48:37 -05:00
#include "Layout/WidgetPath.h"
#include "Framework/Application/MenuStack.h"
#include "Framework/Application/SlateApplication.h"
#include "IWebBrowserDialog.h"
#include "IWebBrowserWindow.h"
#include "WebBrowserViewport.h"
#include "IWebBrowserAdapter.h"
#if PLATFORM_ANDROID && USE_ANDROID_JNI
# include "Android/AndroidWebBrowserWindow.h"
Copying //UE4/Dev-Mobile to //UE4/Main (Source: //UE4/Dev-Mobile @ 2945914) ========================== MAJOR FEATURES + CHANGES ========================== Change 2911743 on 2016/03/16 by Allan.Bentham Fix broken tonemapper when using 32bpp encoded HDR. Fixes UE-28359 Cleaned up some ronin integration hacks from ronin. Change 2912053 on 2016/03/16 by Peter.Sauerbrei disable Vulkan in Win32 builds for now #codereview rolando.caloca #jira UE-28465 Change 2914512 on 2016/03/18 by Dmitriy.Dyomin Fixed crash on Nexus5 with Android 4.4.2 when TonemapperFilm is enabled Change 2914944 on 2016/03/18 by Allan.Bentham Fix es2 tonemap flip. Fixes UE-25148 Change 2915248 on 2016/03/18 by Chris.Babcock Updates to support NDK r11 #jira UE-28529 #ue4 #android Change 2919192 on 2016/03/22 by Chris.Babcock NDK level set above 19 forces minSdkVersion to 21 or above to prevent installing on unsupported devices #jira UE-28408 #ue4 #android #codereview Jack.Porter Change 2919591 on 2016/03/23 by Allan.Bentham Merge ronin's Gaussian DoF to 4.11's dof changes. Gaussian DoF will use a single recombine pass with ES31 devices or if no separate translucency is used on SM4+. Added permutation to exclude separate translucency from Gaussian recombine shader when not in use. #codereview martin.mittring Change 2920758 on 2016/03/24 by Dmitriy.Dyomin Fixed: shifting lighting samples octree https://udn.unrealengine.com/questions/276026/lighting-samples-visualization-not-working-with-le.html Change 2920793 on 2016/03/24 by Dmitriy.Dyomin Fixed: When sub-level set to be unloaded but with visbility state set to true, ULevelStreaming::IsStreamingStatePending returns wrong value #jira UE-26426 Change 2920981 on 2016/03/24 by Dmitriy.Dyomin GPU particles support for iOS Metal (A8+ only) #jira UE-11067 #jira UE-28514 #codereview Jack.Porter Change 2921383 on 2016/03/24 by Allan.Bentham Fix inverted image on device when framebuffer fetch/bViewRectSource is not used. #codereview jack.porter Change 2925694 on 2016/03/29 by Dmitriy.Dyomin Fixed: GPU particles and bloom on S7 Mali Change 2927065 on 2016/03/29 by Chris.Babcock Set the DT_SONAME field in linker (stops warning toast) #ue4 #android #codereview Jack.Porter Change 2927375 on 2016/03/30 by Jack.Porter Fixed localization for placement mode Cube, Sphere, Cylinder and Cone Change 2928643 on 2016/03/30 by Jack.Porter Fixed bug introdued by Ronin merge with DepthOfFieldScale setting being locked for BokehDOF #code_review: allan.bentham Change 2932773 on 2016/04/04 by Jack.Porter Reapply android Vulkan version fixes Change 2932853 on 2016/04/05 by Jack.Porter Enable VULKAN_CLEAR_SURFACE_ON_CREATE on Android to prevent assertion Change 2932998 on 2016/04/05 by Jack.Porter Native web browser widget on iOS #jira UEMOB-20 Change 2933420 on 2016/04/05 by Chris.Babcock Removed hard-coded bUseUnityBuild in UBT for Android (contributed by kosz78) #jira UE-29066 #pr #2236 #ue4 #android Change 2934315 on 2016/04/05 by Chris.Babcock Allow Android to act as server with OnlineSubsystemNull (contributed by psychogony) #jira UE-23937 #PR #1820 #ue4 #android #codereview Ryan.Gerleve Change 2935038 on 2016/04/06 by Chris.Babcock Fix OpenGLES31 compile error #ue4 #android #codereview Jack.Porter Change 2936288 on 2016/04/07 by Allan.Bentham Planar reflection captures for mobile. (UE-27426) Added mobile planar reflection flag to material. #codereview jack.porter, daniel.wright Change 2936297 on 2016/04/07 by Allan.Bentham Missed file. Planar reflection captures for mobile. (UE-27426) #codereview jack.porter, daniel.wright Change 2937763 on 2016/04/08 by Dmitriy.Dyomin Fix InstancedStaticMesh batches for ES2 (contributed by Grimmick) GitHub #2031 #jira UE-26576 #codereview Jack.Porter Change 2937863 on 2016/04/08 by Jack.Porter Merged Ronin CLs 2840392, 2860028 Allow vertex texture fetches on ES2 (requires absolute mip level) Change 2938461 on 2016/04/08 by Chris.Babcock Write Android uninstall batch files #ue4 #android Change 2939679 on 2016/04/11 by Allan.Bentham Remove bStationaryLightUsesCSMForMovableShadows from light component's UI. renamed proxy equivalent and infer its state from Inset Shadows For Movable Objects #codereview jack.porter, daniel.wright Change 2939887 on 2016/04/11 by Chris.Babcock Android ARM64 libraries #jira UEPLAT-1268 #ue4 #android Change 2940125 on 2016/04/11 by Chris.Babcock Added requirements to Arm64 and x86_64 tooltips Change 2941051 on 2016/04/12 by Allan.Bentham Fix for inverted RG channels when using filmic tonemapper with ES2. #codereview jack.porter Change 2942523 on 2016/04/13 by Chris.Babcock Add cxa_demangle build.cs instead of hiding dependency in UEBuildAndroid.cs #ue4 #android #codereview Josh.Adams Change 2942578 on 2016/04/13 by Chris.Babcock Add cxademangle dependency to Core for Android #ue4 #android #codereview Josh.Adams Change 2942997 on 2016/04/13 by Chris.Babcock Run Ant with -quiet first and run again without if there is an error for the log #ue4 #android #codereview Josh.Adams Change 2943320 on 2016/04/14 by Jack.Porter Fixed planar reflection merge errors Change 2943352 on 2016/04/14 by Jack.Porter Fix NAME_VULKAN_ES3_1_ANDROID shader format name #codereview: Rolando.Coloca Change 2943367 on 2016/04/14 by Dmitriy.Dyomin Added cvars to add or strip specific GL extensions from a driver reported extensions string #jira UE-29467 Change 2943425 on 2016/04/14 by Dmitriy.Dyomin Better logging of MobileHDR mode Change 2943461 on 2016/04/14 by Dmitriy.Dyomin Fixing HDR rendering and bloom on Galaxy S7 Change 2943493 on 2016/04/14 by Dmitriy.Dyomin Better HDR fix for devices with ES3 support Change 2943855 on 2016/04/14 by Allan.Bentham Mobile planar reflections. - currently only supports opaque materials #codereview jack.porter Change 2944721 on 2016/04/14 by Chris.Babcock Allow Vulkan-only Android builds #ue4 #android #codereview Allan.Bentham,Jack.Porter Change 2944771 on 2016/04/14 by Dmitriy.Dyomin Fixed: mesh particles crash in ES2 Change 2944827 on 2016/04/15 by Dmitriy.Dyomin Fixed: GPU particles not working on S6 with Android 6.0.1 Change 2944836 on 2016/04/15 by Jack.Porter Disable FX system calls in forward renderer when particles showflag is off Change 2944840 on 2016/04/15 by Jack.Porter Re-enabled non-radial TDeferredLightVS on ES2 for planar and put #if FEATURE_LEVEL >= FEATURE_LEVEL_SM4 around the radial shader code which was tripping up ES2. #codereview: Allan.Bentham, Chris.Babcock, Daniel.Wright Change 2944914 on 2016/04/15 by Jack.Porter Device profiles to detect Galaxy S7 Mali and Adreno variants in Vulkan mode Change 2945020 on 2016/04/15 by Gareth.Martin Cloning changes across from Dev-Landscape to Dev-Mobile due to feature deadline for 4.12. Change 2943560 on 2016/04/14 by Gareth.Martin Added ability to expand landscape bounds #jira UE-28928 #jira UE-25230 Change 2943538 on 2016/04/14 by Gareth.Martin Fix a crash with saving a level >2GB in size. There may still be other crashes with >2GB levels. Change 2943477 on 2016/04/14 by Gareth.Martin Fixed LODFalloff setting on landscape getting reset when using the "Change Landscape Component Size" tool Also moved all the LOD settings together in LandscapeProxy.h because it was messy Change 2942113 on 2016/04/13 by Gareth.Martin Updating comment to clarify behaviour of Foliage Align-To-Normal when Random-Yaw is disabled. Change 2941030 on 2016/04/12 by Gareth.Martin Cleanup and commenting Change 2940994 on 2016/04/12 by Gareth.Martin Implement random scale option for Landscape Grass. #jira UE-25743 Change 2940993 on 2016/04/12 by Gareth.Martin Remove unused BuildFlatTree function from HierarchicalInstancedStaticMeshComponent Change 2940150 on 2016/04/11 by Gareth.Martin Harden UHierarchicalInstancedStaticMeshComponent::UpdateInstanceTransform Change 2940101 on 2016/04/11 by Gareth.Martin Additional checks for bad static mesh when building the HISMC tree Change 2945560 on 2016/04/15 by Rolando.Caloca DM - Fix for newer Vulkan sdks Change 2945638 on 2016/04/15 by Chris.Babcock Fix permissions on uninstall script on Mac #jira UE-29236 #ue4 #android #lockdown Jack.Porter Change 2945856 on 2016/04/15 by Rolando.Caloca DM - vk - Fix mapped allocations on mobile #lockdown nick.penwarden [CL 2945995 by Chris Babcock in Main branch]
2016-04-15 18:19:26 -04:00
#elif PLATFORM_IOS
# include "IOS/IOSPlatformWebBrowser.h"
#elif PLATFORM_SPECIFIC_WEB_BROWSER
# include COMPILED_PLATFORM_HEADER(PlatformWebBrowser.h)
#elif WITH_CEF3
# include "CEF/CEFWebBrowserWindow.h"
#else
# define DUMMY_WEB_BROWSER 1
#endif
#define LOCTEXT_NAMESPACE "WebBrowser"
SWebBrowserView::SWebBrowserView()
{
}
SWebBrowserView::~SWebBrowserView()
{
if (BrowserWindow.IsValid())
{
BrowserWindow->OnDocumentStateChanged().RemoveAll(this);
BrowserWindow->OnNeedsRedraw().RemoveAll(this);
BrowserWindow->OnTitleChanged().RemoveAll(this);
BrowserWindow->OnUrlChanged().RemoveAll(this);
BrowserWindow->OnToolTip().RemoveAll(this);
BrowserWindow->OnShowPopup().RemoveAll(this);
BrowserWindow->OnDismissPopup().RemoveAll(this);
BrowserWindow->OnShowDialog().Unbind();
BrowserWindow->OnDismissAllDialogs().Unbind();
BrowserWindow->OnCreateWindow().Unbind();
BrowserWindow->OnCloseWindow().Unbind();
BrowserWindow->OnSuppressContextMenu().Unbind();
BrowserWindow->OnDragWindow().Unbind();
BrowserWindow->OnConsoleMessage().Unbind();
if (BrowserWindow->OnBeforeBrowse().IsBoundToObject(this))
{
BrowserWindow->OnBeforeBrowse().Unbind();
}
if (BrowserWindow->OnLoadUrl().IsBoundToObject(this))
{
BrowserWindow->OnLoadUrl().Unbind();
}
if (BrowserWindow->OnBeforePopup().IsBoundToObject(this))
{
BrowserWindow->OnBeforePopup().Unbind();
}
}
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
TSharedPtr<SWindow> SlateParentWindow = SlateParentWindowPtr.Pin();
if (SlateParentWindow.IsValid())
{
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
SlateParentWindow->GetOnWindowDeactivatedEvent().RemoveAll(this);
}
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
if (SlateParentWindow.IsValid())
{
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
SlateParentWindow->GetOnWindowActivatedEvent().RemoveAll(this);
}
}
void SWebBrowserView::Construct(const FArguments& InArgs, const TSharedPtr<IWebBrowserWindow>& InWebBrowserWindow)
{
OnLoadCompleted = InArgs._OnLoadCompleted;
OnLoadError = InArgs._OnLoadError;
OnLoadStarted = InArgs._OnLoadStarted;
OnTitleChanged = InArgs._OnTitleChanged;
OnUrlChanged = InArgs._OnUrlChanged;
OnBeforeNavigation = InArgs._OnBeforeNavigation;
OnLoadUrl = InArgs._OnLoadUrl;
OnShowDialog = InArgs._OnShowDialog;
OnDismissAllDialogs = InArgs._OnDismissAllDialogs;
OnBeforePopup = InArgs._OnBeforePopup;
OnCreateWindow = InArgs._OnCreateWindow;
OnCloseWindow = InArgs._OnCloseWindow;
AddressBarUrl = FText::FromString(InArgs._InitialURL);
PopupMenuMethod = InArgs._PopupMenuMethod;
OnUnhandledKeyDown = InArgs._OnUnhandledKeyDown;
OnUnhandledKeyUp = InArgs._OnUnhandledKeyUp;
OnUnhandledKeyChar = InArgs._OnUnhandledKeyChar;
OnConsoleMessage = InArgs._OnConsoleMessage;
BrowserWindow = InWebBrowserWindow;
if(!BrowserWindow.IsValid())
{
static bool AllowCEF = !FParse::Param(FCommandLine::Get(), TEXT("nocef"));
bool bBrowserEnabled = true;
GConfig->GetBool(TEXT("Browser"), TEXT("bEnabled"), bBrowserEnabled, GEngineIni);
if (AllowCEF && bBrowserEnabled)
{
FCreateBrowserWindowSettings Settings;
Settings.InitialURL = InArgs._InitialURL;
Settings.bUseTransparency = InArgs._SupportsTransparency;
Settings.bInterceptLoadRequests = InArgs._InterceptLoadRequests;
Settings.bThumbMouseButtonNavigation = InArgs._SupportsThumbMouseButtonNavigation;
Settings.ContentsToLoad = InArgs._ContentsToLoad;
Settings.bShowErrorMessage = InArgs._ShowErrorMessage;
Settings.BackgroundColor = InArgs._BackgroundColor;
Copying //UE4/Portal-Staging to //UE4/Main (Source: //Portal/Main/Engine @ 8661229) Change 8553543 by Wes.Fudala We now set a fixed value of 24 to CEF screenInfo colorDepth when off screen rendering is enabled. Change 8235770 by Wes.Fudala Fix for CEFJsScripting memory stomp and memory alignment errors called out by the stomp memory allocator when running with -stompmalloc on the commandline. Change 8065597 by Leigh.Swift BuildPatchServices: Improving ChunkBuildDirectory behaviour when dealing with empty build or builds only containing empty files. This is now fully supported as part of the generation flow rather than an early detected edge case. Change 7641628 by Leigh.Swift BuildPatchServices: Tweaks to serialisation safety. BuildPatchServices: DiskChunkStore fix for crash when chunkdump serialisation fails due to disk space. Change 7436869 by Leigh.Swift BuildPatchServices: Fix regression in BPT package chunks for cloud save improvements now require message pumping. Change 7326553 by Wes.Fudala BuildPatchServices: Attempt to restore functionality of the -SkipBuildPatchPrereq commandline. This stopped functioning in CL# 6655502 with the BPS DLC related refactors. The issue was reported by a number of users that were relying on this commandline as a last resort workaround for prereq install issues. Change 7323945 by Leigh.Swift BuildPatchServices: BuildPatchTool: Install time coefficient values exposed by DiffManifests. This gives an indicative install duration. The time is not necessarily accurate, but the simulation is a constant and so the value is highly comparable between different builds. Change 7310352 by Antony.Carter BuildPatchServices: Adding support for overriding http path for chunk requests. This allows the ability to support signed urls when downloading patch data. Change 7095282 by Leigh.Swift BuildPatchServices: Fix regression with manifests that have no core files. Change 7092198 by leigh.swift BuildPatchServices: Reuse existing code from FBuildPatchAppManifest::GetChunkShaHash in FBuildPatchManifestSet::GetChunkShaHash. This fixes an issue where older manifest files that did not ship with chunk sha values in them, can skip sha validation of chunks like pre-DLC launcher did. Change 6959115 by Wes.Fudala Added functionality that will optionally expose embedded browser console logs to the client. Change 6835841 by Leigh.Swift BuildPatchServices: Rearranging manifest save logic to avoid unnecessary seeking forwards, which avoids an assert when undetected write failures occur. Change 6684994 by Leigh.Swift BuildPatchServices: Don't clean empty directories if staging only. Change 6655502 by Mike.Erickson, Leigh.Swift, Wes.Fudala BuildPatchServices: Restructuring how installers are configured and make use of manifest files in order to combine multiple actions on an installation directory into one installer. This resembles a feature set for a better DLC installation experience. Change 6404031 by Richard.Fawcett BuildPatchTool: Only append ".manifest" to output filename if output filename has been specified on the command line. This was causing a manifest file called literally ".manifest" to be output to the clouddir if -OutputFilename was not specified. Change 6077240 by Wes.Fudala Execution of browser resource load complete delegate now happens on the main thread. Change 6076171 by Leigh.Swift BuildPatchTool: PatchGeneration: ChunkDeltaOptimise: PackageChunks: Improved corrupt output protection against ill timed taskkill, by serialising to temp filename, and then rename on success. BuildPatchTool: PatchGeneration: Manifest file extension added if not provided, fixing an oversight and inconsistency with other mode behaviours. BuildPatchTool: Compactify: Only warn when failing to get a file size, if the file still exists. Otherwise log instead. Change 6049003 by Leigh.Swift BuildPatchServices: Adding ProcessRequiredDiskSpace to Launcher.Install.Stats which represents how much disk space the install/update process needed to complete. BuildPatchServices: Adding ProcessAvailableDiskSpace to Launcher.Install.Stats which represents how much disk space was available at the time of checking required disk space. Change 5915157 by Leigh.Swift BuildPatchTool: Adding a statistic to diffmanifests for temporary disk space requirement to apply the patch. Change 5934838 by Leigh.Swift BuildPatchTool: PackageChunks: Adding support to provide a tagset for the previous build manifest when producing chunkdbs. This allows expanding the chunks saved out to cover tagsets not installed in the previous build. Change 5838666 by wes.fudala Browser can now bubble up the state of completed web resource loads. Change 5689493 by Leigh.Swift Adding new x86 and x64 MS VC141 CRT redist, version 14.16.27012 Change 5689462 by Leigh.Swift Fixing process handle leaks on windows. Core was leaking for getting an application name. Change 5500917 by Leigh.Swift BuildPatchTool: Adding new arg DiffAbortThreshold to ChunkDeltaOptimise mode which allows skipping of the operation if the original delta is so large that it would take too long to process, and likely have little benefit. BuildPatchTool: Switching some Log output to use Display so that it will appear in EC and CMD windows. Change 5337482 by Leigh.Swift BuildPatchTool: Fix for DiffManifests mode not accurately representing delta size for tagged install sets. Change 5261246 by Leigh.Swift BuildPatchServices: Fix for file download needing to mock response codes for higher layer statistics code which tracks data sizes and speeds. This is a regression from previous change to correct download failure vs corruption statistics. Change 5224725 by Leigh.Swift BuildPatchServices: Fix for delta download of more than 0 bytes when no update is necessary. BuildPatchServices: Skip requesting delta metafile if no file changes are actually required for a patch. BuildPatchTool: Reduce unnecessary data produced by BPT ChunkDeltaOptimise mode. Change 5010941 by Mike.Erickson BuildPatchServices: Add download scaling based on average speed per request, maximum count, and download health. Change 5010845 by Wes.Fudala BuildPatchServices: IDownload refactored to have specific request and response success functions, to make it clearer that a successful request does not mean the response was also good. BuildPatchServices: Fixed issues with download failures reporting as corruptions. Change 5000643 by Wes.Hunt Remove HttpServiceTracker from UE4. Change 4884381 by Leigh.Swift BuildPatchTool: Fix for Package Chunks mode hanging when no chunks were required. Change 4848675 by Justin.Sargent, Leigh.Swift Speculative fixes for graphics device lost related crash, by adding additional d3d api result checks. Improved logging for graphics device lost handling. Improved logging for tracking down common font loading failure resulting in an ensure. Change 4831134 by Leigh.Swift BuildPatchTool: Fix for crash in patchgeneration when fast-forward path replays no match. Change 4801714 by Wes.Fudala Fix for CEF issue encountered when building using Mac Mojave + XCode10. Change 4719149 by Leigh.Swift BuildPatchTool: PatchGeneration mode cyclic data optimisation, reduces SHA calculation requirement counts for cyclic data. BuildPatchTool: PatchGeneration mode fix for a bug causing non-optimal match insertion idx searching when there are 10k+ matches per scanner. Change 4680963 by Leigh.Swift BuildPatchTool: ChunkDeltaOptimise mode is now FeatureLevel upgrade / downgrade aware. Change 4680947 by Leigh.Swift BuildPatchTool: Compactify speed improvements for massive network cloud directories. Change 4656991 by Leigh.Swift BuildPatchServices: Make sure chunk writer robustly discovers if a chunk fails to save out. Change 4647815 by Leigh.Swift Upping the minimum wait time for UdpMessageBeacon thread so that it will not always wait 0ms when network sends are failing, reducing disconnect CPU usage. Adding configurable tick rate logic to XmppConnectionJingle thread. It will now default to 100Hz max. Change 4627355 by Michael.Trepka Fixed a problem with CEF being unable to find locale pak files on Mac for certain language/region combinations Change 4620800 by Leigh.Swift Fix for CEF crash when disabling a web window that has not yet got a parent window. There's no need to worry about focus in this case. Change 4590207 by Leigh.Swift BuildPatchTool: PackageChunks mode now supports FeatureLevel arg Change 4590103 by leigh.swift BuildPatchTool: Adding new mode ChunkDeltaOptimise which reducing the download size when patching between two specific builds in a specific direction. BuildPatchTool: Updated Enumeration, DiffManifests, Compactify, PackageChunks, and VerifyChunks modes to take account of new delta data. BuildPatchServices: Installers now have a single shared memory chunk store, which reduces the requirement for booting Change 4590089 by Leigh.Swift BuildPatchTool: Adding new mode ChunkDeltaOptimise which reducing the download size when patching between two specific builds in a specific direction. BuildPatchTool: Updated Enumeration, DiffManifests, Compactify, PackageChunks, and VerifyChunks modes to take account of new delta data. BuildPatchServices: Installers now have a single shared memory chunk store, which reduces the requirement for booting Change 4341076 by Leigh.Swift BuildPatchServices: Making FBuildPatchAppManifest::GetRemovableFiles more robust to handle directories with or without trailing slash. Change 4331754 by Leigh.Swift BuildPatchTool: Added support for selecting ChunkWindowSize when generating patches. BuildPatchTool: Added support for providing the FeatureLevel command-line argument to indicate the data version that should be saved out by patch generation. This warns about defaulting to LatestJson if not provided. BuildPatchTool: Added support for generating patches with recognition for any chunks with any ChunkWindowSize found in the provided CloudDir. BuildPatchTool: Added command-line -IgnoreOtherWindowSizes param which if provided, the generation code will only accept chunk matches that are the same as ChunkWindowSize. BuildPatchServices: Fixes for supporting installations that use any ChunkWindowSize. BuildPatchServices: New manifest file format to reduce file size, this is now raw compressed binary data. #lockdown Nick.Penwarden #rb none [CL 8675597 by Leigh Swift in Main branch]
2019-09-13 13:24:23 -04:00
Settings.BrowserFrameRate = InArgs._BrowserFrameRate;
Settings.Context = InArgs._ContextSettings;
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
Settings.AltRetryDomains = InArgs._AltRetryDomains;
// IWebBrowserModule::Get() was already callled in WebBrowserWidgetModule.cpp so we don't need to force the load again here
if (IWebBrowserModule::IsAvailable() && IWebBrowserModule::Get().IsWebModuleAvailable())
{
BrowserWindow = IWebBrowserModule::Get().GetSingleton()->CreateBrowserWindow(Settings);
}
}
}
SlateParentWindowPtr = InArgs._ParentWindow;
if (BrowserWindow.IsValid())
{
#ifndef DUMMY_WEB_BROWSER
// The inner widget creation is handled by the WebBrowserWindow implementation.
const auto& BrowserWidgetRef = static_cast<FWebBrowserWindow*>(BrowserWindow.Get())->CreateWidget();
ChildSlot
[
BrowserWidgetRef
];
BrowserWidget = BrowserWidgetRef;
#endif
if(OnCreateWindow.IsBound())
{
BrowserWindow->OnCreateWindow().BindSP(this, &SWebBrowserView::HandleCreateWindow);
}
if(OnCloseWindow.IsBound())
{
BrowserWindow->OnCloseWindow().BindSP(this, &SWebBrowserView::HandleCloseWindow);
}
BrowserWindow->OnDocumentStateChanged().AddSP(this, &SWebBrowserView::HandleBrowserWindowDocumentStateChanged);
BrowserWindow->OnNeedsRedraw().AddSP(this, &SWebBrowserView::HandleBrowserWindowNeedsRedraw);
BrowserWindow->OnTitleChanged().AddSP(this, &SWebBrowserView::HandleTitleChanged);
BrowserWindow->OnUrlChanged().AddSP(this, &SWebBrowserView::HandleUrlChanged);
BrowserWindow->OnToolTip().AddSP(this, &SWebBrowserView::HandleToolTip);
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
OnCreateToolTip = InArgs._OnCreateToolTip;
if (!BrowserWindow->OnBeforeBrowse().IsBound())
{
BrowserWindow->OnBeforeBrowse().BindSP(this, &SWebBrowserView::HandleBeforeNavigation);
}
else
{
check(!OnBeforeNavigation.IsBound());
}
if (!BrowserWindow->OnLoadUrl().IsBound())
{
BrowserWindow->OnLoadUrl().BindSP(this, &SWebBrowserView::HandleLoadUrl);
}
else
{
check(!OnLoadUrl.IsBound());
}
if (!BrowserWindow->OnBeforePopup().IsBound())
{
BrowserWindow->OnBeforePopup().BindSP(this, &SWebBrowserView::HandleBeforePopup);
}
else
{
check(!OnBeforePopup.IsBound());
}
if (!BrowserWindow->OnUnhandledKeyDown().IsBound())
{
BrowserWindow->OnUnhandledKeyDown().BindSP(this, &SWebBrowserView::UnhandledKeyDown);
}
if (!BrowserWindow->OnUnhandledKeyUp().IsBound())
{
BrowserWindow->OnUnhandledKeyUp().BindSP(this, &SWebBrowserView::UnhandledKeyUp);
}
if (!BrowserWindow->OnUnhandledKeyChar().IsBound())
{
BrowserWindow->OnUnhandledKeyChar().BindSP(this, &SWebBrowserView::UnhandledKeyChar);
}
BrowserWindow->OnShowDialog().BindSP(this, &SWebBrowserView::HandleShowDialog);
BrowserWindow->OnDismissAllDialogs().BindSP(this, &SWebBrowserView::HandleDismissAllDialogs);
BrowserWindow->OnShowPopup().AddSP(this, &SWebBrowserView::HandleShowPopup);
BrowserWindow->OnDismissPopup().AddSP(this, &SWebBrowserView::HandleDismissPopup);
BrowserWindow->OnSuppressContextMenu().BindSP(this, &SWebBrowserView::HandleSuppressContextMenu);
OnSuppressContextMenu = InArgs._OnSuppressContextMenu;
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
BrowserWindow->OnDragWindow().BindSP(this, &SWebBrowserView::HandleDrag);
OnDragWindow = InArgs._OnDragWindow;
if (!BrowserWindow->OnConsoleMessage().IsBound())
{
BrowserWindow->OnConsoleMessage().BindSP(this, &SWebBrowserView::HandleConsoleMessage);
}
BrowserViewport = MakeShareable(new FWebBrowserViewport(BrowserWindow));
#if WITH_CEF3
BrowserWidget->SetViewportInterface(BrowserViewport.ToSharedRef());
#endif
// If we could not obtain the parent window during widget construction, we'll defer and keep trying.
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
SetupParentWindowHandlers();
}
else
{
OnLoadError.ExecuteIfBound();
}
}
Copying WEX-Staging @ (WEX/Main @ 3740665) to //UE4/Main #lockdown Nick.Penwarden #rb none Copying //UE4/WEX-Staging to //UE4/Dev-Main (Source: //WEX/Main/Engine @ 3740665) #lockdown Nick.Penwarden Change 3739326 by Ben.Zeigler Change iteration order of depends nodes so it lists hard management references before soft management references, this is better for the UI when lots of references exist Update text for loading custom asset registry bin to be clearer Change 3739000 by John.Opila Caching optimization for text widget desired size. Change 3713551 by David.Nikdel Allow Set Properties to recognize Json array values as importable. Change 3712485 by Josh.May Added Pete's fix for the PLATFORM_TVOS/PLATFORM_IOS #define conflict introduced by mach-o/loader.h Change 3700174 by Chris.Babcock Fix setFilters crash on some Android devices Change 3691531 by Josh.May Fixed an intermittent crash that occurred when opening the AssetAuditBrower. AssetManagerEditorModule's CurrentRegistrySource was getting set too early, becoming invalid in the event that RegistrySourceMap is resized. Change 3688409 by Gil.Gribb Critical fix for an extremely rare race condition on async IO. Change 3687529 by josh.may Force layout recalculations for single-pass layout SScaleBoxes when their final scale is zero. This tends to occur in calls to SearchForWidgetRecursively before a SScaleBox's AllottedGeometry has been calculated. Change 3684788 by Peter.Sauerbrei fix for archive generation on the build machines Change 3684320 by john.opila Workaround for widgets disappering. Ensuring scale is never 0 so we don't get divide by zero. Change 3684042 by Peter.Sauerbrei more logging to figure out why there is not data in the Applicaiton diretory of the archive Change 3678620 by Ben.Zeigler Minor text changes to size map Change 3678314 by Ben.Zeigler Add Make Collection With References and Audit References to Size Map to easily allow inspecting the specific set of filtered packages in other tools Change 3677875 by Ben.Zeigler Fix crash in size map from keeping reference to node after map was resized, and undo the Name->DisplayName rename as it could affect licensees Change 3676899 by Peter.Sauerbrei narrowed down to the plist data, trying to figure out if it is missing or not Change 3676570 by Peter.Sauerbrei more logging to track down the archive error Change 3676293 by Peter.Sauerbrei fix for compile failure on IOS Change 3676172 by Peter.Sauerbrei potential fix for missing icons in the ipa when run through the build machines Change 3673544 by Ben.Zeigler Sort AllChunksInfo alphabetically so the order is consistent accross build and platforms to facillitate diffing Change 3671597 by Peter.Sauerbrei Merging //UE4/Dev-Mobile/Engine/... to //WEX/Main/Engine/... Change 3670932 by Ben.Zeigler Change it so cooking with the AssetManager writes out AllChunksInfo.csv next to the DevelopmentAssetRegistry, but not the per-chunk csv files as those are not useful. Also made the size counts platform accurate Change 3670906 by Peter.Sauerbrei update WEX for building with Xcode 9 Change 3660026 by Josh.May Moved SWebBrowserView's parent window "searches" to OnPaint. There's definitely something wrong with FindWidgetWindow... Even after deferring SWebBrowserView's calls to FindWidgetWindow until first Tick, the same widget layout artifacts could occur after opening multiple SWebBrowserViews. And, as Nick pointed out in the related email thread, this approach is also more efficient. Change 3655411 by Josh.May Ensure SWebBrowserView's parent window searches are deferred until after Construct. We haven't puzzled through it yet, but calling FindWidgetWindow during Construct seems to corrupt some Slate state. Deferring this search until later gets around the issue and makes sense anyway, given the widget isn't added to the hierarchy until after Construct. Change 3655407 by John.Opila Sneaking in some stats for SpawnActor. Change 3654649 by Ben.Zeigler Refactor SizeMap and ReferenceViewer into the AssetManagerEditor plugin, and delete the old modules. Fix SizeMap crash that I temporarily added. TreeMap is initialized weirdly Change 3648912 by Ben.Zeigler First half of changes to refactor sizemap/reference viewer into the asset manager editor plugin Add GetAllContentBrowserCommandExtenders to ContentBrowserModule that allows registering commands/keybinds to extend the content browser via plugins Add GetSharedMenu/ToolbarExtensibilityManager to AssetEditorToolkit that allows extending the generic asset editor via plugin Move the code to spawn the Reference Viewer and SizeMap into the AssetManagerEditor plugin so these UIs can be tightly bound and share data. This also enables keybinds for Size Map and Audit. Remove size map from the save as dialog, it created a special modal size map window that will not work after my refactor Change 3639419 by Ben.Marsh Use DirectoryInfo instead of DirectoryReference to enumerate projects. Tracking down UHT compile failures on Mac. Change 3638619 by David.Nikdel AsyncLoading: Suggested change by Gil to add lock prior to changing LoadPhase to WaitingForHeader (presumably to make FArchiveAsync2::StartReadingHeader's assumption about locking true) Change 3633562 by Chris.Babcock Update Android virtual keyboard support Change 3630564 by Peter.Sauerbrei fix for the manifest stage problem Change 3629577 by Chris.Babcock Fix merge errors in GameActivity.java Change 3629154 by David.Nikdel Disable debug device output in shipping builds (even if logs are enabled) Change 3626542 by John.Opila Back out changelist 3603452 Undoing the OpenGL load changes as the initial load time was just too damn high! Change 3620472 by David.Nikdel Fix from Nick to fix a BP that crashes on Compile Change 3618090 by Josh.May Reset inertial scrolling for SScrollboxes and STableView-based Slate widgets when scrolling to specific scroll offsets. Change 3613980 by Chris.Babcock Fix issue with Android password keyboard input Change 3603825 by John.Opila Shader change doesn't seem to like standalone PC. Change 3603452 by John.Opila Moving openGL shader compilation into loading instead of at the last minute. Change 3593008 by David.Nikdel Merging CL 3504471 from //Fortnite/Dev-Cinematics/Engine/... to //WEX/Main/Engine/... ---------------------------------------- Sequencer: Delay mouse capture until drag for sequencer time slider - Fixes context menus not opening as a result of mouse capture being taken on mouse down ================================================================================================= THESE CHANGES TOUCH MULTIPLE PLATFORMS ================================================================================================= Change 3739931 by Ben.Zeigler changes to some asset manager code modified on WEX, and fix several FStringAssetReference->FSoftObjectPath Change 3723451 by Josh.May Exposed OnBeforePopup to UMG and Blueprint for UWebBrowser. This is triggered by the CEFBrowserHandler when attempting to open hyperlinks targeting _blank and, when not handled, would result in the page never loading. Added OnBeforePopup handling for the HTMLNewsWidget, ensuring the URLs are opened in an external browser. Change 3711256 by Dmitriy.Dyomin Fixed: Friend list invalidation panel relative transform caching issues Also fixed issues with and set slate.cacherenderdata=0 for better batching Change 3698695 by Josh.May Made the UMG default font overridable via config, allowing us to replace it with a game-scope localized Font asset. If there's a better place for this mechanism/accessor to live, please let me know. Added a new 'Default' font that replicates '/Engine/EngineFonts/Roboto'. This also has a localized Font asset variant for zh-Hans. Change 3676085 by Josh.May Implemented MulticastBroadcastReceiver, a BroadcastReceiver capable of "multicasting" intents to other receivers. AppsFlyer defines a similar MultiInstallBroadcastReceiver class specific to the INSTALL_REFERRER intent, but it MUST be the very first one defined (cannot be guaranteed in our build pipeline AFAIK). Added MulticastBroadcastReceiver (for INSTALL_REFERRER) to the AndroidManifest generation logic, allowing BOTH Adjust and AppsFlyer to receive the intent. Added dev channel support for AndroidAppsFlyer, enabled conditionally based on shipping/distribution and whether or not a valid AppsFlyerDevChannel name is specified. For WEX, our dev channel is WEX_Dev. Fixed AppsFlyer_EventAttribute's Java class lookups and constructor signature. Change 3670860 by Ben.Zeigler First version of improvements to tools to analyze chunks Size Map and Reference Viewer now support reading cooked asset data and displaying chunks. Changing the platform dropdown in the Asset Audit window switches the other windows as well Asset Audit window now has "Add Chunks" button, and selecting AllTypes in the Primary Asset drop down will add all primary assets Size Map now shows Disk Size by default, and supports a right click context menu Significant UI improvements to all 3 tools, including keybind support Split Manage references into Hard and Soft, where Hard are set explicitly and soft are inherited. This allows determining why an asset was included in a chunk/primary asset When the AssetManager builds management information for the audit browser/cooker, it now precomputes a chunk mapping for relevant assets. PackageChunkType is used to refer to these virtual primary assets Add callback to content browser delegates to handle adding arbitrary FAssetData to an asset view, used to show chunks Several changes to the ITreeMap UI used by size map Change 3670290 by Josh.May Added AppleAppID configs for AppsFlyer. Added AdSupport and iAd frameworks for IOSAppsFlyer. According to the AppsFlyer documentation, these are required for IDFA and Apple Search Ads tracking. Change 3643531 by Peter.Sauerbrei fix for save game location and certain data backed up to the cloud when it shouldn't Change 3629303 by Ben.Zeigler Merge fix for shared ptr corruption in async loading thread from Main, and enable asnyc loading thread for WEX Copy of CL #3623261 and 3625806 Change 3629219 by Peter.Sauerbrei Merging using WEX_Main_to_UE4_WEX_Staging bringing over the files that Stan didn't have access to Change 3629063 by Stanley.Hayes Engine Merge: Merging using WEX_Main_to_UE4_WEX_Staging(flipped) Change 3618988 by Josh.May Reimplemented DevicePerformanceBucket-based WorldMap class selection to account for the WorldMap actor being pre-serialized into the UMAP. On a related note, ChildActorComponents marked as "editor only" now mark their spawned Actors as Transient to prevent them from getting serialized at cook-time. Change 3597981 by Josh.May Converted WExpCampaignDefinition's RegionDefinition refs back to hard references and, to compensate, converted WExpZoneDefinition's ZoneBoss refs to soft references. This moves the RegionDefinitions and ZoneDefinitions from chunk 2 to chunk 1 without pulling in assets for the ZoneBosses. This also allows us to grab the ZoneBoss refs during UWExpAssetManager::GetMainMenuAssetList. Reworked UWExpAssetManager::GetMainMenuAssetList and UWExpAssetManager::GetLevelAssetList to build more "complete" asset lists by expanding lists of PrimaryAssetIds. Tweaked the WorldMap's ZoneBoss spawning to account for the switch to AssetPtrs. Change 3581214 by Josh.Markiewicz added cookie deletion for Google on logout [CL 3750870 by Stanley Hayes in Main branch]
2017-11-10 17:20:53 -05:00
int32 SWebBrowserView::OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const
{
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
if (!SlateParentWindowPtr.IsValid())
{
SWebBrowserView* MutableThis = const_cast<SWebBrowserView*>(this);
MutableThis->SetupParentWindowHandlers();
}
Copying WEX-Staging @ (WEX/Main @ 3740665) to //UE4/Main #lockdown Nick.Penwarden #rb none Copying //UE4/WEX-Staging to //UE4/Dev-Main (Source: //WEX/Main/Engine @ 3740665) #lockdown Nick.Penwarden Change 3739326 by Ben.Zeigler Change iteration order of depends nodes so it lists hard management references before soft management references, this is better for the UI when lots of references exist Update text for loading custom asset registry bin to be clearer Change 3739000 by John.Opila Caching optimization for text widget desired size. Change 3713551 by David.Nikdel Allow Set Properties to recognize Json array values as importable. Change 3712485 by Josh.May Added Pete's fix for the PLATFORM_TVOS/PLATFORM_IOS #define conflict introduced by mach-o/loader.h Change 3700174 by Chris.Babcock Fix setFilters crash on some Android devices Change 3691531 by Josh.May Fixed an intermittent crash that occurred when opening the AssetAuditBrower. AssetManagerEditorModule's CurrentRegistrySource was getting set too early, becoming invalid in the event that RegistrySourceMap is resized. Change 3688409 by Gil.Gribb Critical fix for an extremely rare race condition on async IO. Change 3687529 by josh.may Force layout recalculations for single-pass layout SScaleBoxes when their final scale is zero. This tends to occur in calls to SearchForWidgetRecursively before a SScaleBox's AllottedGeometry has been calculated. Change 3684788 by Peter.Sauerbrei fix for archive generation on the build machines Change 3684320 by john.opila Workaround for widgets disappering. Ensuring scale is never 0 so we don't get divide by zero. Change 3684042 by Peter.Sauerbrei more logging to figure out why there is not data in the Applicaiton diretory of the archive Change 3678620 by Ben.Zeigler Minor text changes to size map Change 3678314 by Ben.Zeigler Add Make Collection With References and Audit References to Size Map to easily allow inspecting the specific set of filtered packages in other tools Change 3677875 by Ben.Zeigler Fix crash in size map from keeping reference to node after map was resized, and undo the Name->DisplayName rename as it could affect licensees Change 3676899 by Peter.Sauerbrei narrowed down to the plist data, trying to figure out if it is missing or not Change 3676570 by Peter.Sauerbrei more logging to track down the archive error Change 3676293 by Peter.Sauerbrei fix for compile failure on IOS Change 3676172 by Peter.Sauerbrei potential fix for missing icons in the ipa when run through the build machines Change 3673544 by Ben.Zeigler Sort AllChunksInfo alphabetically so the order is consistent accross build and platforms to facillitate diffing Change 3671597 by Peter.Sauerbrei Merging //UE4/Dev-Mobile/Engine/... to //WEX/Main/Engine/... Change 3670932 by Ben.Zeigler Change it so cooking with the AssetManager writes out AllChunksInfo.csv next to the DevelopmentAssetRegistry, but not the per-chunk csv files as those are not useful. Also made the size counts platform accurate Change 3670906 by Peter.Sauerbrei update WEX for building with Xcode 9 Change 3660026 by Josh.May Moved SWebBrowserView's parent window "searches" to OnPaint. There's definitely something wrong with FindWidgetWindow... Even after deferring SWebBrowserView's calls to FindWidgetWindow until first Tick, the same widget layout artifacts could occur after opening multiple SWebBrowserViews. And, as Nick pointed out in the related email thread, this approach is also more efficient. Change 3655411 by Josh.May Ensure SWebBrowserView's parent window searches are deferred until after Construct. We haven't puzzled through it yet, but calling FindWidgetWindow during Construct seems to corrupt some Slate state. Deferring this search until later gets around the issue and makes sense anyway, given the widget isn't added to the hierarchy until after Construct. Change 3655407 by John.Opila Sneaking in some stats for SpawnActor. Change 3654649 by Ben.Zeigler Refactor SizeMap and ReferenceViewer into the AssetManagerEditor plugin, and delete the old modules. Fix SizeMap crash that I temporarily added. TreeMap is initialized weirdly Change 3648912 by Ben.Zeigler First half of changes to refactor sizemap/reference viewer into the asset manager editor plugin Add GetAllContentBrowserCommandExtenders to ContentBrowserModule that allows registering commands/keybinds to extend the content browser via plugins Add GetSharedMenu/ToolbarExtensibilityManager to AssetEditorToolkit that allows extending the generic asset editor via plugin Move the code to spawn the Reference Viewer and SizeMap into the AssetManagerEditor plugin so these UIs can be tightly bound and share data. This also enables keybinds for Size Map and Audit. Remove size map from the save as dialog, it created a special modal size map window that will not work after my refactor Change 3639419 by Ben.Marsh Use DirectoryInfo instead of DirectoryReference to enumerate projects. Tracking down UHT compile failures on Mac. Change 3638619 by David.Nikdel AsyncLoading: Suggested change by Gil to add lock prior to changing LoadPhase to WaitingForHeader (presumably to make FArchiveAsync2::StartReadingHeader's assumption about locking true) Change 3633562 by Chris.Babcock Update Android virtual keyboard support Change 3630564 by Peter.Sauerbrei fix for the manifest stage problem Change 3629577 by Chris.Babcock Fix merge errors in GameActivity.java Change 3629154 by David.Nikdel Disable debug device output in shipping builds (even if logs are enabled) Change 3626542 by John.Opila Back out changelist 3603452 Undoing the OpenGL load changes as the initial load time was just too damn high! Change 3620472 by David.Nikdel Fix from Nick to fix a BP that crashes on Compile Change 3618090 by Josh.May Reset inertial scrolling for SScrollboxes and STableView-based Slate widgets when scrolling to specific scroll offsets. Change 3613980 by Chris.Babcock Fix issue with Android password keyboard input Change 3603825 by John.Opila Shader change doesn't seem to like standalone PC. Change 3603452 by John.Opila Moving openGL shader compilation into loading instead of at the last minute. Change 3593008 by David.Nikdel Merging CL 3504471 from //Fortnite/Dev-Cinematics/Engine/... to //WEX/Main/Engine/... ---------------------------------------- Sequencer: Delay mouse capture until drag for sequencer time slider - Fixes context menus not opening as a result of mouse capture being taken on mouse down ================================================================================================= THESE CHANGES TOUCH MULTIPLE PLATFORMS ================================================================================================= Change 3739931 by Ben.Zeigler changes to some asset manager code modified on WEX, and fix several FStringAssetReference->FSoftObjectPath Change 3723451 by Josh.May Exposed OnBeforePopup to UMG and Blueprint for UWebBrowser. This is triggered by the CEFBrowserHandler when attempting to open hyperlinks targeting _blank and, when not handled, would result in the page never loading. Added OnBeforePopup handling for the HTMLNewsWidget, ensuring the URLs are opened in an external browser. Change 3711256 by Dmitriy.Dyomin Fixed: Friend list invalidation panel relative transform caching issues Also fixed issues with and set slate.cacherenderdata=0 for better batching Change 3698695 by Josh.May Made the UMG default font overridable via config, allowing us to replace it with a game-scope localized Font asset. If there's a better place for this mechanism/accessor to live, please let me know. Added a new 'Default' font that replicates '/Engine/EngineFonts/Roboto'. This also has a localized Font asset variant for zh-Hans. Change 3676085 by Josh.May Implemented MulticastBroadcastReceiver, a BroadcastReceiver capable of "multicasting" intents to other receivers. AppsFlyer defines a similar MultiInstallBroadcastReceiver class specific to the INSTALL_REFERRER intent, but it MUST be the very first one defined (cannot be guaranteed in our build pipeline AFAIK). Added MulticastBroadcastReceiver (for INSTALL_REFERRER) to the AndroidManifest generation logic, allowing BOTH Adjust and AppsFlyer to receive the intent. Added dev channel support for AndroidAppsFlyer, enabled conditionally based on shipping/distribution and whether or not a valid AppsFlyerDevChannel name is specified. For WEX, our dev channel is WEX_Dev. Fixed AppsFlyer_EventAttribute's Java class lookups and constructor signature. Change 3670860 by Ben.Zeigler First version of improvements to tools to analyze chunks Size Map and Reference Viewer now support reading cooked asset data and displaying chunks. Changing the platform dropdown in the Asset Audit window switches the other windows as well Asset Audit window now has "Add Chunks" button, and selecting AllTypes in the Primary Asset drop down will add all primary assets Size Map now shows Disk Size by default, and supports a right click context menu Significant UI improvements to all 3 tools, including keybind support Split Manage references into Hard and Soft, where Hard are set explicitly and soft are inherited. This allows determining why an asset was included in a chunk/primary asset When the AssetManager builds management information for the audit browser/cooker, it now precomputes a chunk mapping for relevant assets. PackageChunkType is used to refer to these virtual primary assets Add callback to content browser delegates to handle adding arbitrary FAssetData to an asset view, used to show chunks Several changes to the ITreeMap UI used by size map Change 3670290 by Josh.May Added AppleAppID configs for AppsFlyer. Added AdSupport and iAd frameworks for IOSAppsFlyer. According to the AppsFlyer documentation, these are required for IDFA and Apple Search Ads tracking. Change 3643531 by Peter.Sauerbrei fix for save game location and certain data backed up to the cloud when it shouldn't Change 3629303 by Ben.Zeigler Merge fix for shared ptr corruption in async loading thread from Main, and enable asnyc loading thread for WEX Copy of CL #3623261 and 3625806 Change 3629219 by Peter.Sauerbrei Merging using WEX_Main_to_UE4_WEX_Staging bringing over the files that Stan didn't have access to Change 3629063 by Stanley.Hayes Engine Merge: Merging using WEX_Main_to_UE4_WEX_Staging(flipped) Change 3618988 by Josh.May Reimplemented DevicePerformanceBucket-based WorldMap class selection to account for the WorldMap actor being pre-serialized into the UMAP. On a related note, ChildActorComponents marked as "editor only" now mark their spawned Actors as Transient to prevent them from getting serialized at cook-time. Change 3597981 by Josh.May Converted WExpCampaignDefinition's RegionDefinition refs back to hard references and, to compensate, converted WExpZoneDefinition's ZoneBoss refs to soft references. This moves the RegionDefinitions and ZoneDefinitions from chunk 2 to chunk 1 without pulling in assets for the ZoneBosses. This also allows us to grab the ZoneBoss refs during UWExpAssetManager::GetMainMenuAssetList. Reworked UWExpAssetManager::GetMainMenuAssetList and UWExpAssetManager::GetLevelAssetList to build more "complete" asset lists by expanding lists of PrimaryAssetIds. Tweaked the WorldMap's ZoneBoss spawning to account for the switch to AssetPtrs. Change 3581214 by Josh.Markiewicz added cookie deletion for Google on logout [CL 3750870 by Stanley Hayes in Main branch]
2017-11-10 17:20:53 -05:00
int32 Layer = SCompoundWidget::OnPaint(Args, AllottedGeometry, MyCullingRect, OutDrawElements, LayerId, InWidgetStyle, bParentEnabled);
// Cache a reference to our parent window, if we didn't already reference it.
if (!SlateParentWindowPtr.IsValid())
{
SWindow* ParentWindow = OutDrawElements.GetPaintWindow();
Copying WEX-Staging @ (WEX/Main @ 3740665) to //UE4/Main #lockdown Nick.Penwarden #rb none Copying //UE4/WEX-Staging to //UE4/Dev-Main (Source: //WEX/Main/Engine @ 3740665) #lockdown Nick.Penwarden Change 3739326 by Ben.Zeigler Change iteration order of depends nodes so it lists hard management references before soft management references, this is better for the UI when lots of references exist Update text for loading custom asset registry bin to be clearer Change 3739000 by John.Opila Caching optimization for text widget desired size. Change 3713551 by David.Nikdel Allow Set Properties to recognize Json array values as importable. Change 3712485 by Josh.May Added Pete's fix for the PLATFORM_TVOS/PLATFORM_IOS #define conflict introduced by mach-o/loader.h Change 3700174 by Chris.Babcock Fix setFilters crash on some Android devices Change 3691531 by Josh.May Fixed an intermittent crash that occurred when opening the AssetAuditBrower. AssetManagerEditorModule's CurrentRegistrySource was getting set too early, becoming invalid in the event that RegistrySourceMap is resized. Change 3688409 by Gil.Gribb Critical fix for an extremely rare race condition on async IO. Change 3687529 by josh.may Force layout recalculations for single-pass layout SScaleBoxes when their final scale is zero. This tends to occur in calls to SearchForWidgetRecursively before a SScaleBox's AllottedGeometry has been calculated. Change 3684788 by Peter.Sauerbrei fix for archive generation on the build machines Change 3684320 by john.opila Workaround for widgets disappering. Ensuring scale is never 0 so we don't get divide by zero. Change 3684042 by Peter.Sauerbrei more logging to figure out why there is not data in the Applicaiton diretory of the archive Change 3678620 by Ben.Zeigler Minor text changes to size map Change 3678314 by Ben.Zeigler Add Make Collection With References and Audit References to Size Map to easily allow inspecting the specific set of filtered packages in other tools Change 3677875 by Ben.Zeigler Fix crash in size map from keeping reference to node after map was resized, and undo the Name->DisplayName rename as it could affect licensees Change 3676899 by Peter.Sauerbrei narrowed down to the plist data, trying to figure out if it is missing or not Change 3676570 by Peter.Sauerbrei more logging to track down the archive error Change 3676293 by Peter.Sauerbrei fix for compile failure on IOS Change 3676172 by Peter.Sauerbrei potential fix for missing icons in the ipa when run through the build machines Change 3673544 by Ben.Zeigler Sort AllChunksInfo alphabetically so the order is consistent accross build and platforms to facillitate diffing Change 3671597 by Peter.Sauerbrei Merging //UE4/Dev-Mobile/Engine/... to //WEX/Main/Engine/... Change 3670932 by Ben.Zeigler Change it so cooking with the AssetManager writes out AllChunksInfo.csv next to the DevelopmentAssetRegistry, but not the per-chunk csv files as those are not useful. Also made the size counts platform accurate Change 3670906 by Peter.Sauerbrei update WEX for building with Xcode 9 Change 3660026 by Josh.May Moved SWebBrowserView's parent window "searches" to OnPaint. There's definitely something wrong with FindWidgetWindow... Even after deferring SWebBrowserView's calls to FindWidgetWindow until first Tick, the same widget layout artifacts could occur after opening multiple SWebBrowserViews. And, as Nick pointed out in the related email thread, this approach is also more efficient. Change 3655411 by Josh.May Ensure SWebBrowserView's parent window searches are deferred until after Construct. We haven't puzzled through it yet, but calling FindWidgetWindow during Construct seems to corrupt some Slate state. Deferring this search until later gets around the issue and makes sense anyway, given the widget isn't added to the hierarchy until after Construct. Change 3655407 by John.Opila Sneaking in some stats for SpawnActor. Change 3654649 by Ben.Zeigler Refactor SizeMap and ReferenceViewer into the AssetManagerEditor plugin, and delete the old modules. Fix SizeMap crash that I temporarily added. TreeMap is initialized weirdly Change 3648912 by Ben.Zeigler First half of changes to refactor sizemap/reference viewer into the asset manager editor plugin Add GetAllContentBrowserCommandExtenders to ContentBrowserModule that allows registering commands/keybinds to extend the content browser via plugins Add GetSharedMenu/ToolbarExtensibilityManager to AssetEditorToolkit that allows extending the generic asset editor via plugin Move the code to spawn the Reference Viewer and SizeMap into the AssetManagerEditor plugin so these UIs can be tightly bound and share data. This also enables keybinds for Size Map and Audit. Remove size map from the save as dialog, it created a special modal size map window that will not work after my refactor Change 3639419 by Ben.Marsh Use DirectoryInfo instead of DirectoryReference to enumerate projects. Tracking down UHT compile failures on Mac. Change 3638619 by David.Nikdel AsyncLoading: Suggested change by Gil to add lock prior to changing LoadPhase to WaitingForHeader (presumably to make FArchiveAsync2::StartReadingHeader's assumption about locking true) Change 3633562 by Chris.Babcock Update Android virtual keyboard support Change 3630564 by Peter.Sauerbrei fix for the manifest stage problem Change 3629577 by Chris.Babcock Fix merge errors in GameActivity.java Change 3629154 by David.Nikdel Disable debug device output in shipping builds (even if logs are enabled) Change 3626542 by John.Opila Back out changelist 3603452 Undoing the OpenGL load changes as the initial load time was just too damn high! Change 3620472 by David.Nikdel Fix from Nick to fix a BP that crashes on Compile Change 3618090 by Josh.May Reset inertial scrolling for SScrollboxes and STableView-based Slate widgets when scrolling to specific scroll offsets. Change 3613980 by Chris.Babcock Fix issue with Android password keyboard input Change 3603825 by John.Opila Shader change doesn't seem to like standalone PC. Change 3603452 by John.Opila Moving openGL shader compilation into loading instead of at the last minute. Change 3593008 by David.Nikdel Merging CL 3504471 from //Fortnite/Dev-Cinematics/Engine/... to //WEX/Main/Engine/... ---------------------------------------- Sequencer: Delay mouse capture until drag for sequencer time slider - Fixes context menus not opening as a result of mouse capture being taken on mouse down ================================================================================================= THESE CHANGES TOUCH MULTIPLE PLATFORMS ================================================================================================= Change 3739931 by Ben.Zeigler changes to some asset manager code modified on WEX, and fix several FStringAssetReference->FSoftObjectPath Change 3723451 by Josh.May Exposed OnBeforePopup to UMG and Blueprint for UWebBrowser. This is triggered by the CEFBrowserHandler when attempting to open hyperlinks targeting _blank and, when not handled, would result in the page never loading. Added OnBeforePopup handling for the HTMLNewsWidget, ensuring the URLs are opened in an external browser. Change 3711256 by Dmitriy.Dyomin Fixed: Friend list invalidation panel relative transform caching issues Also fixed issues with and set slate.cacherenderdata=0 for better batching Change 3698695 by Josh.May Made the UMG default font overridable via config, allowing us to replace it with a game-scope localized Font asset. If there's a better place for this mechanism/accessor to live, please let me know. Added a new 'Default' font that replicates '/Engine/EngineFonts/Roboto'. This also has a localized Font asset variant for zh-Hans. Change 3676085 by Josh.May Implemented MulticastBroadcastReceiver, a BroadcastReceiver capable of "multicasting" intents to other receivers. AppsFlyer defines a similar MultiInstallBroadcastReceiver class specific to the INSTALL_REFERRER intent, but it MUST be the very first one defined (cannot be guaranteed in our build pipeline AFAIK). Added MulticastBroadcastReceiver (for INSTALL_REFERRER) to the AndroidManifest generation logic, allowing BOTH Adjust and AppsFlyer to receive the intent. Added dev channel support for AndroidAppsFlyer, enabled conditionally based on shipping/distribution and whether or not a valid AppsFlyerDevChannel name is specified. For WEX, our dev channel is WEX_Dev. Fixed AppsFlyer_EventAttribute's Java class lookups and constructor signature. Change 3670860 by Ben.Zeigler First version of improvements to tools to analyze chunks Size Map and Reference Viewer now support reading cooked asset data and displaying chunks. Changing the platform dropdown in the Asset Audit window switches the other windows as well Asset Audit window now has "Add Chunks" button, and selecting AllTypes in the Primary Asset drop down will add all primary assets Size Map now shows Disk Size by default, and supports a right click context menu Significant UI improvements to all 3 tools, including keybind support Split Manage references into Hard and Soft, where Hard are set explicitly and soft are inherited. This allows determining why an asset was included in a chunk/primary asset When the AssetManager builds management information for the audit browser/cooker, it now precomputes a chunk mapping for relevant assets. PackageChunkType is used to refer to these virtual primary assets Add callback to content browser delegates to handle adding arbitrary FAssetData to an asset view, used to show chunks Several changes to the ITreeMap UI used by size map Change 3670290 by Josh.May Added AppleAppID configs for AppsFlyer. Added AdSupport and iAd frameworks for IOSAppsFlyer. According to the AppsFlyer documentation, these are required for IDFA and Apple Search Ads tracking. Change 3643531 by Peter.Sauerbrei fix for save game location and certain data backed up to the cloud when it shouldn't Change 3629303 by Ben.Zeigler Merge fix for shared ptr corruption in async loading thread from Main, and enable asnyc loading thread for WEX Copy of CL #3623261 and 3625806 Change 3629219 by Peter.Sauerbrei Merging using WEX_Main_to_UE4_WEX_Staging bringing over the files that Stan didn't have access to Change 3629063 by Stanley.Hayes Engine Merge: Merging using WEX_Main_to_UE4_WEX_Staging(flipped) Change 3618988 by Josh.May Reimplemented DevicePerformanceBucket-based WorldMap class selection to account for the WorldMap actor being pre-serialized into the UMAP. On a related note, ChildActorComponents marked as "editor only" now mark their spawned Actors as Transient to prevent them from getting serialized at cook-time. Change 3597981 by Josh.May Converted WExpCampaignDefinition's RegionDefinition refs back to hard references and, to compensate, converted WExpZoneDefinition's ZoneBoss refs to soft references. This moves the RegionDefinitions and ZoneDefinitions from chunk 2 to chunk 1 without pulling in assets for the ZoneBosses. This also allows us to grab the ZoneBoss refs during UWExpAssetManager::GetMainMenuAssetList. Reworked UWExpAssetManager::GetMainMenuAssetList and UWExpAssetManager::GetLevelAssetList to build more "complete" asset lists by expanding lists of PrimaryAssetIds. Tweaked the WorldMap's ZoneBoss spawning to account for the switch to AssetPtrs. Change 3581214 by Josh.Markiewicz added cookie deletion for Google on logout [CL 3750870 by Stanley Hayes in Main branch]
2017-11-10 17:20:53 -05:00
TSharedRef<SWindow> SlateParentWindowRef = StaticCastSharedRef<SWindow>(ParentWindow->AsShared());
SlateParentWindowPtr = SlateParentWindowRef;
Copying WEX-Staging @ (WEX/Main @ 3740665) to //UE4/Main #lockdown Nick.Penwarden #rb none Copying //UE4/WEX-Staging to //UE4/Dev-Main (Source: //WEX/Main/Engine @ 3740665) #lockdown Nick.Penwarden Change 3739326 by Ben.Zeigler Change iteration order of depends nodes so it lists hard management references before soft management references, this is better for the UI when lots of references exist Update text for loading custom asset registry bin to be clearer Change 3739000 by John.Opila Caching optimization for text widget desired size. Change 3713551 by David.Nikdel Allow Set Properties to recognize Json array values as importable. Change 3712485 by Josh.May Added Pete's fix for the PLATFORM_TVOS/PLATFORM_IOS #define conflict introduced by mach-o/loader.h Change 3700174 by Chris.Babcock Fix setFilters crash on some Android devices Change 3691531 by Josh.May Fixed an intermittent crash that occurred when opening the AssetAuditBrower. AssetManagerEditorModule's CurrentRegistrySource was getting set too early, becoming invalid in the event that RegistrySourceMap is resized. Change 3688409 by Gil.Gribb Critical fix for an extremely rare race condition on async IO. Change 3687529 by josh.may Force layout recalculations for single-pass layout SScaleBoxes when their final scale is zero. This tends to occur in calls to SearchForWidgetRecursively before a SScaleBox's AllottedGeometry has been calculated. Change 3684788 by Peter.Sauerbrei fix for archive generation on the build machines Change 3684320 by john.opila Workaround for widgets disappering. Ensuring scale is never 0 so we don't get divide by zero. Change 3684042 by Peter.Sauerbrei more logging to figure out why there is not data in the Applicaiton diretory of the archive Change 3678620 by Ben.Zeigler Minor text changes to size map Change 3678314 by Ben.Zeigler Add Make Collection With References and Audit References to Size Map to easily allow inspecting the specific set of filtered packages in other tools Change 3677875 by Ben.Zeigler Fix crash in size map from keeping reference to node after map was resized, and undo the Name->DisplayName rename as it could affect licensees Change 3676899 by Peter.Sauerbrei narrowed down to the plist data, trying to figure out if it is missing or not Change 3676570 by Peter.Sauerbrei more logging to track down the archive error Change 3676293 by Peter.Sauerbrei fix for compile failure on IOS Change 3676172 by Peter.Sauerbrei potential fix for missing icons in the ipa when run through the build machines Change 3673544 by Ben.Zeigler Sort AllChunksInfo alphabetically so the order is consistent accross build and platforms to facillitate diffing Change 3671597 by Peter.Sauerbrei Merging //UE4/Dev-Mobile/Engine/... to //WEX/Main/Engine/... Change 3670932 by Ben.Zeigler Change it so cooking with the AssetManager writes out AllChunksInfo.csv next to the DevelopmentAssetRegistry, but not the per-chunk csv files as those are not useful. Also made the size counts platform accurate Change 3670906 by Peter.Sauerbrei update WEX for building with Xcode 9 Change 3660026 by Josh.May Moved SWebBrowserView's parent window "searches" to OnPaint. There's definitely something wrong with FindWidgetWindow... Even after deferring SWebBrowserView's calls to FindWidgetWindow until first Tick, the same widget layout artifacts could occur after opening multiple SWebBrowserViews. And, as Nick pointed out in the related email thread, this approach is also more efficient. Change 3655411 by Josh.May Ensure SWebBrowserView's parent window searches are deferred until after Construct. We haven't puzzled through it yet, but calling FindWidgetWindow during Construct seems to corrupt some Slate state. Deferring this search until later gets around the issue and makes sense anyway, given the widget isn't added to the hierarchy until after Construct. Change 3655407 by John.Opila Sneaking in some stats for SpawnActor. Change 3654649 by Ben.Zeigler Refactor SizeMap and ReferenceViewer into the AssetManagerEditor plugin, and delete the old modules. Fix SizeMap crash that I temporarily added. TreeMap is initialized weirdly Change 3648912 by Ben.Zeigler First half of changes to refactor sizemap/reference viewer into the asset manager editor plugin Add GetAllContentBrowserCommandExtenders to ContentBrowserModule that allows registering commands/keybinds to extend the content browser via plugins Add GetSharedMenu/ToolbarExtensibilityManager to AssetEditorToolkit that allows extending the generic asset editor via plugin Move the code to spawn the Reference Viewer and SizeMap into the AssetManagerEditor plugin so these UIs can be tightly bound and share data. This also enables keybinds for Size Map and Audit. Remove size map from the save as dialog, it created a special modal size map window that will not work after my refactor Change 3639419 by Ben.Marsh Use DirectoryInfo instead of DirectoryReference to enumerate projects. Tracking down UHT compile failures on Mac. Change 3638619 by David.Nikdel AsyncLoading: Suggested change by Gil to add lock prior to changing LoadPhase to WaitingForHeader (presumably to make FArchiveAsync2::StartReadingHeader's assumption about locking true) Change 3633562 by Chris.Babcock Update Android virtual keyboard support Change 3630564 by Peter.Sauerbrei fix for the manifest stage problem Change 3629577 by Chris.Babcock Fix merge errors in GameActivity.java Change 3629154 by David.Nikdel Disable debug device output in shipping builds (even if logs are enabled) Change 3626542 by John.Opila Back out changelist 3603452 Undoing the OpenGL load changes as the initial load time was just too damn high! Change 3620472 by David.Nikdel Fix from Nick to fix a BP that crashes on Compile Change 3618090 by Josh.May Reset inertial scrolling for SScrollboxes and STableView-based Slate widgets when scrolling to specific scroll offsets. Change 3613980 by Chris.Babcock Fix issue with Android password keyboard input Change 3603825 by John.Opila Shader change doesn't seem to like standalone PC. Change 3603452 by John.Opila Moving openGL shader compilation into loading instead of at the last minute. Change 3593008 by David.Nikdel Merging CL 3504471 from //Fortnite/Dev-Cinematics/Engine/... to //WEX/Main/Engine/... ---------------------------------------- Sequencer: Delay mouse capture until drag for sequencer time slider - Fixes context menus not opening as a result of mouse capture being taken on mouse down ================================================================================================= THESE CHANGES TOUCH MULTIPLE PLATFORMS ================================================================================================= Change 3739931 by Ben.Zeigler changes to some asset manager code modified on WEX, and fix several FStringAssetReference->FSoftObjectPath Change 3723451 by Josh.May Exposed OnBeforePopup to UMG and Blueprint for UWebBrowser. This is triggered by the CEFBrowserHandler when attempting to open hyperlinks targeting _blank and, when not handled, would result in the page never loading. Added OnBeforePopup handling for the HTMLNewsWidget, ensuring the URLs are opened in an external browser. Change 3711256 by Dmitriy.Dyomin Fixed: Friend list invalidation panel relative transform caching issues Also fixed issues with and set slate.cacherenderdata=0 for better batching Change 3698695 by Josh.May Made the UMG default font overridable via config, allowing us to replace it with a game-scope localized Font asset. If there's a better place for this mechanism/accessor to live, please let me know. Added a new 'Default' font that replicates '/Engine/EngineFonts/Roboto'. This also has a localized Font asset variant for zh-Hans. Change 3676085 by Josh.May Implemented MulticastBroadcastReceiver, a BroadcastReceiver capable of "multicasting" intents to other receivers. AppsFlyer defines a similar MultiInstallBroadcastReceiver class specific to the INSTALL_REFERRER intent, but it MUST be the very first one defined (cannot be guaranteed in our build pipeline AFAIK). Added MulticastBroadcastReceiver (for INSTALL_REFERRER) to the AndroidManifest generation logic, allowing BOTH Adjust and AppsFlyer to receive the intent. Added dev channel support for AndroidAppsFlyer, enabled conditionally based on shipping/distribution and whether or not a valid AppsFlyerDevChannel name is specified. For WEX, our dev channel is WEX_Dev. Fixed AppsFlyer_EventAttribute's Java class lookups and constructor signature. Change 3670860 by Ben.Zeigler First version of improvements to tools to analyze chunks Size Map and Reference Viewer now support reading cooked asset data and displaying chunks. Changing the platform dropdown in the Asset Audit window switches the other windows as well Asset Audit window now has "Add Chunks" button, and selecting AllTypes in the Primary Asset drop down will add all primary assets Size Map now shows Disk Size by default, and supports a right click context menu Significant UI improvements to all 3 tools, including keybind support Split Manage references into Hard and Soft, where Hard are set explicitly and soft are inherited. This allows determining why an asset was included in a chunk/primary asset When the AssetManager builds management information for the audit browser/cooker, it now precomputes a chunk mapping for relevant assets. PackageChunkType is used to refer to these virtual primary assets Add callback to content browser delegates to handle adding arbitrary FAssetData to an asset view, used to show chunks Several changes to the ITreeMap UI used by size map Change 3670290 by Josh.May Added AppleAppID configs for AppsFlyer. Added AdSupport and iAd frameworks for IOSAppsFlyer. According to the AppsFlyer documentation, these are required for IDFA and Apple Search Ads tracking. Change 3643531 by Peter.Sauerbrei fix for save game location and certain data backed up to the cloud when it shouldn't Change 3629303 by Ben.Zeigler Merge fix for shared ptr corruption in async loading thread from Main, and enable asnyc loading thread for WEX Copy of CL #3623261 and 3625806 Change 3629219 by Peter.Sauerbrei Merging using WEX_Main_to_UE4_WEX_Staging bringing over the files that Stan didn't have access to Change 3629063 by Stanley.Hayes Engine Merge: Merging using WEX_Main_to_UE4_WEX_Staging(flipped) Change 3618988 by Josh.May Reimplemented DevicePerformanceBucket-based WorldMap class selection to account for the WorldMap actor being pre-serialized into the UMAP. On a related note, ChildActorComponents marked as "editor only" now mark their spawned Actors as Transient to prevent them from getting serialized at cook-time. Change 3597981 by Josh.May Converted WExpCampaignDefinition's RegionDefinition refs back to hard references and, to compensate, converted WExpZoneDefinition's ZoneBoss refs to soft references. This moves the RegionDefinitions and ZoneDefinitions from chunk 2 to chunk 1 without pulling in assets for the ZoneBosses. This also allows us to grab the ZoneBoss refs during UWExpAssetManager::GetMainMenuAssetList. Reworked UWExpAssetManager::GetMainMenuAssetList and UWExpAssetManager::GetLevelAssetList to build more "complete" asset lists by expanding lists of PrimaryAssetIds. Tweaked the WorldMap's ZoneBoss spawning to account for the switch to AssetPtrs. Change 3581214 by Josh.Markiewicz added cookie deletion for Google on logout [CL 3750870 by Stanley Hayes in Main branch]
2017-11-10 17:20:53 -05:00
if (BrowserWindow.IsValid())
{
BrowserWindow->SetParentWindow(SlateParentWindowRef);
Copying WEX-Staging @ (WEX/Main @ 3740665) to //UE4/Main #lockdown Nick.Penwarden #rb none Copying //UE4/WEX-Staging to //UE4/Dev-Main (Source: //WEX/Main/Engine @ 3740665) #lockdown Nick.Penwarden Change 3739326 by Ben.Zeigler Change iteration order of depends nodes so it lists hard management references before soft management references, this is better for the UI when lots of references exist Update text for loading custom asset registry bin to be clearer Change 3739000 by John.Opila Caching optimization for text widget desired size. Change 3713551 by David.Nikdel Allow Set Properties to recognize Json array values as importable. Change 3712485 by Josh.May Added Pete's fix for the PLATFORM_TVOS/PLATFORM_IOS #define conflict introduced by mach-o/loader.h Change 3700174 by Chris.Babcock Fix setFilters crash on some Android devices Change 3691531 by Josh.May Fixed an intermittent crash that occurred when opening the AssetAuditBrower. AssetManagerEditorModule's CurrentRegistrySource was getting set too early, becoming invalid in the event that RegistrySourceMap is resized. Change 3688409 by Gil.Gribb Critical fix for an extremely rare race condition on async IO. Change 3687529 by josh.may Force layout recalculations for single-pass layout SScaleBoxes when their final scale is zero. This tends to occur in calls to SearchForWidgetRecursively before a SScaleBox's AllottedGeometry has been calculated. Change 3684788 by Peter.Sauerbrei fix for archive generation on the build machines Change 3684320 by john.opila Workaround for widgets disappering. Ensuring scale is never 0 so we don't get divide by zero. Change 3684042 by Peter.Sauerbrei more logging to figure out why there is not data in the Applicaiton diretory of the archive Change 3678620 by Ben.Zeigler Minor text changes to size map Change 3678314 by Ben.Zeigler Add Make Collection With References and Audit References to Size Map to easily allow inspecting the specific set of filtered packages in other tools Change 3677875 by Ben.Zeigler Fix crash in size map from keeping reference to node after map was resized, and undo the Name->DisplayName rename as it could affect licensees Change 3676899 by Peter.Sauerbrei narrowed down to the plist data, trying to figure out if it is missing or not Change 3676570 by Peter.Sauerbrei more logging to track down the archive error Change 3676293 by Peter.Sauerbrei fix for compile failure on IOS Change 3676172 by Peter.Sauerbrei potential fix for missing icons in the ipa when run through the build machines Change 3673544 by Ben.Zeigler Sort AllChunksInfo alphabetically so the order is consistent accross build and platforms to facillitate diffing Change 3671597 by Peter.Sauerbrei Merging //UE4/Dev-Mobile/Engine/... to //WEX/Main/Engine/... Change 3670932 by Ben.Zeigler Change it so cooking with the AssetManager writes out AllChunksInfo.csv next to the DevelopmentAssetRegistry, but not the per-chunk csv files as those are not useful. Also made the size counts platform accurate Change 3670906 by Peter.Sauerbrei update WEX for building with Xcode 9 Change 3660026 by Josh.May Moved SWebBrowserView's parent window "searches" to OnPaint. There's definitely something wrong with FindWidgetWindow... Even after deferring SWebBrowserView's calls to FindWidgetWindow until first Tick, the same widget layout artifacts could occur after opening multiple SWebBrowserViews. And, as Nick pointed out in the related email thread, this approach is also more efficient. Change 3655411 by Josh.May Ensure SWebBrowserView's parent window searches are deferred until after Construct. We haven't puzzled through it yet, but calling FindWidgetWindow during Construct seems to corrupt some Slate state. Deferring this search until later gets around the issue and makes sense anyway, given the widget isn't added to the hierarchy until after Construct. Change 3655407 by John.Opila Sneaking in some stats for SpawnActor. Change 3654649 by Ben.Zeigler Refactor SizeMap and ReferenceViewer into the AssetManagerEditor plugin, and delete the old modules. Fix SizeMap crash that I temporarily added. TreeMap is initialized weirdly Change 3648912 by Ben.Zeigler First half of changes to refactor sizemap/reference viewer into the asset manager editor plugin Add GetAllContentBrowserCommandExtenders to ContentBrowserModule that allows registering commands/keybinds to extend the content browser via plugins Add GetSharedMenu/ToolbarExtensibilityManager to AssetEditorToolkit that allows extending the generic asset editor via plugin Move the code to spawn the Reference Viewer and SizeMap into the AssetManagerEditor plugin so these UIs can be tightly bound and share data. This also enables keybinds for Size Map and Audit. Remove size map from the save as dialog, it created a special modal size map window that will not work after my refactor Change 3639419 by Ben.Marsh Use DirectoryInfo instead of DirectoryReference to enumerate projects. Tracking down UHT compile failures on Mac. Change 3638619 by David.Nikdel AsyncLoading: Suggested change by Gil to add lock prior to changing LoadPhase to WaitingForHeader (presumably to make FArchiveAsync2::StartReadingHeader's assumption about locking true) Change 3633562 by Chris.Babcock Update Android virtual keyboard support Change 3630564 by Peter.Sauerbrei fix for the manifest stage problem Change 3629577 by Chris.Babcock Fix merge errors in GameActivity.java Change 3629154 by David.Nikdel Disable debug device output in shipping builds (even if logs are enabled) Change 3626542 by John.Opila Back out changelist 3603452 Undoing the OpenGL load changes as the initial load time was just too damn high! Change 3620472 by David.Nikdel Fix from Nick to fix a BP that crashes on Compile Change 3618090 by Josh.May Reset inertial scrolling for SScrollboxes and STableView-based Slate widgets when scrolling to specific scroll offsets. Change 3613980 by Chris.Babcock Fix issue with Android password keyboard input Change 3603825 by John.Opila Shader change doesn't seem to like standalone PC. Change 3603452 by John.Opila Moving openGL shader compilation into loading instead of at the last minute. Change 3593008 by David.Nikdel Merging CL 3504471 from //Fortnite/Dev-Cinematics/Engine/... to //WEX/Main/Engine/... ---------------------------------------- Sequencer: Delay mouse capture until drag for sequencer time slider - Fixes context menus not opening as a result of mouse capture being taken on mouse down ================================================================================================= THESE CHANGES TOUCH MULTIPLE PLATFORMS ================================================================================================= Change 3739931 by Ben.Zeigler changes to some asset manager code modified on WEX, and fix several FStringAssetReference->FSoftObjectPath Change 3723451 by Josh.May Exposed OnBeforePopup to UMG and Blueprint for UWebBrowser. This is triggered by the CEFBrowserHandler when attempting to open hyperlinks targeting _blank and, when not handled, would result in the page never loading. Added OnBeforePopup handling for the HTMLNewsWidget, ensuring the URLs are opened in an external browser. Change 3711256 by Dmitriy.Dyomin Fixed: Friend list invalidation panel relative transform caching issues Also fixed issues with and set slate.cacherenderdata=0 for better batching Change 3698695 by Josh.May Made the UMG default font overridable via config, allowing us to replace it with a game-scope localized Font asset. If there's a better place for this mechanism/accessor to live, please let me know. Added a new 'Default' font that replicates '/Engine/EngineFonts/Roboto'. This also has a localized Font asset variant for zh-Hans. Change 3676085 by Josh.May Implemented MulticastBroadcastReceiver, a BroadcastReceiver capable of "multicasting" intents to other receivers. AppsFlyer defines a similar MultiInstallBroadcastReceiver class specific to the INSTALL_REFERRER intent, but it MUST be the very first one defined (cannot be guaranteed in our build pipeline AFAIK). Added MulticastBroadcastReceiver (for INSTALL_REFERRER) to the AndroidManifest generation logic, allowing BOTH Adjust and AppsFlyer to receive the intent. Added dev channel support for AndroidAppsFlyer, enabled conditionally based on shipping/distribution and whether or not a valid AppsFlyerDevChannel name is specified. For WEX, our dev channel is WEX_Dev. Fixed AppsFlyer_EventAttribute's Java class lookups and constructor signature. Change 3670860 by Ben.Zeigler First version of improvements to tools to analyze chunks Size Map and Reference Viewer now support reading cooked asset data and displaying chunks. Changing the platform dropdown in the Asset Audit window switches the other windows as well Asset Audit window now has "Add Chunks" button, and selecting AllTypes in the Primary Asset drop down will add all primary assets Size Map now shows Disk Size by default, and supports a right click context menu Significant UI improvements to all 3 tools, including keybind support Split Manage references into Hard and Soft, where Hard are set explicitly and soft are inherited. This allows determining why an asset was included in a chunk/primary asset When the AssetManager builds management information for the audit browser/cooker, it now precomputes a chunk mapping for relevant assets. PackageChunkType is used to refer to these virtual primary assets Add callback to content browser delegates to handle adding arbitrary FAssetData to an asset view, used to show chunks Several changes to the ITreeMap UI used by size map Change 3670290 by Josh.May Added AppleAppID configs for AppsFlyer. Added AdSupport and iAd frameworks for IOSAppsFlyer. According to the AppsFlyer documentation, these are required for IDFA and Apple Search Ads tracking. Change 3643531 by Peter.Sauerbrei fix for save game location and certain data backed up to the cloud when it shouldn't Change 3629303 by Ben.Zeigler Merge fix for shared ptr corruption in async loading thread from Main, and enable asnyc loading thread for WEX Copy of CL #3623261 and 3625806 Change 3629219 by Peter.Sauerbrei Merging using WEX_Main_to_UE4_WEX_Staging bringing over the files that Stan didn't have access to Change 3629063 by Stanley.Hayes Engine Merge: Merging using WEX_Main_to_UE4_WEX_Staging(flipped) Change 3618988 by Josh.May Reimplemented DevicePerformanceBucket-based WorldMap class selection to account for the WorldMap actor being pre-serialized into the UMAP. On a related note, ChildActorComponents marked as "editor only" now mark their spawned Actors as Transient to prevent them from getting serialized at cook-time. Change 3597981 by Josh.May Converted WExpCampaignDefinition's RegionDefinition refs back to hard references and, to compensate, converted WExpZoneDefinition's ZoneBoss refs to soft references. This moves the RegionDefinitions and ZoneDefinitions from chunk 2 to chunk 1 without pulling in assets for the ZoneBosses. This also allows us to grab the ZoneBoss refs during UWExpAssetManager::GetMainMenuAssetList. Reworked UWExpAssetManager::GetMainMenuAssetList and UWExpAssetManager::GetLevelAssetList to build more "complete" asset lists by expanding lists of PrimaryAssetIds. Tweaked the WorldMap's ZoneBoss spawning to account for the switch to AssetPtrs. Change 3581214 by Josh.Markiewicz added cookie deletion for Google on logout [CL 3750870 by Stanley Hayes in Main branch]
2017-11-10 17:20:53 -05:00
}
}
return Layer;
}
void SWebBrowserView::HandleWindowDeactivated()
{
if (BrowserViewport.IsValid())
{
BrowserViewport->OnFocusLost(FFocusEvent());
}
}
FReply SWebBrowserView::OnFocusReceived(const FGeometry& MyGeometry, const FFocusEvent& InFocusEvent)
{
FReply Reply = FReply::Handled();
if (InFocusEvent.GetCause() != EFocusCause::Cleared)
{
if (BrowserWidget.IsValid())
{
Reply.SetUserFocus(BrowserWidget.ToSharedRef(), InFocusEvent.GetCause());
}
else
{
Reply.SetUserFocus(this->AsShared());
}
if (BrowserWindow.IsValid())
{
BrowserWindow->OnFocus(true, false);
}
}
return Reply;
}
Copying //UE4/Portal-Staging to //UE4/Dev-Main (Source: //Portal/Main @ 3216504) #lockdown Nick.Penwarden #rb no one ========================== MAJOR FEATURES + CHANGES ========================== Change 3216141 on 2016/11/30 by Justin.Sargent Completed first ready to use pass of the new AutomationDriver module and new Spec test type. Change 3213288 on 2016/11/29 by Leigh.Swift #jira OPP-6353: CEF FName Javascript PROBLEM Removing deprecation of IWebBrowserSingleton::SetJSBindingToLoweringEnabled for now. Change 3212796 on 2016/11/29 by Leigh.Swift #jira OPP-6353: CEF FName Javascript PROBLEM Added SetJSBindingToLoweringEnabled to IWebBrowserSingleton so that the to-lowering of binding names can be disabled. Deprecated SetJSBindingToLoweringEnabled since 4.15. In future the to-lowering will always occurr. Adding GetBindingName helper to FWebJSScripting, which returns a to-lowered name for a UField, unless disabled. Updated all current binding code to use GetBindingName when building from UObjects/UStructs. This affects Windows, Mac, Linux, and Android. Portal currently disables to-lowering unless a commandline -LowercaseJS is provided. Change 3200370 on 2016/11/16 by Richard.Fawcett Ensure we always get the latest version of the user content catalog when promoting marketplace items. Change 3192974 on 2016/11/10 by Leigh.Swift #jira OPP-6365: Crash during shutdown if a manifest is still being downloaded This is because of the OnPreExit core delegate being used to null out the Data uobject member on a manifest, also being the only sensible way to ensure threads complete in a safe and clean manner. Refactoring BuildPatchServices manifest class to not permanently hold any UObject and simply just use one while serialising. This removes the reliance on the OnPreExit delegate from manifest class, making it generally safer behaviour for shutdown. Change 3187028 on 2016/11/04 by Leigh.Swift PortalPublishingTool: Adding UE_Main app to UnrealEngine project Change 3186788 on 2016/11/04 by Richard.Fawcett Change C# wrapper for BuildPatchTool patch generation to prevent clobbering manifest files by default, unless we specifically pass in an optional flag to allow this. #jira OPP-6355 Change 3186779 on 2016/11/04 by Richard.Fawcett Add support to automation tool testing framework for the following assertions: Assert.AreNotEqual(a, b, optionalFailureMessage) Assert.ThrowsError(actionToCarryOut, expectedExceptionType, optionalExceptionMessageContainsString) Moved attribute-based expected exception declarations to their own attribute, TestThrowsExceptionAttribute, which can now accept an optional parameter for a string which should be contained within the exception message. Fixed a bug where a test method with an attribute-based expected exception would not count towards the success total if the exception was encountered as expected. Fixed a bug where NOT throwing an exception when we were expecting one would count as a success. Added an internal property bDoNotLogTestFailsAsError which we can set to true to suppress logging of UAT errors when a test fails (but still count them in our failure results), to allow us to deliberately cause test failures to test the test framework! Added a suite of unit tests for the test framework itself, in TestRunner.Automation.Tests.cs. Change 3185411 on 2016/11/03 by Richard.Fawcett Allow Rocket_PromoteBuild changelist to be overridden by a changelist read from a file. Change 3184843 on 2016/11/03 by Richard.Fawcett Ensure catalog file synced during user content generation is always the latest one. Change 3184752 on 2016/11/03 by Richard.Fawcett Ensure we log reading changelist from specified file. Change 3184744 on 2016/11/03 by Richard.Fawcett Ensure directory is created for Changelist file if it doesn't already exist. Change 3184738 on 2016/11/03 by Richard.Fawcett Ensure we use latest CL from all of Perforce when generating build versions for user content Because of the nature of the build farm, where separate parts of the job are executed on different build agents at different times, this changelist is serialized to the filesystem during execution of a node dedicated to this task, and then made available to all future nodes, so that they're working with a consistent build version. In the case of an execution where we're updating Perforce with new content, this calculation of the changelist occurs AFTER we've updated Perforce with the new content. Have also optimized the build graph scripts to enable Mac and Windows user generated content to execute simultaneously. #jira OPP-6274 Change 3181456 on 2016/11/01 by Andrew.Brown SExpandable area has been modified as the Portal settings mocks weren't able to be achieved with default functionality. Added BodyBorderImage arguement and BodyBorderBackgroundColor attribute so we can specify a different brush/color to use for the expanded area compared with the title area. Additional care was made to ensure that rounded corners still appear correctly if the developer doesn't want to specify a different look to the body. Added AreaTitlePadding attribute, to be able to specify padding between the expand/collapse icon and the header content. Added MinWidth arguement, to ensure that the areas meet a minimum width requirement. Change 3181285 on 2016/11/01 by Richard.Fawcett Ensure user content generated using latest changelist submitted to Perforce, rather than using portal's latest changelist #jira OPP-6274 Change 3177758 on 2016/10/28 by Leigh.Swift #jira OPP-6247: Portal needs Social Plugin integration v1.2 Copying //Portal/Dev-Social to Dev-Main (//Portal/Dev-Main) Change 3175889 on 2016/10/26 by Wes.Fudala Web browser tooltips will no longer continue to appear when the mouse leaves the browser window. #jira: OPP-5895 The Mouseover info in Recent Additions (Marketplace) anchors itself to the mouse pointer over other Browser windows rb: Justin.Sargent Change 3171388 on 2016/10/22 by Leigh.Swift #jira OPP-6343: Launcher crashes patching from 2.12.13 Main to 2.12.13 Release-Live BPS: FBuildPatchAppManifest needs to listen for FCoreDelegates::OnPreExit in order to clean up references to it's UObject which is about to be destroyed. Change 3170373 on 2016/10/21 by Leigh.Swift #jira: OPP-6340: Portal builds fail on audit nodes. Reducing platform regex to only match pre-defined possibilities. [CL 3219291 by Justin Sargent in Main branch]
2016-12-02 13:27:02 -05:00
void SWebBrowserView::HandleWindowActivated()
{
if (BrowserViewport.IsValid())
{
if (HasAnyUserFocusOrFocusedDescendants())
{
BrowserViewport->OnFocusReceived(FFocusEvent());
}
}
}
void SWebBrowserView::LoadURL(FString NewURL)
{
AddressBarUrl = FText::FromString(NewURL);
if (BrowserWindow.IsValid())
{
BrowserWindow->LoadURL(NewURL);
}
}
void SWebBrowserView::LoadString(FString Contents, FString DummyURL)
{
if (BrowserWindow.IsValid())
{
BrowserWindow->LoadString(Contents, DummyURL);
}
}
void SWebBrowserView::Reload()
{
if (BrowserWindow.IsValid())
{
BrowserWindow->Reload();
}
}
void SWebBrowserView::StopLoad()
{
if (BrowserWindow.IsValid())
{
BrowserWindow->StopLoad();
}
}
FText SWebBrowserView::GetTitleText() const
{
if (BrowserWindow.IsValid())
{
return FText::FromString(BrowserWindow->GetTitle());
}
return LOCTEXT("InvalidWindow", "Browser Window is not valid/supported");
}
FString SWebBrowserView::GetUrl() const
{
if (BrowserWindow.IsValid())
{
return BrowserWindow->GetUrl();
}
return FString();
}
FText SWebBrowserView::GetAddressBarUrlText() const
{
if(BrowserWindow.IsValid())
{
return AddressBarUrl;
}
return FText::GetEmpty();
}
bool SWebBrowserView::IsLoaded() const
{
if (BrowserWindow.IsValid())
{
return (BrowserWindow->GetDocumentLoadingState() == EWebBrowserDocumentState::Completed);
}
return false;
}
bool SWebBrowserView::IsLoading() const
{
if (BrowserWindow.IsValid())
{
return (BrowserWindow->GetDocumentLoadingState() == EWebBrowserDocumentState::Loading);
}
return false;
}
bool SWebBrowserView::CanGoBack() const
{
if (BrowserWindow.IsValid())
{
return BrowserWindow->CanGoBack();
}
return false;
}
void SWebBrowserView::GoBack()
{
if (BrowserWindow.IsValid())
{
BrowserWindow->GoBack();
}
}
bool SWebBrowserView::CanGoForward() const
{
if (BrowserWindow.IsValid())
{
return BrowserWindow->CanGoForward();
}
return false;
}
void SWebBrowserView::GoForward()
{
if (BrowserWindow.IsValid())
{
BrowserWindow->GoForward();
}
}
bool SWebBrowserView::IsInitialized() const
{
return BrowserWindow.IsValid() && BrowserWindow->IsInitialized();
}
void SWebBrowserView::SetupParentWindowHandlers()
{
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
if (!SlateParentWindowPtr.IsValid())
{
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
SlateParentWindowPtr = FSlateApplication::Get().FindWidgetWindow(SharedThis(this));
TSharedPtr<SWindow> SlateParentWindow = SlateParentWindowPtr.Pin();
if (SlateParentWindow.IsValid() && BrowserWindow.IsValid())
{
if (!SlateParentWindow->GetOnWindowDeactivatedEvent().IsBoundToObject(this))
{
SlateParentWindow->GetOnWindowDeactivatedEvent().AddSP(this, &SWebBrowserView::HandleWindowDeactivated);
}
if (!SlateParentWindow->GetOnWindowActivatedEvent().IsBoundToObject(this))
{
SlateParentWindow->GetOnWindowActivatedEvent().AddSP(this, &SWebBrowserView::HandleWindowActivated);
}
BrowserWindow->SetParentWindow(SlateParentWindow);
}
}
}
void SWebBrowserView::HandleBrowserWindowDocumentStateChanged(EWebBrowserDocumentState NewState)
{
switch (NewState)
{
case EWebBrowserDocumentState::Completed:
{
if (BrowserWindow.IsValid())
{
for (auto Adapter : Adapters)
{
Adapter->ConnectTo(BrowserWindow.ToSharedRef());
}
}
OnLoadCompleted.ExecuteIfBound();
}
break;
case EWebBrowserDocumentState::Error:
OnLoadError.ExecuteIfBound();
break;
case EWebBrowserDocumentState::Loading:
OnLoadStarted.ExecuteIfBound();
break;
}
}
void SWebBrowserView::HandleBrowserWindowNeedsRedraw()
{
if (FSlateApplication::IsInitialized() && FSlateApplication::Get().IsSlateAsleep())
{
// Tell slate that the widget needs to wake up for one frame to get redrawn
RegisterActiveTimer(0.f, FWidgetActiveTimerDelegate::CreateLambda([this](double InCurrentTime, float InDeltaTime) { return EActiveTimerReturnType::Stop; }));
}
}
void SWebBrowserView::HandleTitleChanged( FString NewTitle )
{
const FText NewTitleText = FText::FromString(NewTitle);
OnTitleChanged.ExecuteIfBound(NewTitleText);
}
void SWebBrowserView::HandleUrlChanged( FString NewUrl )
{
AddressBarUrl = FText::FromString(NewUrl);
OnUrlChanged.ExecuteIfBound(AddressBarUrl);
}
void SWebBrowserView::CloseBrowser()
{
BrowserWindow->CloseBrowser(true /*force*/, true /*block until closed*/);
}
void SWebBrowserView::HandleToolTip(FString ToolTipText)
{
if(ToolTipText.IsEmpty())
{
FSlateApplication::Get().CloseToolTip();
SetToolTip(nullptr);
}
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
else if (OnCreateToolTip.IsBound())
{
SetToolTip(OnCreateToolTip.Execute(FText::FromString(ToolTipText)));
FSlateApplication::Get().UpdateToolTip(true);
}
else
{
SetToolTipText(FText::FromString(ToolTipText));
FSlateApplication::Get().UpdateToolTip(true);
}
}
bool SWebBrowserView::HandleBeforeNavigation(const FString& Url, const FWebNavigationRequest& Request)
{
if(OnBeforeNavigation.IsBound())
{
return OnBeforeNavigation.Execute(Url, Request);
}
return false;
}
bool SWebBrowserView::HandleLoadUrl(const FString& Method, const FString& Url, FString& OutResponse)
{
if(OnLoadUrl.IsBound())
{
return OnLoadUrl.Execute(Method, Url, OutResponse);
}
return false;
}
EWebBrowserDialogEventResponse SWebBrowserView::HandleShowDialog(const TWeakPtr<IWebBrowserDialog>& DialogParams)
{
if(OnShowDialog.IsBound())
{
return OnShowDialog.Execute(DialogParams);
}
return EWebBrowserDialogEventResponse::Unhandled;
}
void SWebBrowserView::HandleDismissAllDialogs()
{
OnDismissAllDialogs.ExecuteIfBound();
}
bool SWebBrowserView::HandleBeforePopup(FString URL, FString Target)
{
if (OnBeforePopup.IsBound())
{
return OnBeforePopup.Execute(URL, Target);
}
return false;
}
void SWebBrowserView::ExecuteJavascript(const FString& ScriptText)
{
if (BrowserWindow.IsValid())
{
BrowserWindow->ExecuteJavascript(ScriptText);
}
}
void SWebBrowserView::GetSource(TFunction<void (const FString&)> Callback) const
{
if (BrowserWindow.IsValid())
{
BrowserWindow->GetSource(Callback);
}
}
bool SWebBrowserView::HandleCreateWindow(const TWeakPtr<IWebBrowserWindow>& NewBrowserWindow, const TWeakPtr<IWebBrowserPopupFeatures>& PopupFeatures)
{
if(OnCreateWindow.IsBound())
{
return OnCreateWindow.Execute(NewBrowserWindow, PopupFeatures);
}
return false;
}
bool SWebBrowserView::HandleCloseWindow(const TWeakPtr<IWebBrowserWindow>& NewBrowserWindow)
{
if(OnCloseWindow.IsBound())
{
return OnCloseWindow.Execute(NewBrowserWindow);
}
return false;
}
void SWebBrowserView::BindUObject(const FString& Name, UObject* Object, bool bIsPermanent)
{
if (BrowserWindow.IsValid())
{
BrowserWindow->BindUObject(Name, Object, bIsPermanent);
}
}
void SWebBrowserView::UnbindUObject(const FString& Name, UObject* Object, bool bIsPermanent)
{
if (BrowserWindow.IsValid())
{
BrowserWindow->UnbindUObject(Name, Object, bIsPermanent);
}
}
void SWebBrowserView::BindAdapter(const TSharedRef<IWebBrowserAdapter>& Adapter)
{
Adapters.Add(Adapter);
if (BrowserWindow.IsValid())
{
Adapter->ConnectTo(BrowserWindow.ToSharedRef());
}
}
void SWebBrowserView::UnbindAdapter(const TSharedRef<IWebBrowserAdapter>& Adapter)
{
Adapters.Remove(Adapter);
if (BrowserWindow.IsValid())
{
Adapter->DisconnectFrom(BrowserWindow.ToSharedRef());
}
}
Copying //UE4/Portal-Staging to //UE4/Dev-Main (Source: //UE4/Portal-Staging @ 3592606) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 3520569 by Leigh.Swift Adding chunkdb support to BPS installer as a chunk source for installations. Chunk db filenames are provided on the installer configuration struct, and will be used to load chunks needed for the installation. Chunk db source shares a chunk store with the cloud source. Adding message pump implementation for installer which can be used to surface events or messages to handlers added to the installer. Currently just takes chunk source events for losing access to the chunkdb files. Adding concept of new runtime requirements and callback for unavailable chunks to chunk source base API. Chained chunk source cascades broadcasted unavailable chunks down to other sources as new requirements. #jira OPP-7191: Add chunkdb source support to BPS Adding support for passing chunkdb files to created installers. Storing chunkdb filenames used for installation in pending manifest so they can be re-used when resuming. Exposing chunkdb source events to UI as warning triangle. #jira OPP-7191: Add chunkdb source support to BPS Change 3508964 by Wes.Fudala CL# 3431076 - Upgrade Win32, Win64, and Mac to latest CEF branch 3071. Adds browser support for foreign language character input via IME. #jira OPP-4400 Non-Roman characters from an IME cannot be typed into CEF based views Change 3506884 by Leigh.Swift #jira OPP-6981: Make sign-in screen a web page WebBrowser: Adding support to WebBrowser module for implementing custom protocol/scheme handlers. Currently works for CEF integration only. WebBrowser: Adding support to override the user-agent version string when initialising the web browser module. PortalBuild: Additionally shipping the contents of /Portal/Content/Web with full launchers. Portal: Adding web content for sign in, background, and web test pages. Portal: Added a high version number setup for WebBrowser when running debug so that latest code always gets latest websites. Portal: Removing old slate sign in screens, and associated code. Portal: Adding bIsThirdParty bool to some AccountService functions to allow to handle not yet having information about account types returned from the backend to deside if an account can be used with a password sign in. Portal: Removing unnecessary use of email in the AccountService::AutoSignIn API. Portal: Replacing old logging in overlay with a 'ShowLongProcessOverlay' API for systems that still use that (e.g. vault cach location select, waiting room). Portal: UI: Adding a null state to sign in router so resources can be cleaned up. Portal: UI: Adding web states for all screens on sign in router. Portal: DebugTools: Adding a web developer section, with a refresh all browsers button to help with web iteration. Portal: DebugTools: Fixing all test JS to use lowercased api calls. Portal: Implementing new client:// scheme handler for WebBrowser which local pages will use. Portal: RememberMe: Exposing additional user info, LastName and whether the account can auth with a password. Portal: Temporary dynamic background image implementation and javascript bridge. Portal: Sign in screen is now driven by a web page, and javascript API. Portal: UIRouter: Improved handling of redirects and tracking of state changes via redirects. Change 3471216 by Leigh.Swift Extending BPT VerifyChunks mode to check manifests are loadable and do not reference broken data, and also to output bad files to a text file passed in on commandline. Change 3469441 by Richard.Fawcett Add support for disc icon to packaging game ISO #jira OPP-7311: Implement icon file for disc Change 3468243 by Wes.Fudala Adds support for branding windows installers. #jira OPP-7190: Create game bootstrap msi (Windows) Change 3456485 by Richard.Fawcett Create new C# wrapper around BuildPatchTool to call the (as yet unimplemented) PackageChunks mode. Implement new tool mode in PortalPublishingTool which takes game name and build version, finds manifest files, and executes BuildPatchTool for each platform, with the option to restrict to a single platform via the commandline. Build script changes to allow the Package Chunks job to be called from Electric Commander. This includes refactoring the setup of PortalPublishingTool to a new node which the package chunks job, and the existing build diff job depend on. #jira OPP-7193: Create 'package chunks' job Change 3446665 by Jacob.Hedges CL# 3430618 - Added App Installation, Engine Installation, and Plugin Installation test suites. Create Social gadget for interacting with the social panel. Added Portal Automation Helper that exposes the UIRouter, and changed existing tests and Screens to utilize URI navigation. Added various metadata tags. #jira OPP-7155 #jira QAENG-1075 #jira QAENG-1076 #jira QAENG-1079 #jira QAENG-1080 Change 3420598 by Richard.Fawcett Use Prerequisite Ids to track which prerequisistes have been installed on a user's system. #jira OPP-6007: Upgrade prereq installer so that it checks versions instead of file hashes - Part 1 Change 3410773 by Richard.Fawcett Implement project-specific retention periods for automated cleanup routines. Additional changes: * Remove VerifyManifestFilenames as it makes no sense for manifest filenames to have to conform to a specific pattern now that we have randomized manifest filenames. * Add support for detecting build versions from Win32 manifest files by tweaking regex. * DeleteUnreferencedManifestsFromCDN: Avoid parsing version strings when we're not in SimulateCDN mode as we're only interested in the result if we're filtering "old" manifests by CL (i.e. simulating) rather than having the date of real files from the folder. * Add -SkipProd flag to periodic rocket cleanup to enable us to run operations that only touch gamedev. This aids debugging as prod environment is firewalled from developer workstations. Change 3377027 by Leigh.Swift #jira OPP-6911: Launcher.Install.Stats Changes Adding specific process timers for each stage that we want to time, replacing any individual logic. Verifier no longer needs to provide the TimeSpentPaused output, since it is now given knowledge of pause state via external dependancy, it doesn't need to be responsible for providing the pause timer. Rearranging Launcher.Build.Stats analytics events according to new spec and desires. Also cleaning up some GLog->UE_LOG. Change 3374573 by Jacob.Hedges Copying //Tasks/Portal/Dev-UIAutomation to Dev-Main (//Portal/Dev-Main) Added new functional testsuite for the launcher, including metadata tags for relevant elements Added new functionality to ID and Path searches for the automation driver to start the search from a specified element Changed selective download components to utilize SCheckBox instead of SButton #jira OPP-6973 [CL 3592632 by Antony Carter in Main branch]
2017-08-17 06:28:58 -04:00
void SWebBrowserView::BindInputMethodSystem(ITextInputMethodSystem* TextInputMethodSystem)
{
if (BrowserWindow.IsValid())
{
BrowserWindow->BindInputMethodSystem(TextInputMethodSystem);
}
}
void SWebBrowserView::UnbindInputMethodSystem()
{
if (BrowserWindow.IsValid())
{
BrowserWindow->UnbindInputMethodSystem();
}
}
void SWebBrowserView::HandleShowPopup(const FIntRect& PopupSize)
{
check(!PopupMenuPtr.IsValid())
TSharedPtr<SViewport> MenuContent;
SAssignNew(MenuContent, SViewport)
.ViewportSize(PopupSize.Size())
.EnableGammaCorrection(false)
.EnableBlending(false)
.IgnoreTextureAlpha(true)
#if WITH_CEF3
.RenderTransform(this, &SWebBrowserView::GetPopupRenderTransform)
#endif
.Visibility(EVisibility::Visible);
MenuViewport = MakeShareable(new FWebBrowserViewport(BrowserWindow, true));
MenuContent->SetViewportInterface(MenuViewport.ToSharedRef());
FWidgetPath WidgetPath;
FSlateApplication::Get().GeneratePathToWidgetUnchecked(SharedThis(this), WidgetPath);
if (WidgetPath.IsValid())
{
TSharedRef< SWidget > MenuContentRef = MenuContent.ToSharedRef();
const FGeometry& BrowserGeometry = WidgetPath.Widgets.Last().Geometry;
const FVector2D NewPosition = BrowserGeometry.LocalToAbsolute(PopupSize.Min);
// Open the pop-up. The popup method will be queried from the widget path passed in.
TSharedPtr<IMenu> NewMenu = FSlateApplication::Get().PushMenu(SharedThis(this), WidgetPath, MenuContentRef, NewPosition, FPopupTransitionEffect( FPopupTransitionEffect::ComboButton ), false);
NewMenu->GetOnMenuDismissed().AddSP(this, &SWebBrowserView::HandleMenuDismissed);
PopupMenuPtr = NewMenu;
}
}
TOptional <FSlateRenderTransform> SWebBrowserView::GetPopupRenderTransform() const
{
if (BrowserWindow.IsValid())
{
#if !defined(DUMMY_WEB_BROWSER) && WITH_CEF3
TOptional<FSlateRenderTransform> LocalRenderTransform = FSlateRenderTransform();
if (static_cast<FWebBrowserWindow*>(BrowserWindow.Get())->UsingAcceleratedPaint())
{
// the accelerated renderer for CEF generates inverted textures (compared to the slate co-ord system), so flip it here
LocalRenderTransform = FSlateRenderTransform(Concatenate(FScale2D(1, -1), FVector2D(0, PopupMenuPtr.Pin()->GetContent()->GetDesiredSize().Y)));
}
return LocalRenderTransform;
#else
return FSlateRenderTransform();
#endif
}
else
{
return FSlateRenderTransform();
}
}
void SWebBrowserView::HandleMenuDismissed(TSharedRef<IMenu>)
{
PopupMenuPtr.Reset();
}
void SWebBrowserView::HandleDismissPopup()
{
if (PopupMenuPtr.IsValid())
{
PopupMenuPtr.Pin()->Dismiss();
FSlateApplication::Get().SetKeyboardFocus(SharedThis(this), EFocusCause::SetDirectly);
}
}
bool SWebBrowserView::HandleSuppressContextMenu()
{
if (OnSuppressContextMenu.IsBound())
{
return OnSuppressContextMenu.Execute();
}
return false;
}
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640) #rb none #lockdown Nick.Penwarden ============================ MAJOR FEATURES & CHANGES ============================ Change 4247640 by Daniel.Lamb BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small. Change 4247246 by Leigh.Swift BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too. Change 4173518 by Wes.Fudala WebBrowser: Adding support to enable allowing net security expirations. Change 4102451 by Leigh.Swift BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files. Change 4099951 by Leigh.Swift BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update. Change 4051406 by Leigh.Swift BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild. Change 4036807 by Leigh.Swift BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation. BuildPatchServices: Cloud enumeration is now threaded to improve speed. Change 4036477 by Richard.Fawcett Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error. Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code. Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance. Change 3922493 by Justin.Sargent Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come. AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases. AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them. Change 3983713 by Barnabas.McManners BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta. Change 3966915 by Wes.Fudala WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread. Change 3955168 by Justin.Sargent BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing. Change 3954610 by Leigh.Swift BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure. There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat. Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded. Change 3947928 by Chad.Garyet UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue. Change 3942776 by Rob.Cannaday Http: Fix for Mac sending up duplicate header strings Change 3940306 by Leigh.Swift BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage. Change 3936655 by Justin.Sargent Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file. Change 3911756 by Justin.Sargent WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling. Change 3906670 by Justin.Sargent Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing. Change 3889008 by Justin.Sargent StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors. Change 3886969 by Justin.Sargent StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice. Change 3886960 by Justin.Sargent WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures. Change 3855821 by Barnabas.McManners BuildPatchServices: Added logging of the configuration to the start of all installs. Change 3839245 by Wes.Fudala WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region. Change 3835225 by Jacob.Hedges Slate: Fix for SScrollBarTrack size issue Change 3824320 by Wes.Fudala WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303. #jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton #4303 Change 3811191 by Barnabas.McManners BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes Change 3807662 by Barnabas.McManners BuildPatchServices: Broke down build verification errors into 4 new cases. Change 3805698 by Leigh.Swift BuildPatchServices: Speculative fixes for Unit test crashes / failures. Change 3804175 by Wes.Fudala ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively. Change 3786628 by Leigh.Swift WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView. Change 3775678 by Richard.Fawcett BuildPatchServices: Allow a Prerequisite install only mode. Change 3774365 by Justin.Sargent BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience. Change 3774361 by Justin.Sargent Http: Remove Pragma: no-cache header from libcurl requests Change 3774258 by Leigh.Swift BuildPatchServices: Fix for destructive patch destroy files that contain useful data. Change 3766156 by Barnabas.McManners Http: Various lower changes to enable Hardware testing and to enable proxy configuration. Change 3756723 by Leigh.Swift BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics. BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded. Change 3756320 by Rob.Cannaday Http: Add default headers added to every HTTP request. Change 3741274 by Wes.Fudala WebBrowser: Release CEF related references prior to CEF shutdown. Change 3738003 by Leigh.Swift BuildPatchServices: Fix-ups for install stats when failures are occurring NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried. Total downloaded data and total download requirement stats fixed up for runtime as well as final values. Initial chunk counters now only set for first run. Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates. InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion. Change 3729851 by Barnabas.McManners BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry. Change 3725611 by Leigh.Swift Core: FText::AsMemory - Fix for numerical edges. Added unit tests to check all edges up to full uint64 range. Change 3725127 by Leigh.Swift BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints. Change 3725126 by Leigh.Swift Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10. Change 3721926 by Justin.Sargent ThirdParty: LibCurl update performed by Simon Tourangeau. We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally Change 3700670 by Michael.Trepka SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI Change 3697526 by Leigh.Swift BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers. Change 3686439 by Leigh.Swift BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running. Change 3684747 by Leigh.Swift BuildPatchTool: Fix file ignore list to parse using platform agnostic method. Change 3643038 by Michael.Trepka Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed. Change 3639692 by Michael.Trepka Fixes for a couple of issues found by address sanitizer Change 3625568 by Leigh.Swift BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles(). Change 3617948 by Leigh.Swift BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed. BuildPatchServices: Adding new installation mode setting on installer config. BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one. BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory. Change 3593632 by Leigh.Swift BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h [CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
bool SWebBrowserView::HandleDrag(const FPointerEvent& MouseEvent)
{
if (OnDragWindow.IsBound())
{
return OnDragWindow.Execute(MouseEvent);
}
return false;
}
bool SWebBrowserView::UnhandledKeyDown(const FKeyEvent& KeyEvent)
{
if (OnUnhandledKeyDown.IsBound())
{
return OnUnhandledKeyDown.Execute(KeyEvent);
}
return false;
}
bool SWebBrowserView::UnhandledKeyUp(const FKeyEvent& KeyEvent)
{
if (OnUnhandledKeyUp.IsBound())
{
return OnUnhandledKeyUp.Execute(KeyEvent);
}
return false;
}
bool SWebBrowserView::UnhandledKeyChar(const FCharacterEvent& CharacterEvent)
{
if (OnUnhandledKeyChar.IsBound())
{
return OnUnhandledKeyChar.Execute(CharacterEvent);
}
return false;
}
void SWebBrowserView::SetParentWindow(TSharedPtr<SWindow> Window)
{
SetupParentWindowHandlers();
if (BrowserWindow.IsValid())
{
BrowserWindow->SetParentWindow(Window);
}
}
void SWebBrowserView::SetBrowserKeyboardFocus()
{
BrowserWindow->OnFocus(HasAnyUserFocusOrFocusedDescendants(), false);
}
void SWebBrowserView::HandleConsoleMessage(const FString& Message, const FString& Source, int32 Line, EWebBrowserConsoleLogSeverity Serverity)
{
OnConsoleMessage.ExecuteIfBound(Message, Source, Line, Serverity);
}
#undef LOCTEXT_NAMESPACE