RESOLVED FIXED 149173
Web Inspector: command-click in NewTabContentView should open new tab without switching to it
https://bugs.webkit.org/show_bug.cgi?id=149173
Summary Web Inspector: command-click in NewTabContentView should open new tab without...
Blaze Burg
Reported 2015-09-15 11:27:40 PDT
This is how the home screen grids work in FF and Safari.
Attachments
Proposed fix (5.64 KB, patch)
2015-09-15 13:46 PDT, Blaze Burg
joepeck: review+
Radar WebKit Bug Importer
Comment 1 2015-09-15 11:28:04 PDT
Blaze Burg
Comment 2 2015-09-15 13:46:41 PDT
Created attachment 261227 [details] Proposed fix
Joseph Pecoraro
Comment 3 2015-09-15 14:31:58 PDT
Comment on attachment 261227 [details] Proposed fix View in context: https://bugs.webkit.org/attachment.cgi?id=261227&action=review r=me > Source/WebInspectorUI/UserInterface/Base/Main.js:510 > +WebInspector.createNewTabWithType = function(tabType, options={}) In the one other place I think we have this right now, we have spaces. I still favor no spaces. Lets decide on IRC. > Source/WebInspectorUI/UserInterface/Base/Main.js:520 > + let insertionIndex = referencedView ? this.tabBar.tabBarItems.indexOf(referencedView.tabBarItem) : null; Nit: I think `undefined` may be better than `null`. Null makes me think an object should go here, but it should be a number (or a default value), which null is not typically associated with. > Source/WebInspectorUI/UserInterface/Views/NewTabContentView.js:114 > + let tabItemElements = Array.from(this.element.querySelectorAll("." + WebInspector.NewTabContentView.TabItemStyleClassName)); Nit: This could be a private function, since it is done in multiple places and is easy to get wrong.
Blaze Burg
Comment 4 2015-09-15 16:42:47 PDT
Comment on attachment 261227 [details] Proposed fix View in context: https://bugs.webkit.org/attachment.cgi?id=261227&action=review >> Source/WebInspectorUI/UserInterface/Base/Main.js:520 >> + let insertionIndex = referencedView ? this.tabBar.tabBarItems.indexOf(referencedView.tabBarItem) : null; > > Nit: I think `undefined` may be better than `null`. Null makes me think an object should go here, but it should be a number (or a default value), which null is not typically associated with. OK
Blaze Burg
Comment 5 2015-09-15 16:44:43 PDT
Note You need to log in before you can comment on or make changes to this bug.