|
|
Created:
4 years, 4 months ago by luoe Modified:
4 years, 3 months ago CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, kozyatinskiy+blink_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionDevTools: setting to auto-reveal in navigator
BUG=556508
Committed: https://crrev.com/ae7e36e936dfb5efdf5e29919187cbb81d32deb1
Cr-Commit-Position: refs/heads/master@{#414893}
Patch Set 1 #Patch Set 2 : :q #Patch Set 3 : Add setting false by default #Patch Set 4 : rebase #Patch Set 5 : addrcomm #
Total comments: 2
Patch Set 6 : Dont open navigator at all un #
Total comments: 2
Patch Set 7 : Dont open navigator at all un #
Total comments: 6
Patch Set 8 : Dont open navigator at all un #
Total comments: 1
Messages
Total messages: 40 (24 generated)
The CQ bit was checked by luoe@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
luoe@chromium.org changed reviewers: + lushnikov@chromium.org
- Opens the left side navigator if it wasn't opened - Doesn't trigger in Quick Source - Reveals in navigator when a tab is selected (includes when opened by pause in debugger) - Settings has a new checkbox that is False by default
The CQ bit was checked by luoe@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
>> Opens the left side navigator if it wasn't opened Let's not open it in this case? I think we can avoid adding setting in this case
On 2016/08/23 19:07:51, lushnikov wrote: > >> Opens the left side navigator if it wasn't opened > > Let's not open it in this case? I think we can avoid adding setting in this case We should not open navigator.
(and we need the setting for reveal)
The CQ bit was checked by luoe@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thanks for the comments. No longer opens navigator, checkbox setting remains, skipFocus stuff removed.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2254683003/diff/80001/third_party/WebKit/Sour... File third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js (right): https://codereview.chromium.org/2254683003/diff/80001/third_party/WebKit/Sour... third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js:374: if (skipShow) should it be vice-versa?
This one should actually work. https://codereview.chromium.org/2254683003/diff/80001/third_party/WebKit/Sour... File third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js (right): https://codereview.chromium.org/2254683003/diff/80001/third_party/WebKit/Sour... third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js:374: if (skipShow) On 2016/08/25 02:00:09, lushnikov wrote: > should it be vice-versa? This check is wrong. Really, we want to call showView so that clicking on a snippet will open the 'snippets' tab in the navigator when it's open. I've changed it to a boolean passed in that tells the view to skip the reveal callback. This prevents the navigator from opening, but still switches tabs (sources/content scripts/snippets) when it's open.
https://codereview.chromium.org/2254683003/diff/100001/third_party/WebKit/Sou... File third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js (right): https://codereview.chromium.org/2254683003/diff/100001/third_party/WebKit/Sou... third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js:374: WebInspector.viewManager.showView(extensions[i].descriptor()["viewId"], skipReveal); let's select tab explicitly via tabbedPane.selectTab; i don't like the skipReveal flag in the showView method
https://codereview.chromium.org/2254683003/diff/100001/third_party/WebKit/Sou... File third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js (right): https://codereview.chromium.org/2254683003/diff/100001/third_party/WebKit/Sou... third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js:374: WebInspector.viewManager.showView(extensions[i].descriptor()["viewId"], skipReveal); On 2016/08/25 20:41:54, lushnikov wrote: > let's select tab explicitly via tabbedPane.selectTab; i don't like the > skipReveal flag in the showView method Done with _navigatorTabbedLocation.tabbedPane().selectTab
https://codereview.chromium.org/2254683003/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js (right): https://codereview.chromium.org/2254683003/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js:360: _revealInNavigator: function(uiSourceCode, skipReveal) this seems to be never used. https://codereview.chromium.org/2254683003/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js:376: if (this.editorView.mainWidget()) isn't it the same as always calling WebInspector.viewManager.showView(viewId) ?
pfeldman@chromium.org changed reviewers: + pfeldman@chromium.org
https://codereview.chromium.org/2254683003/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js (right): https://codereview.chromium.org/2254683003/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js:376: if (this.editorView.mainWidget()) On 2016/08/26 22:31:09, lushnikov wrote: > isn't it the same as always calling WebInspector.viewManager.showView(viewId) ? You should not do WebInspector.viewManager.showView(viewId) until necessary.
https://codereview.chromium.org/2254683003/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js (right): https://codereview.chromium.org/2254683003/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js:360: _revealInNavigator: function(uiSourceCode, skipReveal) On 2016/08/26 22:31:09, lushnikov wrote: > this seems to be never used. Yeah, I messed up the if statement on #376 https://codereview.chromium.org/2254683003/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js:376: if (this.editorView.mainWidget()) On 2016/08/26 22:31:09, lushnikov wrote: > isn't it the same as always calling WebInspector.viewManager.showView(viewId) ? Sorry, this condition should have been skipReveal, which is only true when the setting is on && tab is selected. https://codereview.chromium.org/2254683003/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js:376: if (this.editorView.mainWidget()) On 2016/08/26 22:36:27, pfeldman wrote: > On 2016/08/26 22:31:09, lushnikov wrote: > > isn't it the same as always calling WebInspector.viewManager.showView(viewId) > ? > > You should not do WebInspector.viewManager.showView(viewId) until necessary. Right, the condition should say if (skipReveal) {...} else { showView } showView should only be called if we are handling a context menu event.
lgtm https://codereview.chromium.org/2254683003/diff/140001/third_party/WebKit/Sou... File third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js (right): https://codereview.chromium.org/2254683003/diff/140001/third_party/WebKit/Sou... third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js:376: if (skipReveal) I guess @pfeldman meant that we should shortcut on viewManager.showView calls? In this case, let's do if (skipReveal || this.editorView.mainWidget()) ...
The CQ bit was checked by luoe@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by luoe@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by luoe@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #8 (id:140001)
Message was sent while issue was closed.
Description was changed from ========== DevTools: setting to auto-reveal in navigator BUG=556508 ========== to ========== DevTools: setting to auto-reveal in navigator BUG=556508 Committed: https://crrev.com/ae7e36e936dfb5efdf5e29919187cbb81d32deb1 Cr-Commit-Position: refs/heads/master@{#414893} ==========
Message was sent while issue was closed.
Patchset 8 (id:??) landed as https://crrev.com/ae7e36e936dfb5efdf5e29919187cbb81d32deb1 Cr-Commit-Position: refs/heads/master@{#414893} |