New issue
Advanced search Search tips

Issue 877834 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 24
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Lines on Template string with sourcemaps definition inside it are being removed on the Source tab

Reported by henrique...@gmail.com, Aug 26

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Steps to reproduce the problem:
1. Go to https://weak-mammal.glitch.me/
2. On source tab, open /dist/index.mjs
3. See function "createWorker" (Line 191)
4. Look the original file on Network tab (Line 192)

What is the expected behavior?
The line 192 should exist on the Source tab.

What went wrong?
The Source tab is considering the // sourcemap inside the template string as a source map, but it is a template code that will generate a worker with the source map.

Code from Source tab: https://monosnap.com/file/HDk2dCHigKnHj8HXoY8ieSb6y6p7LR

Code from Network tab: https://monosnap.com/file/6fKxAH6fAQOUVIvAmq86ZolF5MlyRO

The original code can be found here on the Worker-dom project from Amp: https://github.com/ampproject/worker-dom/blob/master/src/main-thread/worker.ts

Did this work before? N/A 

Chrome version: 68.0.3440.106  Channel: stable
OS Version: OS X 10.12.6
Flash Version:
 
Labels: Needs-Triage-M68
Owner: kozy@chromium.org
Status: Assigned (was: Unconfirmed)
Status: Fixed (was: Assigned)
Should be fixed at least in Canary.
Just to confirm it, I tested it out on Version 71.0.3560.0 Canary and it was fixed. Thank you for the fix guys.

Sign in to add a comment