WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
141267
http/tests/misc/detached-frame-console.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=141267
Summary
http/tests/misc/detached-frame-console.html is flaky
Alexey Proskuryakov
Reported
2015-02-04 15:23:16 PST
http/tests/misc/detached-frame-console.html is flaky. In fact, it fails for me locally when run alone. run-webkit-tests http/tests/misc/detached-frame-console.html +CONSOLE MESSAGE: line 13: TypeError: undefined is not an object (evaluating 'w.location.foobar') This flakiness is due to some strange code in JSDOMWindow::getOwnPropertySlot(). It checks thisObject->impl().frame() to decide whether to expose window.location - but the result of frame() depends on whether the Frame object exists, not on any properly observable state! There is a FIXME in DOMWindow saying that it shouldn't be a FrameDestructionObserver. If something keeps the Frame alive, then we expose window.location, and when we try to access location.foobar, we get a cross-origin violation. And here again, we seem to print it to a wrong console - it should be in the console of a frame that runs the script, not in the console of the target window. Once all that is cleaned up, there will probably be no way for the test to verify the original fix (for
bug 130991
). I tried to make another test that confirms the fix, but didn't succeed yet.
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug