Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 1799253002: Stricter user gestures for touch - measure and warn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com>
8 * Copyright (C) 2011 Google Inc. All rights reserved. 8 * Copyright (C) 2011 Google Inc. All rights reserved.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 886
887 if (m_inStopAllLoaders) 887 if (m_inStopAllLoaders)
888 return; 888 return;
889 889
890 if (m_frame->page()->defersLoading() && isBackForwardLoadType(frameLoadType) ) { 890 if (m_frame->page()->defersLoading() && isBackForwardLoadType(frameLoadType) ) {
891 m_deferredHistoryLoad = DeferredHistoryLoad::create(passedRequest.resour ceRequest(), historyItem, frameLoadType, historyLoadType); 891 m_deferredHistoryLoad = DeferredHistoryLoad::create(passedRequest.resour ceRequest(), historyItem, frameLoadType, historyLoadType);
892 return; 892 return;
893 } 893 }
894 894
895 FrameLoadRequest request(passedRequest); 895 FrameLoadRequest request(passedRequest);
896 request.resourceRequest().setHasUserGesture(UserGestureIndicator::processing UserGesture()); 896 request.resourceRequest().setHasUserGesture(UserGestureIndicator::processing UserGestureUntracked());
897 897
898 if (!prepareRequestForThisFrame(request)) 898 if (!prepareRequestForThisFrame(request))
899 return; 899 return;
900 900
901 RefPtrWillBeRawPtr<Frame> targetFrame = request.form() ? nullptr : m_frame-> findFrameForNavigation(AtomicString(request.frameName()), *m_frame); 901 RefPtrWillBeRawPtr<Frame> targetFrame = request.form() ? nullptr : m_frame-> findFrameForNavigation(AtomicString(request.frameName()), *m_frame);
902 902
903 if (isBackForwardLoadType(frameLoadType)) { 903 if (isBackForwardLoadType(frameLoadType)) {
904 ASSERT(historyItem); 904 ASSERT(historyItem);
905 m_provisionalItem = historyItem; 905 m_provisionalItem = historyItem;
906 } 906 }
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 // FIXME: We need a way to propagate insecure requests policy flags to 1574 // FIXME: We need a way to propagate insecure requests policy flags to
1575 // out-of-process frames. For now, we'll always use default behavior. 1575 // out-of-process frames. For now, we'll always use default behavior.
1576 if (!parentFrame->isLocalFrame()) 1576 if (!parentFrame->isLocalFrame())
1577 return nullptr; 1577 return nullptr;
1578 1578
1579 ASSERT(toLocalFrame(parentFrame)->document()); 1579 ASSERT(toLocalFrame(parentFrame)->document());
1580 return toLocalFrame(parentFrame)->document()->insecureNavigationsToUpgrade() ; 1580 return toLocalFrame(parentFrame)->document()->insecureNavigationsToUpgrade() ;
1581 } 1581 }
1582 1582
1583 } // namespace blink 1583 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698