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

Issue 10822007: Make ScriptBadgeController record when extensions run scripts on pages yet to (Closed)

Created:
8 years, 5 months ago by not at google - send to devlin
Modified:
8 years, 4 months ago
Reviewers:
Jeffrey Yasskin
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, benwells, koz (OOO until 15th September), jam
Visibility:
Public.

Description

Make ScriptBadgeController record when extensions run scripts on pages yet to be navigated to (when IPCs for content script injection arrive before the page ID is updated, whenever that is). I'm a little surprised this can happen, but we're getting events for scripts when there is no page ID yet, implying that it can. This fixes bug 138323 in a general sense. BUG=138323

Patch Set 1 #

Patch Set 2 : . #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -98 lines) Patch
M chrome/browser/extensions/script_badge_controller.h View 1 3 chunks +11 lines, -5 lines 4 comments Download
M chrome/browser/extensions/script_badge_controller.cc View 1 4 chunks +53 lines, -8 lines 2 comments Download
M chrome/browser/extensions/script_badge_controller_unittest.cc View 5 chunks +160 lines, -85 lines 4 comments Download

Messages

Total messages: 5 (0 generated)
not at google - send to devlin
8 years, 5 months ago (2012-07-25 04:51:11 UTC) #1
Jeffrey Yasskin
http://codereview.chromium.org/10822007/diff/8001/chrome/browser/extensions/script_badge_controller.cc File chrome/browser/extensions/script_badge_controller.cc (right): http://codereview.chromium.org/10822007/diff/8001/chrome/browser/extensions/script_badge_controller.cc#newcode102 chrome/browser/extensions/script_badge_controller.cc:102: if (on_page_id < current_page_id) Is there documentation that the ...
8 years, 4 months ago (2012-07-25 22:22:39 UTC) #2
not at google - send to devlin
Didn't get time to actually finish updating the test, but sending out some replies that ...
8 years, 4 months ago (2012-07-26 08:52:45 UTC) #3
jam
removing myself as owner. look at extensions owners file
8 years, 4 months ago (2012-07-26 21:49:19 UTC) #4
not at google - send to devlin
8 years, 4 months ago (2012-07-27 01:13:25 UTC) #5
I added you as a legimate reviewer, I had a question about the code.

This OWNERS thing is silly.

Powered by Google App Engine
This is Rietveld 408576698