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

Issue 698077 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 697334
Owner:
Last visit > 30 days ago
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

DevTools: scripts reported to front-end have trailing newline

Project Member Reported by lushnikov@chromium.org, Mar 2 2017

Issue description

Chrome Version       : 58.0.3029.0, Linux

1. Download both files and serve them locally from the same folder, e.g. at "localhost:8000"
2. Navigate to localhost:8000
3. Open devtools and check "foo.js" in sources panel

Actual: foo.js has trailing new line
Expected: foo.js shouldn't have trailing new line


In fact, the trailing new line comes from V8 as a result to the script.requestContent() method.


 
index.html
31 bytes View Download
foo.js
26 bytes View Download
Description: Show this description
Status: WontFix (was: Assigned)
This file contains new line, we're cool enough to bring it through V8 for you and report it correctly back. :)
Thank you so much!!! Chromium is my favorite browser.
During debugging I found that we report source back correctly but lying in scriptParsed notification.
Status: Assigned (was: WontFix)
There are still NeedsManualRebaseline lines in TestExpectations associated with this bug -- I think this issue should be marked as Fixed when the relevant tests are manually rebaselined (with Tools/Scripts/webkit-patch rebaseline <testname>) and the lines are removed from TestExpectations. 
Project Member

Comment 9 by bugdroid1@chromium.org, Jun 14 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3849230c86df1bc057340a396106c7c8f3ebac15

commit 3849230c86df1bc057340a396106c7c8f3ebac15
Author: Alexey Kozyatinskiy <kozyatinskiy@chromium.org>
Date: Wed Jun 14 16:48:34 2017

[DevTools] reenable debugger/debugger-scripts

TBR=dgozman@chromium.org

Bug:  chromium:698077 
Change-Id: I42c1a6442449e5a518cd74ede24adc9804891acd
Reviewed-on: https://chromium-review.googlesource.com/535523
Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#479420}
[modify] https://crrev.com/3849230c86df1bc057340a396106c7c8f3ebac15/third_party/WebKit/LayoutTests/TestExpectations

Mergedinto: 697334
Status: Duplicate (was: Assigned)

Sign in to add a comment