Skip to content

Commit 85a786f

Browse files
committed
[test] local flash: enlarge test flash; set override-plugin-power-saver-for-testing
to workaround size limitations in chrome_plugin_placeholder.cc: Cross-origin plugin content from %s must have a visible size larger than 400 x 300 pixels, or it will be blocked. Setting override-plugin-power-saver-for-testing or plugin.postMessage is not available
1 parent 899315e commit 85a786f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/data/platform_apps/local_flash/index.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function inject() {
88
chrome.test.sendMessage("Launched");
99
var child = document.createElement('div');
1010
// Set data="foo" to make this content same-origin (so it's not throttled).
11-
child.innerHTML = '<embed id="plugin" src="<swf_path>" style="max-width: 490px; max-height: 400px;" type="application/x-shockwave-flash" />';
11+
child.innerHTML = '<embed id="plugin" src="<swf_path>" style="min-width: 490px; min-height: 400px;" type="application/x-shockwave-flash" />';
1212
document.getElementById('content').appendChild(child);
1313
// Plugins are loaded synchronously during layout, so the plugin has either
1414
// been loaded or blocked at this point.

test/sanity/issue5706-local-flash/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,5 @@ def nw_arch():
6060
print "copying %s to %s" % (pluginsrc, plugindir)
6161
copytree(pluginsrc, plugindir)
6262

63-
subprocess.check_call([os.path.join(builddir, 'browser_tests'), '--gtest_filter=*LocalFlash*', '--disable-gpu'])
63+
subprocess.check_call([os.path.join(builddir, 'browser_tests'), '--gtest_filter=*LocalFlash*', '--disable-gpu',
64+
'--override-plugin-power-saver-for-testing=never'])

0 commit comments

Comments
 (0)