| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index 86461d98f0a7853cde6527ded0bac20f16c50ce8..9026eb77bb77ce6136f89d7ee932392703001b48 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -2227,8 +2227,10 @@ void Document::detach(const AttachContext& context)
|
| // If this document is the master for an HTMLImportsController, sever that
|
| // relationship. This ensures that we don't leave import loads in flight,
|
| // thinking they should have access to a valid frame when they don't.
|
| - if (m_importsController)
|
| - HTMLImportsController::removeFrom(*this);
|
| + if (m_importsController) {
|
| + m_importsController->dispose();
|
| + setImportsController(nullptr);
|
| + }
|
|
|
| m_timers.setTimerTaskRunner(
|
| Platform::current()->currentThread()->scheduler()->timerTaskRunner()->adoptClone());
|
|
|