WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
47892
Web Inspector: do not access ResourcePanel from resources directly.
https://bugs.webkit.org/show_bug.cgi?id=47892
Summary
Web Inspector: do not access ResourcePanel from resources directly.
Pavel Feldman
Reported
2010-10-19 02:15:26 PDT
We should either update panel externally or make it listen to resources.
Attachments
[PATCH] Proposed change.
(9.52 KB, patch)
2010-10-19 02:46 PDT
,
Pavel Feldman
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2010-10-19 02:46:55 PDT
Created
attachment 71147
[details]
[PATCH] Proposed change.
Yury Semikhatsky
Comment 2
2010-10-19 03:01:56 PDT
Comment on
attachment 71147
[details]
[PATCH] Proposed change. View in context:
https://bugs.webkit.org/attachment.cgi?id=71147&action=review
Nice change.
> WebCore/inspector/front-end/ResourcesPanel.js:1078 > + return resourceView.__proto__ === WebInspector.SourceView.prototype;
Why not check for (resourceView instanceof WebInspector.SourceView) instead?
> WebCore/inspector/front-end/ResourcesPanel.js:1080 > + return resourceView.__proto__ === WebInspector.ImageView.prototype;
ditto
> WebCore/inspector/front-end/ResourcesPanel.js:1082 > + return resourceView.__proto__ === WebInspector.FontView.prototype;
ditto
> WebCore/inspector/front-end/ResourcesPanel.js:1084 > + return resourceView.__proto__ === WebInspector.ResourceView.prototype;
ditto
Pavel Feldman
Comment 3
2010-10-19 03:07:43 PDT
(In reply to
comment #2
)
> (From update of
attachment 71147
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=71147&action=review
> > Nice change. > > > WebCore/inspector/front-end/ResourcesPanel.js:1078 > > + return resourceView.__proto__ === WebInspector.SourceView.prototype; > > Why not check for (resourceView instanceof WebInspector.SourceView) instead? >
instanceof ResourceView would be true for all of them and I don't want that...
WebKit Commit Bot
Comment 4
2010-10-19 03:35:55 PDT
Comment on
attachment 71147
[details]
[PATCH] Proposed change. Clearing flags on attachment: 71147 Committed
r70045
: <
http://trac.webkit.org/changeset/70045
>
WebKit Commit Bot
Comment 5
2010-10-19 03:36:00 PDT
All reviewed patches have been landed. Closing bug.
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