Take the frames given in: https://bugs.webkit.org/show_bug.cgi?id=81970 and run them in a cross origin setting (local hard drive works for chromium). Note that there are debug errors in the console. There is no way to check for outer frame access to avoid triggering these error. I suspect the real fix is to implement the SecurityExceptions for x-origin window access and stop logging these error (just let the exception be the only thing given).
*** This bug has been marked as a duplicate of bug 43504 ***