Exemplo n.º 1
0
 virtual void fire(Frame* frame)
 {
     OwnPtr<UserGestureIndicator> gestureIndicator = createUserGestureIndicator();
     FrameLoadRequest request(securityOrigin(), ResourceRequest(KURL(ParsedURLString, url()), referrer(), ReloadIgnoringCacheData), "_self");
     request.setLockBackForwardList(lockBackForwardList());
     request.setClientRedirect(ClientRedirect);
     frame->loader().load(request);
 }
 void fire(LocalFrame* frame) override
 {
     OwnPtr<UserGestureIndicator> gestureIndicator = createUserGestureIndicator();
     FrameLoadRequest request(originDocument(), m_url, "_self", m_shouldCheckMainWorldContentSecurityPolicy);
     request.setReplacesCurrentItem(replacesCurrentItem());
     request.setClientRedirect(ClientRedirect);
     frame->loader().load(request);
 }
 void fire(LocalFrame* frame) override
 {
     OwnPtr<UserGestureIndicator> gestureIndicator = createUserGestureIndicator();
     SubstituteData substituteData(SharedBuffer::create(), "text/plain", "UTF-8", KURL(), ForceSynchronousLoad);
     FrameLoadRequest request(originDocument(), url(), substituteData);
     request.setReplacesCurrentItem(true);
     request.setClientRedirect(ClientRedirect);
     frame->loader().load(request);
 }
Exemplo n.º 4
0
 virtual void fire(Frame* frame)
 {
     OwnPtr<UserGestureIndicator> gestureIndicator = createUserGestureIndicator();
     FrameLoadRequest frameRequest(m_submission->state()->sourceDocument()->securityOrigin());
     m_submission->populateFrameLoadRequest(frameRequest);
     frameRequest.setLockBackForwardList(lockBackForwardList());
     frameRequest.setTriggeringEvent(m_submission->event());
     frameRequest.setFormState(m_submission->state());
     frame->loader().load(frameRequest);
 }
 void fire(LocalFrame* frame) override
 {
     OwnPtr<UserGestureIndicator> gestureIndicator = createUserGestureIndicator();
     FrameLoadRequest frameRequest(originDocument());
     m_submission->populateFrameLoadRequest(frameRequest);
     frameRequest.setReplacesCurrentItem(replacesCurrentItem());
     frameRequest.setTriggeringEvent(m_submission->event());
     frameRequest.setForm(m_submission->form());
     frame->loader().load(frameRequest);
 }
 void fire(LocalFrame* frame) override
 {
     OwnPtr<UserGestureIndicator> gestureIndicator = createUserGestureIndicator();
     FrameLoadRequest request(originDocument(), url(), "_self");
     request.setReplacesCurrentItem(replacesCurrentItem());
     if (equalIgnoringFragmentIdentifier(frame->document()->url(), request.resourceRequest().url()))
         request.resourceRequest().setCachePolicy(ReloadIgnoringCacheData);
     request.setClientRedirect(ClientRedirect);
     frame->loader().load(request);
 }
 void fire(LocalFrame* frame) override
 {
     OwnPtr<UserGestureIndicator> gestureIndicator = createUserGestureIndicator();
     ResourceRequest resourceRequest =
         frame->loader().resourceRequestForReload(FrameLoadTypeReload, KURL(), ClientRedirect);
     if (resourceRequest.isNull())
         return;
     FrameLoadRequest request = FrameLoadRequest(nullptr, resourceRequest);
     request.setClientRedirect(ClientRedirect);
     frame->loader().load(request, FrameLoadTypeReload);
 }
Exemplo n.º 8
0
    virtual void fire(Frame* frame)
    {
        OwnPtr<UserGestureIndicator> gestureIndicator = createUserGestureIndicator();

        if (!m_historySteps) {
            FrameLoadRequest frameRequest(frame->document()->securityOrigin(), ResourceRequest(frame->document()->url()));
            frameRequest.setLockBackForwardList(lockBackForwardList());
            // Special case for go(0) from a frame -> reload only the frame
            // To follow Firefox and IE's behavior, history reload can only navigate the self frame.
            frame->loader().load(frameRequest);
            return;
        }
        // go(i!=0) from a frame navigates into the history of the frame only,
        // in both IE and NS (but not in Mozilla). We can't easily do that.
        frame->page()->mainFrame()->loader().client()->navigateBackForward(m_historySteps);
    }