| Summary: | Web Inspector: Support passing extra arguments to ContentViews during construction | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Timothy Hatcher <timothy> | ||||
| Component: | Web Inspector | Assignee: | Timothy Hatcher <timothy> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | DoNotImportToRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
|
Description
Timothy Hatcher
2015-04-22 11:20:51 PDT
Created attachment 251343 [details]
Patch
Comment on attachment 251343 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=251343&action=review > Source/WebInspectorUI/ChangeLog:3 > + Web Inspector: Suport passing extra arguments to ContentViews during construction Typo: "Suport" => "Support" > Source/WebInspectorUI/UserInterface/Views/ContentView.js:34 > - return new WebInspector.FrameContentView(representedObject); > + return new WebInspector.FrameContentView(representedObject.mainResource, extraArguments); Related intentional change? This would break some code inside FrameContentView without a related change, since it does: if (this.representedObject.isMainFrame()) Which doesn't make sense on the mainResource. Comment on attachment 251343 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=251343&action=review >> Source/WebInspectorUI/UserInterface/Views/ContentView.js:34 >> + return new WebInspector.FrameContentView(representedObject.mainResource, extraArguments); > > Related intentional change? This would break some code inside FrameContentView without a related change, since it does: > > if (this.representedObject.isMainFrame()) > > Which doesn't make sense on the mainResource. Bad reverse merge on my part. In my tree the end result is: return new WebInspector.ResourceClusterContentView(representedObject.mainResource, extraArguments); FrameContentView will be going away. |