"target" attribute seems to be ignored for javascript: links
Reported by
leose...@rambler.ru,
Sep 27
|
||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36 Example URL: Steps to reproduce the problem: Click on a <a href="javascript:foo()" target="test-iframe">link</a> What is the expected behavior? window.frames["test-iframe"].contentWindow.foo() should be called. What went wrong? window.foo() called. Does it occur on multiple sites: N/A Is it a problem with a plugin? N/A Did this work before? No Does this work in other browsers? Yes Chrome version: 67.0.3396.87 Channel: stable OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version:
,
Sep 27
,
Oct 16
leoseven@ Thanks for the issue. Tried creating and opening a Html file on Chrome with the above given code, but unable to see the expected or the actual behavior. Hence request you to provide a sample HTML file where this issue can be reproduced, which will help in further triaging. Thanks..
,
Oct 16
,
Oct 17
I don't see how this is related to JS parsing; toyoshim, can you provide some background on why you added that label?
,
Oct 17
Ah, sorry. I misunderstood that this was an issue on an attribute for an event handler. Let me remove the label.
,
Oct 17
,
Oct 20
Place both files to the same directory and open testhtml.html with Chrome. To see how it works on Firefox, open testhtml.html with Firefox.
,
Oct 20
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Nov 15
leoseven@ Thanks for the update. Able to reproduce the issue on Windows 10, Mac OS 10.13.6 and Ubuntu 17.10 on the latest Stable 70.0.3538.102 and the latest Canary 72.0.3610.0 as per comment #8. This is a Non-Regression issue as this is observed from M-60 chrome builds. Attached is the screen shot for reference. Hence marking this as Untriaged for further updates from Dev. Thanks..
,
Nov 21
Triager here. I checked html spec and confirmed that Chromium is not following the spec here. https://html.spec.whatwg.org/#following-hyperlinks-2 It seems that HTMLAnchorElement correctly generate FrameLoadRequest with the target, but FrameLoader doesn't execute the script on the correct frame. |
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by leose...@rambler.ru
, Sep 27