Chromium Code Reviews| Index: Source/core/page/Page.cpp |
| diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp |
| index 901f784c897270eee7b68bfdd4cffbf536873f5f..90c96e47366a7e78bc26e3ac4f1662bf873a46b4 100644 |
| --- a/Source/core/page/Page.cpp |
| +++ b/Source/core/page/Page.cpp |
| @@ -93,12 +93,13 @@ void Page::networkStateChanged(bool online) |
| if (frame->isLocalFrame()) |
| frames.append(toLocalFrame(frame)); |
| } |
| - InspectorInstrumentation::networkStateChanged(page, online); |
| } |
| AtomicString eventName = online ? EventTypeNames::online : EventTypeNames::offline; |
| - for (unsigned i = 0; i < frames.size(); i++) |
| + for (unsigned i = 0; i < frames.size(); i++) { |
| frames[i]->domWindow()->dispatchEvent(Event::create(eventName)); |
| + InspectorInstrumentation::networkStateChanged(frames[i].get(), online); |
|
yurys
2015/02/03 06:44:00
Don't we expect this event to be dispatched once p
pfeldman
2015/02/03 07:09:16
Present plan is to attach to connected localframe
|
| + } |
| } |
| float deviceScaleFactor(LocalFrame* frame) |