I think this changed in the spec at some point. The thing is that no such alert, frame and window and stale element reference should return 404 instead of 400.
Created attachment 321533 [details]
Comment on attachment 321533 [details]
Committed r222703: <http://trac.webkit.org/changeset/222703>