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

Issue 14320022: Warn developers about deprecated features only once per page-load. (Closed)

Created:
7 years, 8 months ago by Mike West
Modified:
6 years, 10 months ago
Reviewers:
pfeldman
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, apavlov+blink_chromium.org, aandrey+blink_chromium.org, mkwst+watchlist_chromium.org, abarth-chromium, eseidel
Visibility:
Public.

Description

Warn developers about deprecated features only once per page-load. As a first step towards removing deprecated features from Blink, we should warn developers that they're using APIs that won't be sticking around forever. This patch introduces PageConsole::reportDeprecation in order to streamline this process, and make it trivial to find deprecated features in the codebase. BUG=233522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148726

Patch Set 1 #

Total comments: 3

Patch Set 2 : PageConsole. #

Total comments: 1

Patch Set 3 : OwnPtr<BitVector> -> BitVector #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -17 lines) Patch
M LayoutTests/http/tests/security/contentSecurityPolicy/prefixed-header-deprecation-warning-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/inspector/console/only-one-deprecation-warning.html View 1 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/inspector/console/only-one-deprecation-warning-expected.txt View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/inspector/ConsoleMessage.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/ConsoleTypes.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/ContentSecurityPolicy.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/page/ContentSecurityPolicy.cpp View 1 3 chunks +5 lines, -11 lines 0 comments Download
M Source/core/page/PageConsole.h View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
M Source/core/page/PageConsole.cpp View 1 2 2 chunks +39 lines, -2 lines 0 comments Download
M Source/devtools/front_end/ConsoleModel.js View 1 chunk +2 lines, -1 line 0 comments Download
M Source/devtools/protocol.json View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Mike West
7 years, 8 months ago (2013-04-19 12:02:37 UTC) #1
pfeldman
Mike says there is a not lgtm. Is there?
7 years, 8 months ago (2013-04-19 12:53:18 UTC) #2
pfeldman
lgtm with nits https://codereview.chromium.org/14320022/diff/1/Source/core/page/DeprecationAgent.cpp File Source/core/page/DeprecationAgent.cpp (right): https://codereview.chromium.org/14320022/diff/1/Source/core/page/DeprecationAgent.cpp#newcode47 Source/core/page/DeprecationAgent.cpp:47: // COMPILE_ASSERT(WTF_ARRAY_LENGTH(deprecationMessages) == static_cast<int>(WebCore::DeprecationAgent::NumberOfFeatures), DeprecationMessages_matches_Feature_enum); It ...
7 years, 8 months ago (2013-04-19 13:04:21 UTC) #3
Use mkwst_at_chromium.org plz.
On 2013/04/19 13:04:21, pfeldman wrote: https://codereview.chromium.org/14320022/diff/1/Source/core/page/DeprecationAgent.h > File Source/core/page/DeprecationAgent.h (right): > > https://codereview.chromium.org/14320022/diff/1/Source/core/page/DeprecationAgent.h#newcode50 > Source/core/page/DeprecationAgent.h:50: ...
7 years, 8 months ago (2013-04-19 13:28:18 UTC) #4
Mike West
Since the implementation has more or less completely changed, would you mind taking another look, ...
7 years, 8 months ago (2013-04-19 14:03:34 UTC) #5
pfeldman
lgtm https://codereview.chromium.org/14320022/diff/5002/Source/core/page/PageConsole.cpp File Source/core/page/PageConsole.cpp (right): https://codereview.chromium.org/14320022/diff/5002/Source/core/page/PageConsole.cpp#newcode143 Source/core/page/PageConsole.cpp:143: m_deprecationNotifications = adoptPtr(new BitVector(NumberOfFeatures)); BitVector is not going ...
7 years, 8 months ago (2013-04-19 14:19:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/14320022/15
7 years, 8 months ago (2013-04-19 14:55:05 UTC) #7
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 14:55:29 UTC) #8
Message was sent while issue was closed.
Change committed as 148726

Powered by Google App Engine
This is Rietveld 408576698