setPrerenderingAllowed method

Future<void> setPrerenderingAllowed(
  1. bool isAllowed
)

Enable/disable prerendering manually.

This command is a short-term solution for https://crbug.com/1440085. See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA for more details.

TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.

Implementation

Future<void> setPrerenderingAllowed(bool isAllowed) async {
  await _client.send('Page.setPrerenderingAllowed', {
    'isAllowed': isAllowed,
  });
}