mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
alloy: Fix flaky OnDraggableRegionsChanged behavior (fixes issue #3374)
Disable BackForwardCache globally for the Alloy runtime so that blink::RuntimeEnabledFeatures::BackForwardCacheEnables reports the correct value in the renderer process.
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
#include "tests/ceftests/test_handler.h"
|
||||
#include "tests/gtest/include/gtest/gtest.h"
|
||||
|
||||
// Set to 1 to enable verbose debugging info logging.
|
||||
#define VERBOSE_DEBUGGING 0
|
||||
|
||||
namespace {
|
||||
|
||||
const char kTestHTMLWithRegions[] =
|
||||
@@ -100,6 +103,19 @@ class DraggableRegionsTestHandler : public TestHandler,
|
||||
|
||||
draggable_regions_changed_ct_++;
|
||||
|
||||
#if VERBOSE_DEBUGGING
|
||||
LOG(INFO) << "step " << step_ << " regions.size " << regions.size()
|
||||
<< " url " << frame->GetURL().ToString();
|
||||
if (regions.size() == 2) {
|
||||
LOG(INFO) << " region[0] x " << regions[0].bounds.x << " y "
|
||||
<< regions[0].bounds.y << " width " << regions[0].bounds.width
|
||||
<< " height " << regions[0].bounds.height;
|
||||
LOG(INFO) << " region[1] x " << regions[1].bounds.x << " y "
|
||||
<< regions[1].bounds.y << " width " << regions[1].bounds.width
|
||||
<< " height " << regions[1].bounds.height;
|
||||
}
|
||||
#endif // VERBOSE_DEBUGGING
|
||||
|
||||
switch (step_) {
|
||||
case kStepWithRegions:
|
||||
case kStepWithChangingRegions2:
|
||||
|
Reference in New Issue
Block a user