New issue
Advanced search Search tips

Issue 622291 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jun 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

source view corruption

Reported by hamay1...@gmail.com, Jun 22 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36

Steps to reproduce the problem:
1. open URL
https://hamayapp.appspot.com/static/scindent.html
2. click a mouse right button and select a 'View page source' menu.
3. move to a view-source page and search a word '</span' (by Ctrl-f).
4. line 778 shows a corrupting source code as follows.
   '... </span ...'
   the original source code doesn't include '</span' in line 778.

What is the expected behavior?
source page view shouldn't be corrupted.

What went wrong?
something memory overwrite?

Did this work before? N/A 

Chrome version: 51.0.2704.103  Channel: stable
OS Version: 6.3
Flash Version: Shockwave Flash 22.0 r0
 

Comment 1 by hamay1...@gmail.com, Jun 23 2016

this is a captured image of a view-source page.

image.png
57.2 KB View Download
Components: -Platform>DevTools Blink>ViewSource

Comment 3 by tkent@chromium.org, Aug 31 2016

Labels: OS-Mac
Status: Available (was: Unconfirmed)

Comment 4 by tkent@chromium.org, Sep 2 2016

Components: Blink>HTML>Parser
"</span" comes from tokenizer->bufferedCharacters().

void HTMLSourceTracker::start(...)
{
   if (token.type() == HTMLToken::Uninitialized && !m_isStarted) {
        m_previousSource.clear();
        if (tokenizer->numberOfBufferedCharacters())
            m_previousSource = tokenizer->bufferedCharacters();
    } else

I have no idea how to fix this.

Sorry, reported URL was moved to
https://hamayapp.appspot.com/static/scindent_oldZ_v142.html

This issue seems to be solved. Thanks!!
(59.0.3071.86 stable (64bit), automatically updated)

I checked similar issues.
 issue 692910 : seems to be solved too
 issue 596446 : not solved yet

Project Member

Comment 7 by sheriffbot@chromium.org, Jun 6 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 8 by tkent@chromium.org, Jun 8 2018

Status: WontFix (was: Untriaged)
Closing according to Comment 6.

Sign in to add a comment