$0-$4 should not resolve into a node if the node is from inaccessible context. Chromium bug: https://code.google.com/p/chromium/issues/detail?id=31590
Created attachment 180142 [details] Patch
Comment on attachment 180142 [details] Patch Attachment 180142 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/15402694
Comment on attachment 180142 [details] Patch Attachment 180142 [details] did not pass qt-wk2-ews (qt): Output: http://queues.webkit.org/results/15411605
Comment on attachment 180142 [details] Patch Attachment 180142 [details] did not pass efl-ews (efl): Output: http://queues.webkit.org/results/15412597
Comment on attachment 180142 [details] Patch Attachment 180142 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/15412598
Comment on attachment 180142 [details] Patch Attachment 180142 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/15399715
Created attachment 180178 [details] Patch with a fix for platforms that use JSC
Committed r138228: <http://trac.webkit.org/changeset/138228>