Incorrect source map mappings for <style> tags unless appended dynamically
Reported by
m.go...@gmail.com,
Apr 21 2017
|
|||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36 Steps to reproduce the problem: 1. Open test-sourcemaps-style-static.html 2. Inspect "Test div" 3. Cmd+click/Ctrl+click some of the rules What is the expected behavior? The proper SCSS line should be focused. What went wrong? Incorrect lines get highlighted. The source map is interpreted in an incorrect way. Did this work before? N/A Chrome version: 60.0.3077.0 Channel: canary OS Version: OS X 10.12.4 Flash Version: I've attached two other files, one using `<link rel=stylesheet>` with a blob URL and the other one identical to the `test-sourcemaps-style-static.html` one but with all the HTML already present on the page instead of being appended dynamically. Those other files have correct source map mappings. All of them use exactly the same style text with the same source map so the difference is unexpected. Firefox behaves correctly in all cases, although it doesn't allow to Cmd+click individual rules, only the whole blocks. But at least mappings to the blocks are correct; in Chrome the static test case has them wrong, too.
,
Apr 21 2017
,
Apr 23 2017
,
Apr 24 2017
Unable to reproduce the issue on windows 7, Ubuntu 14.04 and Mac 10.12.4 using chrome version 58.0.3029.81 and canary 60.0.3078.0 with the below steps 1. Opened the attached test-sourcemaps-style-static.html 2.Inspect "Test div" 3.Cmd+click on the rules 4.Observed the proper SCSS line highlighted. Please find the attached screen cast and confirm if anything missed here. Thanks,
,
Apr 24 2017
The SCSS links you click lead to incorrect lines - they are closing lines of some blocks, often unrelated. Compare that with what appears for other files. Note that I described Cmd+clicking on individual *rules*, not on links to the SCSS file.
,
May 3 2017
@kavvaru Ping. The bug still has the Needs-Feedback label, I think I provided all needed info.
,
Jul 31 2017
Team , please re-triage in latest chrome version.
,
Aug 2 2017
Tested the issue on mac os 10.12.5 using chrome M62#62.0.3174.0 and followed the steps mentioned in comment #0. Observed that in firefox on comman+click on rules , the rule is focused and it is not redirected to any related scss files. Attached screencast for reference. @m.goleb-- Could you please check attached screencast and confirm us if firefox behavior is the expected behavior and if we have missed any steps ..please help us by providing the screencast of the expected result for better understanding. Thanks!
,
Sep 5 2017
m.goleb@, Friendly ping to get an update on this issue as per comment#8 to triage the issue from TE end. Could you please check the issue on latest chrome versions (stable#60.0.3112.113 & Canary#63.0.3205.0) & if possible ,please provide us the screencast of the issue if still issue observed. Thanks in advance..!
,
Oct 17 2017
Closing since there is no valid updates. Please reopen if you still encounter the same.
,
Oct 18 2017
re 10: I'm sorry for the delay in responding, I missed the notification. The bug is definitely still there, I've just checked on Canary 64.0.3243.0. I'll upload a screencast in a minute to make it clear what's the issue. Could you reopen the bug in the meantime?
,
Oct 18 2017
I'm attaching the screencast. Re commet #8: hdodda, you checked the wrong file. As I said in the issue description, the test-sourcemaps-style-static.html file is treated incorrectly, the other 2 files are examples of how it works fine.
,
Nov 22 2017
I've opened issue 787792 since I can't get this one reopened. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by m.go...@gmail.com
, Apr 21 2017