WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
10846
exceptions from XHTML/SVG <script> tags don't show the right line numbers
https://bugs.webkit.org/show_bug.cgi?id=10846
Summary
exceptions from XHTML/SVG <script> tags don't show the right line numbers
Eric Seidel (no email)
Reported
2006-09-13 14:14:50 PDT
exceptions from XHTML/SVG <script> tags don't show the right line numbers This is why: XMLTokenizer::endElementNs() contains a: m_view->frame()->executeScript(0, scriptCode); call, notice how it fails to pass the correct base line number. Compare that with the HTML tokenizer, which correctly passes the line number. We'll have to steal the line number out of: m_context->input->line when we hit a <script> start tag, and then use that when we actually execute the script. It shouldn't be too hard. We might just consider adding a m_startLineNumber member into HTMLScriptElement and SVGScriptElement for simplicity of both tokenizers/parsers. Adding to the SVG hitlist as this makes SVGs very hard to debug in Safari.
Attachments
Improves the situation
(665 bytes, patch)
2006-09-13 14:56 PDT
,
Eric Seidel (no email)
no flags
Details
Formatted Diff
Diff
The fix (now with 100% more code!)
(3.21 KB, patch)
2006-09-13 15:38 PDT
,
Eric Seidel (no email)
hyatt
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2006-09-13 14:56:21 PDT
Created
attachment 10547
[details]
Improves the situation This "fixes" the bug. Now line numbers seem to be off-by-one in the other direction. I'm not sure why. I could just change the line to m_scriptStartLine - 1, but I'm not sure that's "right".
David Kilzer (:ddkilzer)
Comment 2
2006-09-13 15:26:24 PDT
(In reply to
comment #1
)
> Created an attachment (id=10547) [edit] > Improves the situation > > This "fixes" the bug.
With just a ChangeLog entry? :)
Eric Seidel (no email)
Comment 3
2006-09-13 15:37:26 PDT
(In reply to
comment #2
)
> (In reply to
comment #1
) > > Created an attachment (id=10547) [edit] > > Improves the situation > > > > This "fixes" the bug. > > With just a ChangeLog entry? :) >
You under-estimate the power of the ChangeLog! Sometimes willing a bug gone is enough. :) In this case however, a code change would help. Too bad I tossed the patch thinking it was already safely part of bugzilla. :(
Eric Seidel (no email)
Comment 4
2006-09-13 15:38:47 PDT
Created
attachment 10549
[details]
The fix (now with 100% more code!)
Dave Hyatt
Comment 5
2006-09-19 02:34:49 PDT
Comment on
attachment 10549
[details]
The fix (now with 100% more code!) r=me
Eric Seidel (no email)
Comment 6
2006-09-19 02:42:01 PDT
Drosera works much better now for xhtml/svg. :) Landed as
r16447
.
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