DescriptionMake error messages for cross-domain access OOPIF-friendly.
* Make crossDomainAccessErrorMessage and
sanitizedCrossDomainAccessErrorMessage non-virtual members of
DOMWindow, and tweak the logic to also work on RemoteDOMWindows
using replicated origins.
* Change BindingSecurity::shouldAllowAccessToFrame to actually throw
exceptions when encountering a RemoteFrame. Previously, we returned
false without throwing exceptions, which was breaking expectations
for layout tests when running with --site-per-process.
BUG=478254, 477150
TEST=Run
http/tests/security/cross-frame-access-set-window-properties.html with
--site-per-process, and ensure the calls that are supposed to throw
exceptions actually do so.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194331
Patch Set 1 #
Total comments: 5
Patch Set 2 : #
Total comments: 6
Patch Set 3 : canAccessDocument -> canAccessFrame, convert printErrorMessage to use callingWindow. #Patch Set 4 : Make things work when shouldAllowAccessToNode passes a Document with a null frame() #Patch Set 5 : Undo accidental change #Patch Set 6 : Fix compile #Patch Set 7 : Rebase #Patch Set 8 : Rebase (pull in CL to print errors on calling window) #
Total comments: 4
Messages
Total messages: 21 (3 generated)
|