WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 60163
Web Inspector: fix incremental html highlight.
https://bugs.webkit.org/show_bug.cgi?id=60163
Summary
Web Inspector: fix incremental html highlight.
Pavel Podivilov
Reported
2011-05-04 05:59:04 PDT
Web Inspector: fix incremental html highlight. SourceHTMLTokenizer is declared to be stateless, however it uses _internalJavaScriptTokenizer and _internalCSSTokenizer fields as a part of its state. This makes incremental highlighting impossible, since SourceHTMLTokenizer state can not be fully restored from stringified state used by highlighter.
Attachments
Patch.
(9.88 KB, patch)
2011-05-04 06:00 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Patch.
(9.86 KB, patch)
2011-05-04 06:13 PDT
,
Pavel Podivilov
abarth
: review-
Details
Formatted Diff
Diff
Patch.
(16.68 KB, patch)
2011-05-06 02:25 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Patch.
(18.78 KB, patch)
2011-05-06 03:16 PDT
,
Pavel Podivilov
yurys
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Pavel Podivilov
Comment 1
2011-05-04 06:00:04 PDT
Created
attachment 92224
[details]
Patch.
Andrey Adaikin
Comment 2
2011-05-04 06:05:27 PDT
View in context:
https://bugs.webkit.org/attachment.cgi?id=92224&action=review
> Source/WebCore/inspector/front-end/SourceHTMLTokenizer.js:149 > + return WebInspector.SourceTokenizer.Registry.getInstance().getTokenizer("text/javascript");
wrong MIME type
> Source/WebCore/inspector/front-end/SourceHTMLTokenizer.re2js:148 > + return WebInspector.SourceTokenizer.Registry.getInstance().getTokenizer("text/javascript");
same
Andrey Adaikin
Comment 3
2011-05-04 06:06:56 PDT
I did not work with this code very closely, so you'll probably want to wait for somebody else's review :)
Pavel Podivilov
Comment 4
2011-05-04 06:13:14 PDT
Created
attachment 92228
[details]
Patch.
Adam Barth
Comment 5
2011-05-06 01:15:48 PDT
Comment on
attachment 92228
[details]
Patch. This patch causes many tests failures: inspector/console/command-line-api-inspect.html = TEXT inspector/debugger/debugger-breakpoints-not-activated-on-reload.html = TEXT inspector/debugger/debugger-cyclic-ref.html = TEXT inspector/debugger/debugger-eval-on-call-frame.html = TEXT Regressions: Unexpected tests timed out : (14) http/tests/appcache/remove-cache.html = TIMEOUT http/tests/inspector/inspect-iframe-from-different-domain.html = TIMEOUT http/tests/inspector/network/download.html = TIMEOUT inspector/console/command-line-api.html = TIMEOUT inspector/console/console-api-on-call-frame.html = TIMEOUT inspector/console/console-assert.html = TIMEOUT inspector/console/console-clear.html = TIMEOUT inspector/console/console-command-clear.html = TIMEOUT inspector/console/console-dir-global.html = TIMEOUT inspector/debugger/debugger-eval-while-paused.html = TIMEOUT inspector/debugger/debugger-expand-scope.html = TIMEOUT inspector/debugger/debugger-no-nested-pause.html = TIMEOUT inspector/debugger/debugger-pause-in-eval-script.html = TIMEOUT inspector/debugger/debugger-pause-on-breakpoint.html = TIMEOUT
Pavel Podivilov
Comment 6
2011-05-06 02:25:19 PDT
Created
attachment 92565
[details]
Patch. Also fix the bug with tokenizer.initialCondition being modified after tokenizer.condition = tokenizer.initialCondition.
Yury Semikhatsky
Comment 7
2011-05-06 02:44:16 PDT
Comment on
attachment 92565
[details]
Patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=92565&action=review
> Source/WebCore/inspector/front-end/SourceCSSTokenizer.js:125 > + get initialCondition()
As initialCondition now returns new object on each call it would make sense to rename it to createInitialCondition.
Pavel Podivilov
Comment 8
2011-05-06 03:16:50 PDT
Created
attachment 92566
[details]
Patch. get initialCondition -> createInitialCondition
Pavel Podivilov
Comment 9
2011-05-13 08:30:35 PDT
Committed
r86430
: <
http://trac.webkit.org/changeset/86430
>
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