WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
34364
REGRESSION(canvas editor): URLs are not syntax-higlighted as links in source view
https://bugs.webkit.org/show_bug.cgi?id=34364
Summary
REGRESSION(canvas editor): URLs are not syntax-higlighted as links in source ...
Mark Rowe (bdash)
Reported
2010-01-29 18:34:57 PST
In
r54084
I've noticed that URLs are no longer syntax-highlighted as links in the source view of the Resources pane. This works correctly in a build of WebKit from earlier in the week.
Attachments
[PATCH] Proposed change.
(55.98 KB, patch)
2010-02-01 14:04 PST
,
Pavel Feldman
timothy
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2010-01-29 18:44:40 PST
<
rdar://problem/7594380
>
Pavel Feldman
Comment 2
2010-02-01 14:04:25 PST
Created
attachment 47869
[details]
[PATCH] Proposed change.
Timothy Hatcher
Comment 3
2010-02-01 14:08:22 PST
Comment on
attachment 47869
[details]
[PATCH] Proposed change.
> + if (content.length > 1 && (quote === "\"" || quote === "'")) > + content = content.substring(1, content.length - 1);
Shouldn't this be content.length >= 2 or content.length > 2?
Pavel Feldman
Comment 4
2010-02-02 06:00:40 PST
(In reply to
comment #3
)
> (From update of
attachment 47869
[details]
) > > + if (content.length > 1 && (quote === "\"" || quote === "'")) > > + content = content.substring(1, content.length - 1); > > Shouldn't this be content.length >= 2 or content.length > 2?
Yeah, you are probably right - I first thought that empty string is a valid case, but it really makes no sense to linkify it. I'll fix. Committing to
http://svn.webkit.org/repository/webkit/trunk
... M WebCore/ChangeLog M WebCore/inspector/front-end/ElementsTreeOutline.js M WebCore/inspector/front-end/NativeTextViewer.js M WebCore/inspector/front-end/SourceFrame.js M WebCore/inspector/front-end/SourceHTMLTokenizer.js M WebCore/inspector/front-end/SourceHTMLTokenizer.re2js M WebCore/inspector/front-end/SourceView.js M WebCore/inspector/front-end/TextEditorHighlighter.js M WebCore/inspector/front-end/inspector.css M WebCore/inspector/front-end/inspector.js M WebCore/inspector/front-end/inspectorSyntaxHighlight.css Committed
r54231
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug