chore: debug crash on DevTools SetOwnerWindow (#47243)

This commit is contained in:
Shelley Vohr 2025-05-26 09:45:43 +02:00 committed by GitHub
commit c6f368acc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View file

@ -15,6 +15,7 @@
#include "base/containers/unique_ptr_adapters.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/sequence_checker.h"
#include "chrome/browser/devtools/devtools_embedder_message_dispatcher.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/devtools_frontend_host.h"
@ -271,6 +272,8 @@ class InspectableWebContents
// use, which guarantees that this set must not be persisted.
base::flat_set<std::string> synced_setting_names_;
SEQUENCE_CHECKER(sequence_checker_);
base::WeakPtrFactory<InspectableWebContents> weak_factory_{this};
};