DescriptionMake ContentSettingsObserver security checks work with OOPIF.
ContentSettingsObserver has several security checks that use the current frame's and the top frame's WebSecurityOrigin. For example, these checks are used when accessing localStorage, indexedDB, openDatabase, and webkitRequestFileSystem. With --site-per-process, when the top frame is remote, these checks crashed the renderer because they tried to get the SecurityOrigin of the top frame's Document, which doesn't exist.
This CL fixes these checks to access SecurityOrigins on frames, where the remote case is handled properly as part of origin replication (https://crbug.com/426512). It also adds an OOPIF browser test to ensure that the remote case works.
BUG=426512
Committed: https://crrev.com/75648bb31c04beca9c3a2507343ab2bf4a5bbae0
Cr-Commit-Position: refs/heads/master@{#310366}
Patch Set 1 #Patch Set 2 : #
Total comments: 21
Patch Set 3 : Address Charlie's feedback #Patch Set 4 : git cl format #
Total comments: 4
Patch Set 5 : Nits #
Total comments: 4
Patch Set 6 : Address Jochen's nit #Patch Set 7 : Rebase #
Messages
Total messages: 25 (6 generated)
|