Fix 2 flaky blink layout tests.

The test http/tests/misc/adopt-iframe-src-attr-after-remove.html as
always been a bit flaky:
https://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Fmisc%2Fadopt-iframe-src-attr-after-remove.html&testType=webkit_layout_tests

The reason is that navigations triggered by a script before the onload
handler don't generate back/forward entries.
See third_party/blink/public/web/web_history_commit_type.h

Sometimes, this test was fast enough so that no history entry was created.
Then history.back() failed and it ended with a timeout.

This is the same for:
http/tests/misc/resource-timing-iframe-restored-from-history.html

Bug: 862580, 831155
Change-Id: I3b8243c5f43c5043de8e23acfbe561a648c0f115
Reviewed-on: https://chromium-review.googlesource.com/1133170
Reviewed-by: Nate Chapin <japhet@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579001}
2 files changed