Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Issue 121263002: DevTools: Do not force style sheets update on inspector start. (Closed)

Created:
6 years, 12 months ago by vsevik
Modified:
6 years, 11 months ago
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org
Visibility:
Public.

Description

DevTools: Do not force style sheets update on inspector start. This also fixes the case case when inspector was closed and then stylesheet was removed on the inspected page In this case inspector frontend received an incorrect styleSheetRemoved event after reopening. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164379

Patch Set 1 #

Patch Set 2 : Rebaselined #

Total comments: 8

Patch Set 3 : Comments addressed #

Patch Set 4 : Fixed test #

Patch Set 5 : #

Patch Set 6 : Fixed test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -19 lines) Patch
M LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js View 1 2 4 chunks +14 lines, -3 lines 0 comments Download
A LayoutTests/inspector-protocol/stylesheet-tracking-restart.html View 1 2 3 4 1 chunk +111 lines, -0 lines 0 comments Download
A LayoutTests/inspector-protocol/stylesheet-tracking-restart-expected.txt View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorCSSAgent.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorCSSAgent.cpp View 1 2 5 chunks +19 lines, -15 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
vsevik
PTAL
6 years, 12 months ago (2013-12-26 15:10:12 UTC) #1
apavlov
lgtm with comments https://codereview.chromium.org/121263002/diff/30001/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js File LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js (right): https://codereview.chromium.org/121263002/diff/30001/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js#newcode96 LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js:96: var inspectorFrontend = window.internals.openDummyInspectorFrontend(dummyFrontendURL); dummyFrontendURL could ...
6 years, 12 months ago (2013-12-27 07:12:30 UTC) #2
lushnikov
https://codereview.chromium.org/121263002/diff/30001/LayoutTests/inspector-protocol/stylesheet-tracking-restart.html File LayoutTests/inspector-protocol/stylesheet-tracking-restart.html (right): https://codereview.chromium.org/121263002/diff/30001/LayoutTests/inspector-protocol/stylesheet-tracking-restart.html#newcode12 LayoutTests/inspector-protocol/stylesheet-tracking-restart.html:12: document.body.appendChild(styleElement); let's add/remove stylesheets to document.head instead https://codereview.chromium.org/121263002/diff/30001/Source/core/inspector/InspectorCSSAgent.cpp File ...
6 years, 12 months ago (2013-12-27 08:20:16 UTC) #3
apavlov
https://codereview.chromium.org/121263002/diff/30001/Source/core/inspector/InspectorCSSAgent.cpp File Source/core/inspector/InspectorCSSAgent.cpp (right): https://codereview.chromium.org/121263002/diff/30001/Source/core/inspector/InspectorCSSAgent.cpp#newcode834 Source/core/inspector/InspectorCSSAgent.cpp:834: void InspectorCSSAgent::updateActiveStyleSheets(Document* document, const Vector<CSSStyleSheet*>& allSheetsVector, bool initial) On ...
6 years, 12 months ago (2013-12-27 08:27:39 UTC) #4
eseidel
I can't comment as to pfeldman's specific meaning (as I'm not pfeldman), but my 2¢: ...
6 years, 12 months ago (2013-12-27 08:35:17 UTC) #5
yurys
https://codereview.chromium.org/121263002/diff/30001/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js File LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js (right): https://codereview.chromium.org/121263002/diff/30001/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js#newcode96 LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js:96: var inspectorFrontend = window.internals.openDummyInspectorFrontend(dummyFrontendURL); On 2013/12/27 07:12:30, apavlov wrote: ...
6 years, 12 months ago (2013-12-27 08:43:06 UTC) #6
vsevik
On 2013/12/27 08:20:16, lushnikov wrote: > https://codereview.chromium.org/121263002/diff/30001/LayoutTests/inspector-protocol/stylesheet-tracking-restart.html > File LayoutTests/inspector-protocol/stylesheet-tracking-restart.html (right): > > https://codereview.chromium.org/121263002/diff/30001/LayoutTests/inspector-protocol/stylesheet-tracking-restart.html#newcode12 > ...
6 years, 12 months ago (2013-12-27 14:52:45 UTC) #7
vsevik
On 2013/12/27 08:35:17, eseidel wrote: > I can't comment as to pfeldman's specific meaning (as ...
6 years, 12 months ago (2013-12-27 14:52:58 UTC) #8
vsevik
On 2013/12/27 08:43:06, yurys wrote: > https://codereview.chromium.org/121263002/diff/30001/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js > File LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js > (right): > > https://codereview.chromium.org/121263002/diff/30001/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js#newcode96 ...
6 years, 12 months ago (2013-12-27 14:53:32 UTC) #9
apavlov
lgtm
6 years, 12 months ago (2013-12-27 14:53:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vsevik@chromium.org/121263002/160001
6 years, 12 months ago (2013-12-27 14:54:18 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_blink for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink&number=6141
6 years, 12 months ago (2013-12-27 17:21:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vsevik@chromium.org/121263002/310001
6 years, 11 months ago (2013-12-30 11:33:43 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=16198
6 years, 11 months ago (2013-12-30 12:54:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vsevik@chromium.org/121263002/480001
6 years, 11 months ago (2013-12-30 14:19:36 UTC) #15
commit-bot: I haz the power
6 years, 11 months ago (2013-12-30 15:47:49 UTC) #16
Message was sent while issue was closed.
Change committed as 164379

Powered by Google App Engine
This is Rietveld 408576698