commit | 01c9a7e71ca435651723e8cbcab0b3ad4c5351e2 | [log] [tgz] |
---|---|---|
author | Dan Sinclair <dsinclair@chromium.org> | Thu Nov 09 01:56:02 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 09 01:56:02 2017 |
tree | e3df4c679980908bf214a07a3f6266b100f262ad | |
parent | 345dab421e9ff30af4f11fc0b55ab02bdd7d1011 [diff] |
[pdf] Use a temporary list when unloading pages When traversing the |deferred_page_unloads_| list and handling the unloads it's possible for new pages to get added to the list which will invalidate the iterator. This CL swaps the list with an empty list and does the iteration on the list copy. New items that are unloaded while handling the defers will be unloaded at a later point. Bug: 780450 Change-Id: Ic7ced1c82227109784fb536ce19a4dd51b9119ac Reviewed-on: https://chromium-review.googlesource.com/758916 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#515056}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .