1. Go to: http://jsfiddle.net/FpcTz/ 2. Try and select the label text either by double clicking or dragging over some of it. The selection is lost and focus jumps to the field next to it. This happens for text within label tags that is linked to an input via the 'for' attribute.
This to merge following Blink Commit - https://src.chromium.org/viewvc/blink?view=revision&revision=174296 In Webkit GitHub source here: https://github.com/WebKit/WebKit/blob/51974bdf186d0771e79b230316ed0cddc5293f88/Source/WebCore/html/HTMLLabelElement.cpp#L136 ___ It fails following test - https://jsfiddle.net/9pznh8ak/show
(In reply to Ahmad Saleem from comment #1) > This to merge following Blink Commit - > > https://src.chromium.org/viewvc/blink?view=revision&revision=174296 > > In Webkit GitHub source here: > > https://github.com/WebKit/WebKit/blob/ > 51974bdf186d0771e79b230316ed0cddc5293f88/Source/WebCore/html/ > HTMLLabelElement.cpp#L136 > > ___ > > It fails following test - https://jsfiddle.net/9pznh8ak/show I tried to merge this: https://github.com/WebKit/WebKit/pull/5676 and the issue is: ``` auto control = this->control(); ``` If I try to change it to RefPtr then it leads to build failures. If I don't then it compiles but crashes on following test: imported/blink/fast/forms/label/detached-document.html
(In reply to Ahmad Saleem from comment #2) > (In reply to Ahmad Saleem from comment #1) > > This to merge following Blink Commit - > > > > https://src.chromium.org/viewvc/blink?view=revision&revision=174296 > > > > In Webkit GitHub source here: > > > > https://github.com/WebKit/WebKit/blob/ > > 51974bdf186d0771e79b230316ed0cddc5293f88/Source/WebCore/html/ > > HTMLLabelElement.cpp#L136 > > > > ___ > > > > It fails following test - https://jsfiddle.net/9pznh8ak/show > > I tried to merge this: > > https://github.com/WebKit/WebKit/pull/5676 > > and the issue is: > > ``` > auto control = this->control(); > ``` > > If I try to change it to RefPtr then it leads to build failures. If I don't > then it compiles but crashes on following test: > > imported/blink/fast/forms/label/detached-document.html While trying to find equivalent of "LocalFrame.h" header, it seems that Webkit has "Frame.h" as equivalent. I might try to add it and push it again in future but just wanted to comment so if someone else know, they can fix try it.
Committed 263420@main (01527bde3937): <https://commits.webkit.org/263420@main> Reviewed commits have been landed. Closing PR #12503 and removing active labels.
<rdar://problem/108566491>
Re-opened since this is blocked by bug 259558
New tracking radar: rdar://113011484
We might need to add following as well: https://src.chromium.org/viewvc/blink?view=revision&revision=182131 and https://src.chromium.org/viewvc/blink?view=revision&revision=185576