| Index: Source/core/inspector/InspectorApplicationCacheAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorApplicationCacheAgent.cpp b/Source/core/inspector/InspectorApplicationCacheAgent.cpp
|
| index 005c613e4baef6302761754a0a283487e200e8f4..271f1cf746f5575dd05c8758aa29d93fee789b0b 100644
|
| --- a/Source/core/inspector/InspectorApplicationCacheAgent.cpp
|
| +++ b/Source/core/inspector/InspectorApplicationCacheAgent.cpp
|
| @@ -71,7 +71,9 @@
|
| {
|
| m_state->setBoolean(ApplicationCacheAgentState::applicationCacheAgentEnabled, true);
|
| m_instrumentingAgents->setInspectorApplicationCacheAgent(this);
|
| - m_frontend->networkStateUpdated(networkStateNotifier().onLine());
|
| +
|
| + // We need to pass initial navigator.onOnline.
|
| + networkStateChanged(networkStateNotifier().onLine());
|
| }
|
|
|
| void InspectorApplicationCacheAgent::updateApplicationCacheStatus(LocalFrame* frame)
|
| @@ -88,18 +90,17 @@
|
| m_frontend->applicationCacheStatusUpdated(m_pageAgent->frameId(frame), manifestURL, static_cast<int>(status));
|
| }
|
|
|
| -void InspectorApplicationCacheAgent::networkStateChanged(LocalFrame* frame, bool online)
|
| -{
|
| - if (frame == m_pageAgent->inspectedFrame())
|
| - m_frontend->networkStateUpdated(online);
|
| +void InspectorApplicationCacheAgent::networkStateChanged(bool online)
|
| +{
|
| + m_frontend->networkStateUpdated(online);
|
| }
|
|
|
| void InspectorApplicationCacheAgent::getFramesWithManifests(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::FrameWithManifest> >& result)
|
| {
|
| result = TypeBuilder::Array<TypeBuilder::ApplicationCache::FrameWithManifest>::create();
|
|
|
| - LocalFrame* inspectedFrame = m_pageAgent->inspectedFrame();
|
| - for (Frame* frame = inspectedFrame; frame; frame = frame->tree().traverseNext(inspectedFrame)) {
|
| + LocalFrame* mainFrame = m_pageAgent->mainFrame();
|
| + for (Frame* frame = mainFrame; frame; frame = frame->tree().traverseNext(mainFrame)) {
|
| if (!frame->isLocalFrame())
|
| continue;
|
| DocumentLoader* documentLoader = toLocalFrame(frame)->loader().documentLoader();
|
|
|