Bug 84126 - REGRESSION (r113503?): jsFiddle is broken (CSS :target selector doesn't work inside a cross-origin iframe)
Summary: REGRESSION (r113503?): jsFiddle is broken (CSS :target selector doesn't work ...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P1 Major
Assignee: Nobody
URL: http://jsfiddle.net/JsMzW/
Keywords: Regression
Depends on:
Blocks:
 
Reported: 2012-04-16 21:20 PDT by Masataka Yakura
Modified: 2012-04-19 08:08 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masataka Yakura 2012-04-16 21:20:15 PDT
Probably introduced by http://trac.webkit.org/changeset/113503 , the :target selector won't match an element if the document is loaded in a cross-origin iframe. That broke a few online code playground service like jsFiddle.
Comment 1 Alexey Proskuryakov 2012-04-17 13:04:09 PDT
Could you please provide steps to reproduce the brokenness with jsFiddle? What exactly is broken?
Comment 2 Thomas Sepez 2012-04-17 15:12:33 PDT
I expect this will be fixed by the changes to https://bugs.webkit.org/show_bug.cgi?id=83721.
Comment 3 Masataka Yakura 2012-04-19 04:19:11 PDT
(In reply to comment #1)
> Could you please provide steps to reproduce the brokenness with jsFiddle? What exactly is broken?

Oops. Apologies.

1. Open the fiddle page
2. Click "#hoge1" to see if the background of the area around the link becomes red, or click "#hoge2" to see if the background becomes yellow.

I've just realised that I tested with a bit of older Nightly build and Chrome Canary. I'll check with the latest build to see it still happens or not.
Comment 4 Masataka Yakura 2012-04-19 04:23:44 PDT
(In reply to comment #2)
> I expect this will be fixed by the changes to https://bugs.webkit.org/show_bug.cgi?id=83721.

Checked with the latest (r114599) build and the fiddle works as expected. Thanks!
Comment 5 Alexey Proskuryakov 2012-04-19 08:08:01 PDT
Thank you for checking and following up!