Lines Matching refs:m_frame
114 : m_frame(frame)
136 visitor->trace(m_frame);
146 initialRequest.setFrameType(m_frame->isMainFrame() ? WebURLRequest::FrameTypeTopLevel : WebURLRequest::FrameTypeNested);
147 m_provisionalDocumentLoader = client()->createDocumentLoader(m_frame, initialRequest, SubstituteData());
149 m_frame->document()->cancelParsing();
155 return static_cast<FrameLoaderClient*>(m_frame->client());
172 m_frame->navigationScheduler().startTimer();
179 if (m_frame->document() && m_frame->document()->parsing()) {
181 m_frame->document()->setParsing(false);
184 if (Document* doc = m_frame->document()) {
191 m_frame->navigationScheduler().cancel();
196 if (!m_currentItem || !m_frame->view())
200 if (needsHistoryItemRestore(m_loadType) && !m_frame->view()->wasScrolledByUser())
203 m_currentItem->setScrollPoint(m_frame->view()->scrollPosition());
205 if (m_frame->settings()->pinchVirtualViewportEnabled())
206 m_currentItem->setPinchViewportScrollPoint(m_frame->host()->pinchViewport().visibleRect().location());
210 if (m_frame->isMainFrame())
211 m_currentItem->setPageScaleFactor(m_frame->page()->pageScaleFactor());
218 ASSERT(m_frame->isMainFrame());
230 if (m_frame->document())
231 m_frame->document()->dispatchUnloadEvents();
234 if (Page* page = m_frame->page())
235 page->undoStack().didUnloadFrame(*m_frame);
249 m_frame->navigationScheduler().cancel();
259 m_frame->editor().clear();
260 m_frame->document()->cancelParsing();
261 m_frame->document()->prepareForDestruction();
262 m_frame->document()->removeFocusedElementOfSubtree(m_frame->document());
263 m_frame->selection().prepareForDestruction();
264 m_frame->eventHandler().clear();
265 if (m_frame->view())
266 m_frame->view()->clear();
268 m_frame->script().enableEval();
270 m_frame->navigationScheduler().cancel();
283 if (!m_frame->document()->loader())
288 RefPtr<DocumentLoader> documentLoader(m_frame->document()->loader());
290 UseCounter::count(*m_frame->document(), UseCounter::ReplaceDocumentViaJavaScriptURL);
294 DocumentInit init(m_frame->document()->url(), m_frame);
302 if (!m_frame->page())
322 m_currentItem->setDocumentState(m_frame->document()->formElementsState());
323 m_currentItem->setTarget(m_frame->tree().uniqueName());
353 else if (historyCommitType == InitialCommitInChildFrame && (!m_frame->tree().top()->isLocalFrame() || MixedContentChecker::isMixedContent(toLocalFrame(m_frame->tree().top())->document()->securityOrigin(), m_documentLoader->url())))
360 client()->dispatchDidCommitLoad(m_frame, m_currentItem.get(), historyCommitType);
362 InspectorInstrumentation::didCommitLoad(m_frame, m_documentLoader.get());
363 m_frame->page()->didCommitLoad(m_frame);
369 m_frame->document()->setReadyState(Document::Loading);
372 m_frame->domWindow()->statePopped(m_provisionalItem->stateObject());
377 m_frame->document()->initContentSecurityPolicy(m_documentLoader ? m_documentLoader->releaseContentSecurityPolicy() : ContentSecurityPolicy::create());
379 Settings* settings = m_frame->document()->settings();
381 m_frame->document()->fetcher()->setImagesEnabled(settings->imagesEnabled());
382 m_frame->document()->fetcher()->setAutoLoadImages(settings->loadsImagesAutomatically());
388 m_frame->document()->parseDNSPrefetchControlHeader(dnsPrefetchControl);
396 m_frame->document()->setContentLanguage(AtomicString(headerContentLanguage));
401 m_frame->document()->setStateForNewFormElements(m_provisionalItem->documentState());
412 RefPtrWillBeRawPtr<LocalFrame> protect(m_frame->view() ? m_frame.get() : nullptr);
419 if (!m_frame->view())
424 m_frame->view()->restoreScrollbar();
425 scrollToFragmentWithParentBoundary(m_frame->document()->url());
435 for (Frame* child = m_frame->tree().firstChild(); child; child = child->tree().nextSibling()) {
447 for (Frame* ancestor = m_frame; ancestor; ancestor = ancestor->tree().parent()) {
456 RefPtrWillBeRawPtr<LocalFrame> protect(m_frame.get());
458 if (m_frame->view())
459 m_frame->view()->handleLoadCompleted();
461 if (m_frame->document()->isLoadCompleted() && m_stateMachine.committedFirstRealDocumentLoad())
465 if (m_frame->document()->parsing())
469 if (!m_frame->document()->haveImportsLoaded())
473 if (m_frame->document()->fetcher()->requestCount())
477 if (m_frame->document()->isDelayingLoadEvent())
485 m_frame->document()->setReadyState(Document::Complete);
486 if (m_frame->document()->loadEventStillNeeded())
487 m_frame->document()->implicitClose();
489 m_frame->navigationScheduler().startTimer();
492 if (m_frame->page())
495 if (m_frame->view())
496 m_frame->view()->handleLoadCompleted();
501 if (Page* page = m_frame->page()) {
533 Settings* settings = m_frame->settings();
543 m_frame->document()->setURL(newURL);
549 if (m_frame->document()->loadEventFinished())
558 client()->dispatchDidReceiveTitle(m_frame->document()->title());
559 if (m_frame->document()->loadEventFinished())
574 if (!m_frame->host())
580 KURL oldURL = m_frame->document()->url();
584 m_frame->eventHandler().stopAutoscroll();
585 m_frame->domWindow()->enqueueHashchangeEvent(oldURL, url);
591 m_frame->view()->setWasScrolledByUser(false);
598 m_frame->domWindow()->statePopped(stateObject ? stateObject : SerializedScriptValue::nullValue());
603 RefPtrWillBeRawPtr<LocalFrame> protect(m_frame.get());
605 for (Frame* descendant = m_frame->tree().traverseNext(m_frame); descendant; descendant = descendant->tree().traverseNext(m_frame)) {
610 Frame* parent = m_frame->tree().parent();
614 if (m_frame->view())
615 m_frame->view()->maintainScrollPositionAtAnchor(0);
643 if (!m_frame->tree().parent() || UserGestureIndicator::processingUserGesture())
650 if (m_frame->tree().parent() && !m_stateMachine.committedFirstRealDocumentLoad())
652 if (!m_frame->tree().parent() && !m_frame->page()->backForward().backForwardListCount())
671 request.resourceRequest().setFrameType(m_frame->isMainFrame() ? WebURLRequest::FrameTypeTopLevel : WebURLRequest::FrameTypeNested);
678 if (m_frame->script().executeScriptIfJavaScriptURL(url))
682 reportLocalLoadFailed(m_frame, url.elidedString());
687 request.setFrameName(m_frame->document()->baseTarget());
725 ASSERT(m_frame->document());
727 RefPtrWillBeRawPtr<LocalFrame> protect(m_frame.get());
736 RefPtrWillBeRawPtr<LocalFrame> targetFrame = request.formState() ? 0 : findFrameForNavigation(AtomicString(request.frameName()), request.formState() ? request.formState()->sourceDocument() : m_frame->document());
737 if (targetFrame && targetFrame.get() != m_frame) {
753 createWindowForRequest(request, *m_frame, action.policy(), request.shouldSendReferrer());
778 String srcdoc = m_frame->deprecatedLocalOwner()->fastGetAttribute(srcdocAttr);
816 request.setFrameType(m_frame->isMainFrame() ? WebURLRequest::FrameTypeTopLevel : WebURLRequest::FrameTypeNested);
826 request.setHTTPReferrer(Referrer(m_frame->document()->outgoingReferrer(), m_frame->document()->referrerPolicy()));
840 if (m_frame->document()->pageDismissalEventBeingDispatched() != Document::NoDismissal)
849 RefPtrWillBeRawPtr<LocalFrame> protect(m_frame.get());
853 for (RefPtrWillBeRawPtr<Frame> child = m_frame->tree().firstChild(); child; child = child->tree().nextSibling()) {
905 RefPtrWillBeRawPtr<LocalFrame> protect(m_frame.get());
908 if (m_frame->document()) {
910 pdl->timing()->setHasSameOriginAsPreviousDocument(securityOrigin->canRequest(m_frame->document()->url()));
921 m_frame->detachChildren();
930 m_frame->page()->chrome().client().needTouchEvents(false);
933 m_frame->navigationScheduler().cancel();
934 m_frame->editor().clearLastEditCommand();
940 LocalDOMWindow* window = m_frame->domWindow();
948 return m_frame->isMainFrame();
980 RefPtrWillBeRawPtr<LocalFrame> protect(m_frame.get());
983 for (RefPtrWillBeRawPtr<Frame> child = m_frame->tree().firstChild(); child; child = child->tree().nextSibling()) {
1011 if (!isDocumentDoneLoading(m_frame->document()) && !m_inStopAllLoaders)
1028 m_frame->domWindow()->finishedLoading();
1035 if (m_frame->isMainFrame())
1036 m_frame->document()->viewportDescription().reportMobilePageStats(m_frame);
1046 FrameView* view = m_frame->view();
1047 if (!m_frame->page() || !view || !m_currentItem || !m_stateMachine.committedFirstRealDocumentLoad())
1058 float mainFrameScale = m_frame->settings()->pinchVirtualViewportEnabled() ? 1 : m_currentItem->pageScaleFactor();
1064 if (m_frame->isMainFrame() && m_currentItem->pageScaleFactor()) {
1068 m_frame->page()->setPageScaleFactor(m_currentItem->pageScaleFactor(), frameScrollOffset);
1070 if (m_frame->settings()->pinchVirtualViewportEnabled()) {
1079 m_frame->host()->pinchViewport().setLocation(pinchViewportOffset);
1085 if (m_frame->isMainFrame()) {
1086 if (ScrollingCoordinator* scrollingCoordinator = m_frame->page()->scrollingCoordinator())
1095 if (Page* page = m_frame->page()) {
1104 InspectorInstrumentation::applyUserAgentOverride(m_frame, &userAgent);
1111 // The caller must protect a reference to m_frame.
1112 ASSERT(m_frame->refCount() > 1);
1115 InspectorInstrumentation::frameDetachedFromParent(m_frame);
1125 Frame* parent = m_frame->tree().parent();
1127 m_frame->setView(nullptr);
1129 if (m_frame->owner() && m_frame->page())
1130 m_frame->page()->decrementSubframeCount();
1131 m_frame->willDetachFrameHost();
1135 m_frame->setView(nullptr);
1136 m_frame->willDetachFrameHost();
1139 m_frame->detachFromFrameHost();
1152 m_frame->script().clearForClose();
1161 m_frame->clearClient();
1168 RefPtrWillBeRawPtr<LocalFrame> protect(m_frame.get());
1170 if (m_frame->document()->parser())
1171 m_frame->document()->parser()->stopParsing();
1176 if ((error.errorCode() != c.errorCode() || error.domain() != c.domain()) && m_frame->owner()) {
1178 ASSERT(m_frame->owner()->isLocal());
1179 m_frame->deprecatedLocalOwner()->renderFallbackContent();
1183 if (m_frame->page())
1197 && equalIgnoringFragmentIdentifier(m_frame->document()->url(), url)
1200 && !m_frame->document()->isFrameSet();
1205 FrameView* view = m_frame->view();
1210 RefPtrWillBeRawPtr<LocalFrame> boundaryFrame = url.hasFragmentIdentifier() ? m_frame->document()->findUnsafeParentScrollPropagationBoundary() : 0;
1223 Page* page = m_frame->page();
1229 targetFrames.append(m_frame);
1230 for (Frame* child = m_frame->tree().firstChild(); child; child = child->tree().traverseNext(m_frame)) {
1243 if (!targetFrames[i]->tree().isDescendantOf(m_frame))
1283 if (m_frame->document()->pageDismissalEventBeingDispatched() != Document::NoDismissal)
1296 m_policyDocumentLoader = client()->createDocumentLoader(m_frame, request, substituteData.isValid() ? substituteData : defaultSubstituteDataForURL(request.url()));
1301 Frame* parent = m_frame->tree().parent();
1315 RefPtrWillBeRawPtr<LocalFrame> protect(m_frame.get());
1333 if (!m_frame->page() || !m_policyDocumentLoader)
1337 m_frame->page()->inspectorController().resume();
1338 m_frame->navigationScheduler().cancel();
1349 m_provisionalDocumentLoader->appendRedirect(m_frame->document()->url());
1365 UseCounter::count(m_frame->domWindow()->document(), UseCounter::XFrameOptions);
1367 Frame* topFrame = m_frame->tree().top();
1368 if (m_frame == topFrame)
1375 UseCounter::count(m_frame->domWindow()->document(), UseCounter::XFrameOptionsSameOrigin);
1380 for (Frame* frame = m_frame->tree().parent(); frame; frame = frame->tree().parent()) {
1382 UseCounter::count(m_frame->domWindow()->document(), UseCounter::XFrameOptionsSameOriginWithBadAncestorChain);
1395 m_frame->document()->addConsoleMessage(consoleMessage.release());
1401 m_frame->document()->addConsoleMessage(consoleMessage.release());
1419 HTMLFrameOwnerElement* ownerElement = m_frame->deprecatedLocalOwner();
1428 Frame* frame = m_frame->tree().find(name);
1436 RefPtrWillBeRawPtr<LocalFrame> protect(m_frame.get());
1437 if (m_frame->page()->defersLoading()) {
1450 request.setFrameType(m_frame->isMainFrame() ? WebURLRequest::FrameTypeTopLevel : WebURLRequest::FrameTypeNested);
1462 if (!m_frame->script().canExecuteScripts(NotAboutToExecuteScript))
1465 if (Page* page = m_frame->page())
1466 page->inspectorController().didClearDocumentOfWindowObject(m_frame);
1467 InspectorInstrumentation::didClearDocumentOfWindowObject(m_frame);
1476 if (!m_frame->script().canExecuteScripts(NotAboutToExecuteScript))
1486 Frame* parentFrame = m_frame->tree().parent();
1489 if (FrameOwner* frameOwner = m_frame->owner())