Skip to content

Commit

Permalink
fix: disable LayoutNG to prevent random crashes in selection calcuati…
Browse files Browse the repository at this point in the history
…ons (#19808)

* fix: disable LayoutNG to prevent random crashes in selection calcuations

* Update atom_browser_main_parts.cc
  • Loading branch information
MarshallOfSound committed Aug 17, 2019
1 parent ffd1d6d commit 5ca94a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions atom/browser/atom_browser_main_parts.cc
Expand Up @@ -48,6 +48,7 @@
#include "services/device/public/mojom/constants.mojom.h"
#include "services/network/public/cpp/features.h"
#include "services/service_manager/public/cpp/connector.h"
#include "third_party/blink/public/common/features.h"
#include "ui/base/idle/idle.h"
#include "ui/base/material_design/material_design_controller.h"
#include "ui/base/ui_base_switches.h"
Expand Down Expand Up @@ -209,6 +210,9 @@ void AtomBrowserMainParts::InitializeFeatureList() {
// when node integration is enabled.
disable_features +=
std::string(",") + features::kSpareRendererForSitePerProcess.name;
// Disable LayoutNG as it still isn't fully enabled in Chrome and currently
// is still causing crashes during every day use such as text selection.
disable_features += std::string(",") + blink::features::kLayoutNG.name;
auto feature_list = std::make_unique<base::FeatureList>();
feature_list->InitializeFromCommandLine(enable_features, disable_features);
base::FeatureList::SetInstance(std::move(feature_list));
Expand Down

0 comments on commit 5ca94a8

Please sign in to comment.