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

Unified Diff: third_party/WebKit/Source/modules/plugins/DOMPluginArray.cpp

Issue 2688483002: ClientRedirect reload should use FrameLoadTypeReloadMainResource (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/plugins/DOMPluginArray.cpp
diff --git a/third_party/WebKit/Source/modules/plugins/DOMPluginArray.cpp b/third_party/WebKit/Source/modules/plugins/DOMPluginArray.cpp
index 8fa5d5a809fc9458c42394cf398737e60f810ee1..b1d675e1e84dcd6e3fd72ad3a0b67bd515a11d9c 100644
--- a/third_party/WebKit/Source/modules/plugins/DOMPluginArray.cpp
+++ b/third_party/WebKit/Source/modules/plugins/DOMPluginArray.cpp
@@ -22,6 +22,7 @@
#include "core/frame/LocalFrame.h"
#include "core/page/Page.h"
+#include "platform/RuntimeEnabledFeatures.h"
#include "platform/plugins/PluginData.h"
#include "wtf/Vector.h"
#include "wtf/text/AtomicString.h"
@@ -67,8 +68,12 @@ void DOMPluginArray::refresh(bool reload) {
if (!frame())
return;
Page::refreshPlugins();
- if (reload)
- frame()->reload(FrameLoadTypeReload, ClientRedirectPolicy::ClientRedirect);
+ if (reload) {
+ frame()->reload(RuntimeEnabledFeatures::fasterLocationReloadEnabled()
+ ? FrameLoadTypeReloadMainResource
+ : FrameLoadTypeReload,
+ ClientRedirectPolicy::ClientRedirect);
+ }
}
PluginData* DOMPluginArray::pluginData() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698