RESOLVED FIXED 55237
Web Inspector: extract content loading logic from scripts panel
https://bugs.webkit.org/show_bug.cgi?id=55237
Summary Web Inspector: extract content loading logic from scripts panel
Pavel Podivilov
Reported 2011-02-25 11:05:36 PST
Web Inspector: extract content loading logic from scripts panel. We need to encapsulate source frame content loading logic in debugger presentation model to support beautification, de-obfuscation and source maps in a pluggable way.
Attachments
Patch. (36.00 KB, patch)
2011-02-25 11:06 PST, Pavel Podivilov
pfeldman: review-
Patch. (26.57 KB, patch)
2011-03-11 06:18 PST, Pavel Podivilov
no flags
Rebase. (26.28 KB, patch)
2011-03-14 09:01 PDT, Pavel Podivilov
no flags
Patch. (28.45 KB, patch)
2011-03-16 07:11 PDT, Pavel Podivilov
pfeldman: review+
Pavel Podivilov
Comment 1 2011-02-25 11:06:57 PST
Pavel Feldman
Comment 2 2011-02-28 08:54:09 PST
Comment on attachment 83843 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=83843&action=review This change looks scary. Could you split it into number of changes? > Source/WebCore/ChangeLog:950 > + to -1. Since WebKit2 doesn�t support non-activating clicks yet (<http://webkit.org/b/55053> Is this change intentional? > Source/WebCore/inspector/front-end/DebuggerModel.js:47 > BreakpointAdded: "breakpoint-added", I thought you were going to get rid of this one? > Source/WebCore/inspector/front-end/DebuggerModel.js:50 > + InspectedURLChanged: "inspected-url-changed" It is not clear why this event should be fired on debugger model.
Pavel Podivilov
Comment 3 2011-03-11 06:18:33 PST
Pavel Podivilov
Comment 4 2011-03-11 06:18:55 PST
(In reply to comment #2) > (From update of attachment 83843 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=83843&action=review > > This change looks scary. Could you split it into number of changes? > > > Source/WebCore/ChangeLog:950 > > + to -1. Since WebKit2 doesn�t support non-activating clicks yet (<http://webkit.org/b/55053> > > Is this change intentional? > > > Source/WebCore/inspector/front-end/DebuggerModel.js:47 > > BreakpointAdded: "breakpoint-added", > > I thought you were going to get rid of this one? > > > Source/WebCore/inspector/front-end/DebuggerModel.js:50 > > + InspectedURLChanged: "inspected-url-changed" > > It is not clear why this event should be fired on debugger model. Done.
Pavel Podivilov
Comment 5 2011-03-14 09:01:25 PDT
Created attachment 85681 [details] Rebase.
Pavel Podivilov
Comment 6 2011-03-16 07:11:53 PDT
Pavel Feldman
Comment 7 2011-03-16 11:12:18 PDT
Comment on attachment 85926 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=85926&action=review > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:315 > +WebInspector.SourceFileProvider.prototype = { So SourceFileProvider has a fairly strange interface: - addScript - ensureSourceFileAdded - sourceFile - requestSourceFileContent - scriptLocationToSourceLocation what is it really responsible for?
Pavel Podivilov
Comment 8 2011-03-17 04:11:06 PDT
(In reply to comment #7) > (From update of attachment 85926 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=85926&action=review > > > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:315 > > +WebInspector.SourceFileProvider.prototype = { > > So SourceFileProvider has a fairly strange interface: > - addScript > - ensureSourceFileAdded > - sourceFile > - requestSourceFileContent > - scriptLocationToSourceLocation > > what is it really responsible for? It's a private DPM utility class responsible for mapping VM scripts to UI source files. I agree that interface looks strange, but I need an interface like this to hide scripts <-> sources mapping strategy from DPM.
Pavel Podivilov
Comment 9 2011-03-17 11:17:57 PDT
WebKit Review Bot
Comment 10 2011-03-17 11:54:55 PDT
http://trac.webkit.org/changeset/81369 might have broken SnowLeopard Intel Release (Tests) The following tests are not passing: inspector/debugger/debug-inlined-scripts.html
Pavel Podivilov
Comment 11 2011-03-18 07:26:34 PDT
Note You need to log in before you can comment on or make changes to this bug.