WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
68526
Web Inspector: RawSourceCode could be mapped to several UISourceCodes.
https://bugs.webkit.org/show_bug.cgi?id=68526
Summary
Web Inspector: RawSourceCode could be mapped to several UISourceCodes.
Pavel Podivilov
Reported
2011-09-21 06:31:36 PDT
Web Inspector: RawSourceCode could be mapped to several UISourceCodes. Replace SourceMapping.uiSourceCode with SourceMapping.uiSourceCodeList as there could be more then one UISourceCode associated with a RawSourceCode.
Attachments
Patch.
(15.69 KB, patch)
2011-09-21 06:35 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Patch
(22.58 KB, patch)
2011-09-28 08:51 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Patch
(20.24 KB, patch)
2011-09-28 08:58 PDT
,
Pavel Podivilov
pfeldman
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Pavel Podivilov
Comment 1
2011-09-21 06:35:40 PDT
Created
attachment 108143
[details]
Patch. Based on patch attached to
https://bugs.webkit.org/show_bug.cgi?id=68524
.
Yury Semikhatsky
Comment 2
2011-09-23 03:50:59 PDT
Comment on
attachment 108143
[details]
Patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=108143&action=review
> Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:134 > + // FIXME: uiSourceCodeList may contain more then one entry.
What prevents you from iterating though all uiSourceCodeList elements in this change?
> Source/WebCore/inspector/front-end/SourceFile.js:205 > + return [this._uiSourceCode];
Why not keep this list in a field to avoid creating it on each call?
Pavel Podivilov
Comment 3
2011-09-28 08:51:13 PDT
Created
attachment 109025
[details]
Patch
Pavel Podivilov
Comment 4
2011-09-28 08:53:33 PDT
(In reply to
comment #2
)
> (From update of
attachment 108143
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=108143&action=review
> > > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:134 > > + // FIXME: uiSourceCodeList may contain more then one entry. > > What prevents you from iterating though all uiSourceCodeList elements in this change?
Removed those fixmes, but added one in ScriptsPanel._uiSourceCodeReplaced to keep patch size small.
> > > Source/WebCore/inspector/front-end/SourceFile.js:205 > > + return [this._uiSourceCode]; > > Why not keep this list in a field to avoid creating it on each call?
Done.
Pavel Podivilov
Comment 5
2011-09-28 08:58:24 PDT
Created
attachment 109027
[details]
Patch
Pavel Feldman
Comment 6
2011-09-28 22:46:14 PDT
Comment on
attachment 109027
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=109027&action=review
> LayoutTests/inspector/debugger/raw-source-code.html:106 > var rawSourceCode = createRawSourceCode(script, null);
You probably need a new test for this functionality.
> Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:462 > + var uiLocation = this._rawSourceCode.sourceMapping.rawLocationToUILocation(this._callFrame.location);
Again, use rawLocationToUILocation. I don't get your FIXME in the RawSourceCode suggesting the opposite. Are you expecting RawSourceCode to lose this._sourceMapping member?
Pavel Podivilov
Comment 7
2011-09-29 02:16:39 PDT
(In reply to
comment #6
)
> (From update of
attachment 109027
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=109027&action=review
> > > LayoutTests/inspector/debugger/raw-source-code.html:106 > > var rawSourceCode = createRawSourceCode(script, null); > > You probably need a new test for this functionality.
There is no new functionality it this change, it's just a refactoring. Let me put all the pieces together and add integration tests for compiler source maps.
> > > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:462 > > + var uiLocation = this._rawSourceCode.sourceMapping.rawLocationToUILocation(this._callFrame.location); > > Again, use rawLocationToUILocation. I don't get your FIXME in the RawSourceCode suggesting the opposite. Are you expecting RawSourceCode to lose this._sourceMapping member?
FIXME in the RawSourceCode suggests that conversion methods should be a part of SourceMapping interface because sometimes RawSourceCode don't have source mapping right after creation (e.g. formatting is in progress).
Pavel Feldman
Comment 8
2011-09-30 04:47:43 PDT
Comment on
attachment 109027
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=109027&action=review
>>> Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:462 >>> + var uiLocation = this._rawSourceCode.sourceMapping.rawLocationToUILocation(this._callFrame.location); >> >> Again, use rawLocationToUILocation. I don't get your FIXME in the RawSourceCode suggesting the opposite. Are you expecting RawSourceCode to lose this._sourceMapping member? > > FIXME in the RawSourceCode suggests that conversion methods should be a part of SourceMapping interface because sometimes RawSourceCode don't have source mapping right after creation (e.g. formatting is in progress).
Please add FIXME suggesting doing rawSourceCode.toUILocation()
Pavel Podivilov
Comment 9
2011-10-10 09:08:46 PDT
Committed
r97063
: <
http://trac.webkit.org/changeset/97063
>
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