DescriptionPrint cross-domain access errors on calling window rather than target.
Currently, on cross-domain access errors, such as when a frame is
denied permission to navigate another frame,
LocalDOMWindow::printErrorMessage is called on the target window,
rather than the calling window. This CL changes these errors to be
printed on the calling window instead. There doesn't appear to be a
good reason for printing on the target, and it seems that IE and
Firefox already print similar messages on the source -- see
https://codereview.chromium.org/1085973003/ for more discussion.
Printing on the calling window makes more sense, and it makes it
easier to refactor error messages to work with out-of-process iframes
(which will happen in https://codereview.chromium.org/1085973003/).
BUG=478254
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194200
Patch Set 1 #Patch Set 2 : Add a test #
Messages
Total messages: 8 (2 generated)
|