Home | History | Annotate | Download | only in loader

Lines Matching refs:m_frame

111     : m_frame(frame)
134 m_provisionalDocumentLoader = client()->createDocumentLoader(m_frame, ResourceRequest(KURL(ParsedURLString, emptyString())), SubstituteData());
136 m_frame->document()->cancelParsing();
142 return static_cast<FrameLoaderClient*>(m_frame->client());
159 m_frame->navigationScheduler().startTimer();
168 if (m_frame->document() && m_frame->document()->parsing()) {
170 m_frame->document()->setParsing(false);
173 if (Document* doc = m_frame->document()) {
180 m_frame->navigationScheduler().cancel();
185 if (!m_currentItem || !m_frame->view())
189 if (needsHistoryItemRestore(m_loadType) && !m_frame->view()->wasScrolledByUser())
192 m_currentItem->setScrollPoint(m_frame->view()->scrollPosition());
194 if (m_frame->settings()->pinchVirtualViewportEnabled())
195 m_currentItem->setPinchViewportScrollPoint(m_frame->host()->pinchViewport().visibleRect().location());
199 if (m_frame->isMainFrame() && !m_frame->page()->inspectorController().deviceEmulationEnabled())
200 m_currentItem->setPageScaleFactor(m_frame->page()->pageScaleFactor());
207 ASSERT(m_frame->isMainFrame());
219 if (m_frame->document())
220 m_frame->document()->dispatchUnloadEvents();
223 if (Page* page = m_frame->page())
224 page->undoStack().didUnloadFrame(*m_frame);
240 m_frame->navigationScheduler().cancel();
248 m_frame->editor().clear();
249 m_frame->document()->cancelParsing();
250 m_frame->document()->prepareForDestruction();
251 m_frame->document()->removeFocusedElementOfSubtree(m_frame->document());
253 m_frame->selection().prepareForDestruction();
254 m_frame->eventHandler().clear();
255 if (m_frame->view())
256 m_frame->view()->clear();
258 m_frame->script().enableEval();
260 m_frame->navigationScheduler().clear();
283 m_currentItem->setDocumentState(m_frame->document()->formElementsState());
284 m_currentItem->setTarget(m_frame->tree().uniqueName());
314 else if (historyCommitType == InitialCommitInChildFrame && (!m_frame->tree().top()->isLocalFrame() || MixedContentChecker::isMixedContent(toLocalFrame(m_frame->tree().top())->document()->securityOrigin(), m_documentLoader->url())))
321 client()->dispatchDidCommitLoad(m_frame, m_currentItem.get(), historyCommitType);
323 InspectorInstrumentation::didCommitLoad(m_frame, m_documentLoader.get());
324 m_frame->page()->didCommitLoad(m_frame);
347 m_frame->document()->setReadyState(Document::Loading);
350 m_frame->domWindow()->statePopped(m_provisionalItem->stateObject());
355 m_frame->document()->initContentSecurityPolicy(m_documentLoader ? ContentSecurityPolicyResponseHeaders(m_documentLoader->response()) : ContentSecurityPolicyResponseHeaders());
357 if (!m_frame->document()->contentSecurityPolicy()->allowAncestors(m_frame)) {
362 Settings* settings = m_frame->document()->settings();
364 m_frame->document()->fetcher()->setImagesEnabled(settings->imagesEnabled());
365 m_frame->document()->fetcher()->setAutoLoadImages(settings->loadsImagesAutomatically());
371 m_frame->document()->parseDNSPrefetchControlHeader(dnsPrefetchControl);
379 m_frame->document()->setContentLanguage(AtomicString(headerContentLanguage));
384 m_frame->document()->setStateForNewFormElements(m_provisionalItem->documentState());
395 RefPtr<LocalFrame> protector = m_frame->view() ? m_frame : 0;
402 if (!m_frame->view())
407 m_frame->view()->restoreScrollbar();
408 scrollToFragmentWithParentBoundary(m_frame->document()->url());
418 for (Frame* child = m_frame->tree().firstChild(); child; child = child->tree().nextSibling()) {
427 for (Frame* ancestor = m_frame; ancestor; ancestor = ancestor->tree().parent()) {
436 RefPtr<LocalFrame> protect(m_frame);
439 if (m_frame->view())
440 m_frame->view()->handleLoadCompleted();
447 if (m_frame->document()->parsing())
451 if (!m_frame->document()->haveImportsLoaded())
455 if (m_frame->document()->fetcher()->requestCount())
459 if (m_frame->document()->isDelayingLoadEvent())
468 m_frame->document()->setReadyState(Document::Complete);
469 if (m_frame->document()->loadEventStillNeeded())
470 m_frame->document()->implicitClose();
472 m_frame->navigationScheduler().startTimer();
475 if (m_frame->page())
478 if (m_frame->view())
479 m_frame->view()->handleLoadCompleted();
484 RefPtr<LocalFrame> protect(m_frame);
486 if (Page* page = m_frame->page()) {
524 Settings* settings = m_frame->settings();
534 m_frame->document()->setURL(newURL);
540 if (m_frame->document()->loadEventFinished())
549 client()->dispatchDidReceiveTitle(m_frame->document()->title());
550 if (m_frame->document()->loadEventFinished())
565 if (!m_frame->host())
571 KURL oldURL = m_frame->document()->url();
575 m_frame->eventHandler().stopAutoscroll();
576 m_frame->domWindow()->enqueueHashchangeEvent(oldURL, url);
582 m_frame->view()->setWasScrolledByUser(false);
595 m_frame->domWindow()->statePopped(stateObject ? stateObject : SerializedScriptValue::nullValue());
600 RefPtr<LocalFrame> protect(m_frame);
602 for (Frame* descendant = m_frame->tree().traverseNext(m_frame); descendant; descendant = descendant->tree().traverseNext(m_frame)) {
607 Frame* parent = m_frame->tree().parent();
611 if (m_frame->view())
612 m_frame->view()->maintainScrollPositionAtAnchor(0);
617 for (Frame* frame = m_frame; frame; frame = frame->tree().parent()) {
648 if (!m_frame->tree().parent() || UserGestureIndicator::processingUserGesture())
655 if (m_frame->tree().parent() && !m_stateMachine.committedFirstRealDocumentLoad())
657 if (!m_frame->tree().parent() && !m_frame->page()->backForward().backForwardListCount())
681 if (m_frame->script().executeScriptIfJavaScriptURL(url))
685 reportLocalLoadFailed(m_frame, url.elidedString());
690 request.setFrameName(m_frame->document()->baseTarget());
707 ASSERT(m_frame->document());
709 RefPtr<LocalFrame> protect(m_frame);
718 RefPtr<LocalFrame> targetFrame = request.formState() ? 0 : findFrameForNavigation(AtomicString(request.frameName()), request.formState() ? request.formState()->sourceDocument() : m_frame->document());
719 if (targetFrame && targetFrame != m_frame) {
733 createWindowForRequest(request, *m_frame, action.policy(), request.shouldSendReferrer());
758 String srcdoc = m_frame->deprecatedLocalOwner()->fastGetAttribute(srcdocAttr);
806 if (m_frame->document()->pageDismissalEventBeingDispatched() != Document::NoDismissal)
815 RefPtr<LocalFrame> protect(m_frame);
819 for (RefPtr<Frame> child = m_frame->tree().firstChild(); child; child = child->tree().nextSibling()) {
877 RefPtr<LocalFrame> protect(m_frame);
880 if (m_frame->document()) {
882 pdl->timing()->setHasSameOriginAsPreviousDocument(securityOrigin->canRequest(m_frame->document()->url()));
902 m_frame->page()->chrome().client().needTouchEvents(false);
905 m_frame->navigationScheduler().cancel();
906 m_frame->editor().clearLastEditCommand();
912 LocalDOMWindow* window = m_frame->domWindow();
921 return m_frame->isMainFrame();
953 RefPtr<LocalFrame> protect(m_frame);
956 for (RefPtr<Frame> child = m_frame->tree().firstChild(); child; child = child->tree().nextSibling()) {
983 if (!isDocumentDoneLoading(m_frame->document()) && !m_inStopAllLoaders)
1000 m_frame->domWindow()->finishedLoading();
1007 if (m_frame->isMainFrame())
1008 m_frame->document()->viewportDescription().reportMobilePageStats(m_frame);
1018 FrameView* view = m_frame->view();
1019 if (!m_frame->page() || !view || !m_currentItem || !m_stateMachine.committedFirstRealDocumentLoad())
1030 float mainFrameScale = m_frame->settings()->pinchVirtualViewportEnabled() ? 1 : m_currentItem->pageScaleFactor();
1036 if (m_frame->isMainFrame() && m_currentItem->pageScaleFactor()) {
1040 m_frame->page()->setPageScaleFactor(m_currentItem->pageScaleFactor(), frameScrollOffset);
1042 if (m_frame->settings()->pinchVirtualViewportEnabled()) {
1051 m_frame->host()->pinchViewport().setLocation(pinchViewportOffset);
1057 if (m_frame->isMainFrame()) {
1058 if (ScrollingCoordinator* scrollingCoordinator = m_frame->page()->scrollingCoordinator())
1067 childrenToDetach.reserveCapacity(m_frame->tree().childCount());
1068 for (Frame* child = m_frame->tree().lastChild(); child; child = child->tree().previousSibling()) {
1081 if (Page* page = m_frame->page()) {
1090 InspectorInstrumentation::applyUserAgentOverride(m_frame, &userAgent);
1097 RefPtr<LocalFrame> protect(m_frame);
1108 RefPtr<LocalFrame> protect(m_frame);
1117 InspectorInstrumentation::frameDetachedFromParent(m_frame);
1129 Frame* parent = m_frame->tree().parent();
1131 m_frame->setView(nullptr);
1133 if (m_frame->owner() && m_frame->page())
1134 m_frame->page()->decrementSubframeCount();
1135 m_frame->willDetachFrameHost();
1139 m_frame->setView(nullptr);
1140 m_frame->willDetachFrameHost();
1143 m_frame->detachFromFrameHost();
1155 m_frame->script().clearForClose();
1164 m_frame->clearClient();
1198 RefPtr<LocalFrame> protect(m_frame);
1200 if (m_frame->document()->parser())
1201 m_frame->document()->parser()->stopParsing();
1206 if ((error.errorCode() != c.errorCode() || error.domain() != c.domain()) && m_frame->owner()) {
1208 ASSERT(m_frame->owner()->isLocal());
1209 m_frame->deprecatedLocalOwner()->renderFallbackContent();
1213 if (m_frame->page())
1227 && equalIgnoringFragmentIdentifier(m_frame->document()->url(), url)
1230 && !m_frame->document()->isFrameSet();
1235 FrameView* view = m_frame->view();
1240 RefPtr<LocalFrame> boundaryFrame(url.hasFragmentIdentifier() ? m_frame->document()->findUnsafeParentScrollPropagationBoundary() : 0);
1253 Page* page = m_frame->page();
1259 targetFrames.append(m_frame);
1260 for (Frame* child = m_framem_frame)) {
1273 if (!targetFrames[i]->tree().isDescendantOf(m_frame))
1288 if (m_frame->document()->pageDismissalEventBeingDispatched() != Document::NoDismissal)
1301 m_policyDocumentLoader = client()->createDocumentLoader(m_frame, request, substituteData.isValid() ? substituteData : defaultSubstituteDataForURL(request.url()));
1306 Frame* parent = m_frame->tree().parent();
1315 RefPtr<LocalFrame> protect(m_frame);
1332 if (!m_frame->page() || !m_policyDocumentLoader)
1336 m_frame->page()->inspectorController().resume();
1337 m_frame->navigationScheduler().cancel();
1348 m_provisionalDocumentLoader->appendRedirect(m_frame->document()->url());
1364 UseCounter::count(m_frame->domWindow()->document(), UseCounter::XFrameOptions);
1366 Frame* topFrame = m_frame->tree().top();
1367 if (m_frame == topFrame)
1374 UseCounter::count(m_frame->domWindow()->document(), UseCounter::XFrameOptionsSameOrigin);
1379 for (Frame* frame = m_frame->tree().parent(); frame; frame = frame->tree().parent()) {
1381 UseCounter::count(m_frame->domWindow()->document(), UseCounter::XFrameOptionsSameOriginWithBadAncestorChain);
1392 m_frame->document()->addConsoleMessageWithRequestIdentifier(JSMessageSource, ErrorMessageLevel, "Multiple 'X-Frame-Options' headers with conflicting values ('" + content + "') encountered when loading '" + url.elidedString() + "'. Falling back to 'DENY'.", requestIdentifier);
1395 m_frame->document()->addConsoleMessageWithRequestIdentifier(JSMessageSource, ErrorMessageLevel, "Invalid 'X-Frame-Options' header encountered when loading '" + url.elidedString() + "': '" + content + "' is not a recognized directive. The header will be ignored.", requestIdentifier);
1412 HTMLFrameOwnerElement* ownerElement = m_frame->deprecatedLocalOwner();
1421 Frame* frame = m_frame->tree().find(name);
1429 RefPtr<LocalFrame> protect(m_frame);
1430 if (m_frame->page()->defersLoading()) {
1451 if (!m_frame->script().canExecuteScripts(NotAboutToExecuteScript))
1454 if (Page* page = m_frame->page())
1455 page->inspectorController().didClearDocumentOfWindowObject(m_frame);
1456 InspectorInstrumentation::didClearDocumentOfWindowObject(m_frame);
1465 if (!m_frame->script().canExecuteScripts(NotAboutToExecuteScript))
1475 Frame* parentFrame = m_frame->tree().parent();
1478 if (FrameOwner* frameOwner = m_frame->owner())