New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 714101 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit 29 days ago
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug



Sign in to add a comment

Incorrect source map mappings for <style> tags unless appended dynamically

Reported by m.go...@gmail.com, Apr 21 2017

Issue description

UserAgent: 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.
 
test-sourcemaps-link.html
1.6 KB View Download
test-sourcemaps-style-static.html
1.2 KB View Download
test-sourcemaps-style.html
1.5 KB View Download

Comment 1 by m.go...@gmail.com, Apr 21 2017

I experience this bug both in Canary 60 and in stable 58.
Cc: ligim...@chromium.org
Labels: -Pri-2 Needs-Triage-M58 Needs-Bisect Prestable-58.0.3029.81 Pri-1

Comment 3 by caseq@chromium.org, Apr 23 2017

Components: -Platform>DevTools Platform>DevTools>Authoring
Owner: lushnikov@chromium.org
Status: Assigned (was: Unconfirmed)
Cc: kavvaru@chromium.org
Labels: Needs-Feedback
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,
714101.mp4
1.0 MB View Download

Comment 5 by m.go...@gmail.com, 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.

Comment 6 by m.go...@gmail.com, May 3 2017

@kavvaru Ping. The bug still has the Needs-Feedback label, I think I provided all needed info.
Labels: -Needs-Feedback -Needs-Triage-M58 -Prestable-58.0.3029.81 Needs-Triage-M62
Team , please re-triage in latest chrome version.
Cc: hdodda@chromium.org
Labels: Needs-Feedback
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!
714101.mp4
1.0 MB View Download
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..!
Status: WontFix (was: Assigned)
Closing since there is no valid updates. Please reopen if you still encounter the same.

Comment 11 by m.go...@gmail.com, 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?

Comment 12 by m.go...@gmail.com, 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.
chrome-bug-sourcemap.mov
2.7 MB Download

Comment 13 by m.go...@gmail.com, Nov 22 2017

I've opened issue 787792 since I can't get this one reopened.

Sign in to add a comment