[WIP] [Extensions] Display runtime errors in chrome://extensions. [chromium/src : main]

56 views
Skip to first unread message

Ghazale Hosseinabadi (Gerrit)

unread,
Apr 10, 2021, 11:26:16 PM4/10/21
to Hiroki Nakagawa, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Istiaque Ahmed

Attention is currently required from: Hiroki Nakagawa, Istiaque Ahmed.

Ghazale Hosseinabadi would like Hiroki Nakagawa to review this change.

View Change

[WIP] [Extensions] Display runtime errors in chrome://extensions.

This CL displays runtime errors in chrome://extensions page.

Bug: 1152202
Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
---
M chrome/browser/extensions/service_worker_apitest.cc
A chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/manifest.json
A chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js
M extensions/browser/service_worker_task_queue.cc
M extensions/browser/service_worker_task_queue.h
5 files changed, 97 insertions(+), 1 deletion(-)


To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 12
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-MessageType: newchange

Ghazale Hosseinabadi (Gerrit)

unread,
Apr 10, 2021, 11:34:51 PM4/10/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Hiroki Nakagawa, Makoto Shimazu, Istiaque Ahmed.

View Change

2 comments:

  • Patchset:

    • Patch Set #9:

      Now that crrev.com/c/2638931 is landed, I resumed my work on this. […]

      nhiroki@ I was working on this CL with Makoto and I was wondering if you can now review my CL? I think Makoto wanted to report the error from DidRegisterServiceWorker(), but I couldn't make it work in DidRegisterServiceWorker(). How is this done for a web page with a service worker? Could you please point me to the code that does that? Thanks so much!

  • Patchset:

    • Patch Set #12:

      Hi Hiroki,

      Could you please respond to my comment in this CL?

      Thanks,
      Ghazale

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 12
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Makoto Shimazu <shi...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Sun, 11 Apr 2021 03:34:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Ghazale Hosseinabadi <gha...@chromium.org>
Comment-In-Reply-To: Makoto Shimazu <shi...@chromium.org>
Gerrit-MessageType: comment

Hiroki Nakagawa (Gerrit)

unread,
Apr 11, 2021, 9:29:44 PM4/11/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi, Makoto Shimazu, Istiaque Ahmed.

View Change

3 comments:

  • Commit Message:

    • Patch Set #12, Line 9: chrome://extensions

      Just curious: How do we see errors in the chrome://extensions page? I cannot find console outputs there.

  • Patchset:

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #12, Line 474:

          ExtensionsBrowserClient::Get()->ReportError(browser_context_,
      std::move(error));

      If we observe OnReportConsoleMessage(), does this duplicate the error message? If so, we might want to remove this and just return.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 12
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Attention: Makoto Shimazu <shi...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Mon, 12 Apr 2021 01:29:35 +0000

Ghazale Hosseinabadi (Gerrit)

unread,
Apr 12, 2021, 2:50:05 PM4/12/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Hiroki Nakagawa, Makoto Shimazu.

View Change

3 comments:

  • Commit Message:

    • Just curious: How do we see errors in the chrome://extensions page? I cannot find console outputs th […]

      I will email you screenshots showing the error.

  • Patchset:

    • Sure, I'll take over. […]

    • We want to highlight the syntax error. Since error message doesn't contain error location etc (e.g. line number), what do you think of having this CL as the solution?

  • File extensions/browser/service_worker_task_queue.cc:

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 12
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Makoto Shimazu <shi...@chromium.org>
Gerrit-Comment-Date: Mon, 12 Apr 2021 18:49:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>

Hiroki Nakagawa (Gerrit)

unread,
Apr 12, 2021, 8:41:08 PM4/12/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi, Makoto Shimazu.

View Change

10 comments:

  • Commit Message:

    • I will email you screenshots showing the error.

      Thanks!

  • Patchset:

    • Patch Set #9:

      We want to highlight the syntax error. Since error message doesn't contain error location etc (e.g. […]

      Proceeding with this CL sounds good to me.

  • Patchset:

  • File chrome/browser/extensions/service_worker_apitest.cc:

    • Patch Set #12, Line 390: constexpr

      I'm not sure why `constexpr` has been used (in NonRootDirectory). `const` seems sufficient.

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/manifest.json:

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js:

  • File extensions/browser/service_worker_task_queue.cc:

    • Yes, this duplicated the error message. I can send a separate CL to revert https://chromium-review. […]

      sgtm.

    • Patch Set #12, Line 606: static_cast<logging::LogSeverity>(logging::LOGGING_ERROR)

      Can we use console::ConsoleMessage.message_level as the source of logging::LogSeverity?

    • Patch Set #12, Line 607: -1 /* render_process_id */)

      Is it feasible to specify the worker's process id? If not, it's ok for now.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 12
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Attention: Makoto Shimazu <shi...@chromium.org>
Gerrit-Comment-Date: Tue, 13 Apr 2021 00:40:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Ghazale Hosseinabadi <gha...@chromium.org>
Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>

Ghazale Hosseinabadi (Gerrit)

unread,
Apr 14, 2021, 10:56:20 AM4/14/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org

Attention is currently required from: Ghazale Hosseinabadi.

Ghazale Hosseinabadi uploaded patch set #13 to this change.

View Change

[Extensions] Display runtime errors in chrome://extensions.

This CL displays runtime errors in chrome://extensions page.

Bug: 1152202
Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
---
M chrome/browser/extensions/service_worker_apitest.cc
A chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/manifest.json
A chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js
M extensions/browser/service_worker_task_queue.cc
M extensions/browser/service_worker_task_queue.h
5 files changed, 97 insertions(+), 1 deletion(-)

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 13
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-MessageType: newpatchset

Ghazale Hosseinabadi (Gerrit)

unread,
Apr 14, 2021, 11:33:58 AM4/14/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Hiroki Nakagawa, Istiaque Ahmed.

View Change

7 comments:

  • Patchset:

    • Patch Set #14:

      Hi Istiaque,

      Could you please review my CL?

      Thanks,
      Ghazale

  • File chrome/browser/extensions/service_worker_apitest.cc:

    • Patch Set #12, Line 390: constexpr

      I'm not sure why `constexpr` has been used (in NonRootDirectory). `const` seems sufficient.

    • Changed it to const.

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/manifest.json:

    • Is service-worker based background page available for the manifest V2? According to this article, lo […]

      changed it to 3.

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js:

    • Done

    • Done

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #12, Line 606: static_cast<logging::LogSeverity>(logging::LOGGING_ERROR)

      Can we use console::ConsoleMessage. […]

      For that, I need ConsoleMessageLevelToLogSeverity. Can I move content/browser/log_console_message.* to content/public/browser/log_console_message.*?

    • Patch Set #12, Line 607: -1 /* render_process_id */)

      Is it feasible to specify the worker's process id? If not, it's ok for now.

    • No. OnReportConsoleMessage does not give me the worker's process id and it seems to me it's not possible to retrieve the worker's process id in this function.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 14
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Wed, 14 Apr 2021 15:33:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-MessageType: comment

Hiroki Nakagawa (Gerrit)

unread,
Apr 14, 2021, 9:56:37 PM4/14/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi, Istiaque Ahmed.

View Change

4 comments:

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/manifest.json:

    • For that, I need ConsoleMessageLevelToLogSeverity. Can I move content/browser/log_console_message. […]

      Using the existing function sounds nice. I'd move only ConsoleMessageLevelToLogSeverity() to content/public/browser/console_message.*.

    • No. […]

      Acked. Thanks for investigation!

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 14
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Thu, 15 Apr 2021 01:56:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Istiaque Ahmed (Gerrit)

unread,
Apr 19, 2021, 7:01:06 PM4/19/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi.

View Change

1 comment:

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #14, Line 239: partition->GetServiceWorkerContext()->AddObserver(this);

      This could potentially add the same oberver(= this) to the same ServiceWorkerContext. Does this fail in that scenario?

      Try loading two extensions in the same SWContext (typically loading two regular extensions with workers will produce the effect) and see.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 14
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Comment-Date: Mon, 19 Apr 2021 23:00:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Ghazale Hosseinabadi (Gerrit)

unread,
Apr 20, 2021, 12:29:19 PM4/20/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Istiaque Ahmed.

View Change

1 comment:

  • File extensions/browser/service_worker_task_queue.cc:

    • This could potentially add the same oberver(= this) to the same ServiceWorkerContext. […]

      that is true. I loaded two extensions and both had the same oberver(= this) to the same ServiceWorkerContext. I can add an if here to add this to observer_list_ only once, but I was wondering if there is a better solution?

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 14
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Tue, 20 Apr 2021 16:29:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Istiaque Ahmed <laz...@chromium.org>
Gerrit-MessageType: comment

Istiaque Ahmed (Gerrit)

unread,
Apr 22, 2021, 7:47:49 PM4/22/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi.

View Change

2 comments:

  • Patchset:

    • Patch Set #14:

      There are previous patchsets' unresolved comments in this CL, could you also resolve them before I take another look? Thanks.

  • File extensions/browser/service_worker_task_queue.cc:

    • that is true. […]

      Yes, the way I did it once (locally) was to remember which SWContext*s are being observed... and use that to decide whether to add the observer or not. I did not think enough that time to figure out a better solution : )

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 14
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Comment-Date: Thu, 22 Apr 2021 23:47:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Ghazale Hosseinabadi <gha...@chromium.org>

Ghazale Hosseinabadi (Gerrit)

unread,
Apr 23, 2021, 4:58:45 PM4/23/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Hiroki Nakagawa, Istiaque Ahmed.

View Change

4 comments:

  • Patchset:

    • Patch Set #14:

      There are previous patchsets' unresolved comments in this CL, could you also resolve them before I t […]

      Done.

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js:

    • Any updates on this? […]

      It is the "Service Worker/Extension Layer Interaction" doc that I just shared with you. I tested this scenario (undefined variable) and it is showing an error on chrome://extensions.I added a test here and I will add a follow-up CL to add the wpt tests.

  • File extensions/browser/service_worker_task_queue.cc:

    • Using the existing function sounds nice. […]

      I did this, but when building I get the following error (during linking). I couldn't figure out why this is happening, could you please take a look? Thanks!

      error: undefined symbol: content::ConsoleMessageLevelToLogSeverity(blink::mojom::ConsoleMessageLevel)
      >>> referenced by log_console_message.cc:22 (../../content/browser/log_console_message.cc:22)
      >>> obj/content/browser/browser/log_console_message.o:(content::LogConsoleMessage(blink::mojom::ConsoleMessageLevel, std::__Cr::basic_string<char16_t, std::__Cr::char_traits<char16_t>, std::__Cr::allocator<char16_t> > const&, int, bool, bool, std::__Cr::basic_string<char16_t, std::__Cr::char_traits<char16_t>, std::__Cr::allocator<char16_t> > const&))
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      ninja: build stopped: subcommand failed.

  • File extensions/browser/service_worker_task_queue.cc:

    • Yes, the way I did it once (locally) was to remember which SWContext*s are being observed... […]

      Done

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 15
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Fri, 23 Apr 2021 20:58:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>
Comment-In-Reply-To: Ghazale Hosseinabadi <gha...@chromium.org>
Comment-In-Reply-To: Makoto Shimazu <shi...@chromium.org>

Hiroki Nakagawa (Gerrit)

unread,
Apr 25, 2021, 8:16:15 PM4/25/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi, Istiaque Ahmed.

View Change

3 comments:

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js:

    • It is the "Service Worker/Extension Layer Interaction" doc that I just shared with you. […]

      Thanks! Acked.

  • File content/public/browser/console_message.h:

    • Patch Set #15, Line 15: logging::LogSeverity ConsoleMessageLevelToLogSeverity(

      To fix the link issue, probably this needs CONTENT_EXPORT.

  • File extensions/browser/service_worker_task_queue.cc:

    • I did this, but when building I get the following error (during linking). […]

      Seems like the function is not exposed to the outside of the content module. See my comment in content/public/browser/console_message.h.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 15
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Mon, 26 Apr 2021 00:16:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Ghazale Hosseinabadi <gha...@chromium.org>
Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>

Ghazale Hosseinabadi (Gerrit)

unread,
Apr 26, 2021, 10:29:15 AM4/26/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org

Attention is currently required from: Ghazale Hosseinabadi, Istiaque Ahmed.

Ghazale Hosseinabadi uploaded patch set #17 to this change.

View Change

[Extensions] Display runtime errors in chrome://extensions.

This CL makes code changes to display runtime errors on chrome://extensions for service worker based extensions.


Bug: 1152202
Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
---
M chrome/browser/extensions/service_worker_apitest.cc
A chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/manifest.json
A chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js
A chrome/test/data/extensions/api_test/service_worker/worker_based_background/undefined_variable/manifest.json
A chrome/test/data/extensions/api_test/service_worker/worker_based_background/undefined_variable/service_worker_background.js
M components/performance_manager/service_worker_context_adapter.cc
M components/performance_manager/service_worker_context_adapter.h
M content/browser/log_console_message.cc
M content/browser/log_console_message.h
M content/browser/service_worker/service_worker_context_wrapper.cc
M content/browser/service_worker/service_worker_context_wrapper.h
A content/public/browser/console_message.cc
M content/public/browser/console_message.h
M content/public/browser/service_worker_context.h
M extensions/browser/service_worker_task_queue.cc
M extensions/browser/service_worker_task_queue.h
16 files changed, 202 insertions(+), 28 deletions(-)

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 17
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-MessageType: newpatchset

Ghazale Hosseinabadi (Gerrit)

unread,
Apr 26, 2021, 10:29:35 AM4/26/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org

Attention is currently required from: Ghazale Hosseinabadi, Istiaque Ahmed.

Ghazale Hosseinabadi uploaded patch set #18 to this change.

Gerrit-PatchSet: 18

Ghazale Hosseinabadi (Gerrit)

unread,
Apr 26, 2021, 10:31:23 AM4/26/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Hiroki Nakagawa, Istiaque Ahmed.

View Change

1 comment:

  • File extensions/browser/service_worker_task_queue.cc:

    • Seems like the function is not exposed to the outside of the content module. […]

      I added CONTENT_EXPORT, but I still get the same error:

    • error: undefined symbol: content::ConsoleMessageLevelToLogSeverity(blink::mojom::ConsoleMessageLevel)
      >>> referenced by log_console_message.cc:22 (../../content/browser/log_console_message.cc:22)
      >>> obj/content/browser/browser/log_console_message.o:(content::LogConsoleMessage(blink::mojom::ConsoleMessageLevel, std::__Cr::basic_string<char16_t, std::__Cr::char_traits<char16_t>, std::__Cr::allocator<char16_t> > const&, int, bool, bool, std::__Cr::basic_string<char16_t, std::__Cr::char_traits<char16_t>, std::__Cr::allocator<char16_t> > const&))
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      ninja: build stopped: subcommand failed.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 18
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Mon, 26 Apr 2021 14:31:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>
Comment-In-Reply-To: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-MessageType: comment

Hiroki Nakagawa (Gerrit)

unread,
Apr 26, 2021, 10:08:01 PM4/26/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi, Istiaque Ahmed.

View Change

1 comment:

  • File extensions/browser/service_worker_task_queue.cc:

    • I added CONTENT_EXPORT, but I still get the same error: […]

      Ah, content/public/browser/console_message.cc is a new file but not added to any BUILD.gn, so it's not compiled.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 18
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Tue, 27 Apr 2021 02:07:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Ghazale Hosseinabadi <gha...@chromium.org>
Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-MessageType: comment

Ghazale Hosseinabadi (Gerrit)

unread,
Apr 27, 2021, 11:35:29 AM4/27/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Hiroki Nakagawa, Istiaque Ahmed.

View Change

2 comments:

  • File extensions/browser/service_worker_task_queue.cc:

    • Ah, content/public/browser/console_message.cc is a new file but not added to any BUILD. […]

      Thanks, that fixed my problem. I can not not use content::ConsoleMessageLevelToLogSeverity(message.message_level), since that causes chrome to crash at

      [3849870:3849870:0427/152828.527812:FATAL:error_console.cc(136)] Check failed: error->level() >= extension_misc::kMinimumSeverityToReportError (0 vs. 1)Errors less than severity warning should not be reported.

      Is it OK to go back to using

      static_cast<logging::LogSeverity>(logging::LOGGING_ERROR)?

    • Ah, content/public/browser/console_message.cc is a new file but not added to any BUILD. […]

      That worked, thanks so much!

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 18
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Tue, 27 Apr 2021 15:35:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Hiroki Nakagawa (Gerrit)

unread,
Apr 28, 2021, 8:30:59 AM4/28/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi, Istiaque Ahmed.

View Change

4 comments:

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js:

    • Patch Set #19, Line 3: // found in the LICENSE file.

      It would be nice to have a blank line between the license and scripts.

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/undefined_variable/service_worker_background.js:

  • File content/browser/log_console_message.cc:

  • File extensions/browser/service_worker_task_queue.cc:

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 19
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Wed, 28 Apr 2021 12:30:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Ghazale Hosseinabadi (Gerrit)

unread,
May 1, 2021, 11:19:58 AM5/1/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Hiroki Nakagawa, Istiaque Ahmed.

View Change

4 comments:

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js:

    • Patch Set #19, Line 3: // found in the LICENSE file.

      It would be nice to have a blank line between the license and scripts.

    • Done

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/undefined_variable/service_worker_background.js:

    • Done

  • File content/browser/log_console_message.cc:

    • Done

  • File extensions/browser/service_worker_task_queue.cc:

    • [3849870:3849870:0427/152828.527812:FATAL:error_console.cc(136)] Check failed: error->level() >= extension_misc::kMinimumSeverityToReportError (0 vs. 1)Errors less than severity warning should not be reported.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 20
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Sat, 01 May 2021 15:19:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Hiroki Nakagawa (Gerrit)

unread,
May 5, 2021, 10:32:58 AM5/5/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi, Istiaque Ahmed.

Patch set 20:Code-Review +1

View Change

8 comments:

  • Patchset:

  • File content/browser/log_console_message.h:

  • File content/public/browser/console_message.h:

    • Patch Set #15, Line 15: logging::LogSeverity ConsoleMessageLevelToLogSeverity(

      To fix the link issue, probably this needs CONTENT_EXPORT.

    • Done

  • File extensions/browser/service_worker_task_queue.cc:

    • I got this error because I was setting const int32_t resolved_level = 0; […]

      Acked. Thanks!

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #20, Line 232:

        if (lazy_context_id.browser_context() != browser_context_)
      return;

      I wonder if this if-condition is never satisfied because LazyContextId is created from `browser_context_` at line 227.

    • Patch Set #20, Line 237: lazy_context_id.extension_id(), lazy_context_id.browser_context()

      We can pass `extension_id` and `browser_context_` here without taking `lazy_context_id` from `context_id`.

    • Patch Set #20, Line 286: if (lazy_context_id.browser_context() != browser_context_)

      Ditto.

    • Patch Set #20, Line 291: lazy_context_id.extension_id(), lazy_context_id.browser_context());

      Ditto.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 20
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Wed, 05 May 2021 14:32:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

Istiaque Ahmed (Gerrit)

unread,
May 5, 2021, 3:23:09 PM5/5/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi.

View Change

2 comments:

  • Patchset:

    • Patch Set #20:

      Sending one comment/question below. Could you also resolve all the unresolved comments in the CL before next round? Thanks.

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #20, Line 293: partition->GetServiceWorkerContext()->RemoveObserver(this);

      I think there could be issues here: e.g.:

      If we had extension1 -> service_worker_context1
      and extension2 -> service_worker_context1,
      then say extension1 added observer first, and then extension2 tried to add observer (skipping because HasObserver will return true), then in the case extension1 removes its observer:
      - extension2 would no longer have an observer, isn't that a problem?
      - extension2 will try to remove the observer that was already removed. That, in theory, will/might fail.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 20
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Comment-Date: Wed, 05 May 2021 19:23:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Ghazale Hosseinabadi (Gerrit)

unread,
May 6, 2021, 12:32:32 PM5/6/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Hiroki Nakagawa, Istiaque Ahmed.

View Change

8 comments:

  • Patchset:

  • File content/browser/log_console_message.h:

    • Done

    •   if (lazy_context_id.browser_context() != browser_context_)
      return;

    • I wonder if this if-condition is never satisfied because LazyContextId is created from `browser_cont […]

      right, I deleted it.

    • We can pass `extension_id` and `browser_context_` here without taking `lazy_context_id` from `contex […]

      Done

    • Done

    • Done

    • I think there could be issues here: e.g.: […]

      In which scenario the above happens? I tried loading (or reloading) two extensions. I have copy/pasted the logs that I see. Basically, RemoveObserver is called when loading the extension is done. And when the other extension is loaded, AddObserver and then RemoveObserver are called.

      [2422968:2422968:0506/162435.925466:INFO:CONSOLE(2)] "Uncaught TypeError: console.lg is not a function", source: chrome-extension://hjpmelllpnicnbngibcognoknefogbmi/background.js (2)
      [2422968:2422968:0506/162435.926152:WARNING:service_worker_task_queue.cc(237)] AddObserver
      [2422968:2422968:0506/162435.949230:WARNING:service_worker_task_queue.cc(285)] RemoveObserver


      [2422968:2422968:0506/162437.789541:INFO:CONSOLE(2)] "Breakpoint!", source: chrome-extension://lmlndkckcngbkcmpgkologjapikonghg/background.js (2)
      [2422968:2422968:0506/162437.791629:INFO:CONSOLE(3)] "Uncaught TypeError: console.g is not a function", source: chrome-extension://lmlndkckcngbkcmpgkologjapikonghg/background.js (3)
      [2422968:2422968:0506/162437.798990:WARNING:service_worker_task_queue.cc(237)] AddObserver
      [2422968:2422968:0506/162437.806216:WARNING:service_worker_task_queue.cc(285)] RemoveObserver

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 21
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Thu, 06 May 2021 16:32:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>

Ghazale Hosseinabadi (Gerrit)

unread,
May 7, 2021, 11:39:21 AM5/7/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Istiaque Ahmed.

View Change

1 comment:

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #20, Line 293: partition->GetServiceWorkerContext()->RemoveObserver(this);

      In which scenario the above happens? I tried loading (or reloading) two extensions. […]

      Yes, the above can happen. I added count to fix that problem.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 23
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Fri, 07 May 2021 15:39:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Ghazale Hosseinabadi <gha...@chromium.org>

Istiaque Ahmed (Gerrit)

unread,
May 12, 2021, 7:22:37 PM5/12/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi.

View Change

2 comments:

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 23
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Comment-Date: Wed, 12 May 2021 23:22:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Istiaque Ahmed (Gerrit)

unread,
Jun 1, 2021, 4:15:10 PM6/1/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi.

View Change

3 comments:

  • Patchset:

    • Patch Set #26:

      I think I've found what the problem was: replying with that only. Aside, could you resolve all the "unresolved" comments that were resolved or reply what couldn't be resolved? It should help reducing distractions to review that way. Ty.

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #26, Line 89: observed_worker_contexts_.erase(service_worker_context);

      AFAIK, this will invalidate the iterator.
      I'd just call
      for (auto* const service_worker_context : ...) {
      service_worker_context->RemoveObserver(this);
      }
      And then clear |observing_worker_contexts_|. But we probably don't need to clear it explicitly cause we're in destructor, which will clear them anyway.
    • Patch Set #26, Line 632: for (auto* const service_worker_context : observed_worker_contexts_) {

      OnDestruct is called for particular |context| that is being destructed, so this method should only call context->RemoveObserver(this); and erase the corresponding context from |observed_worker_contexts_| -- And not all the contexts from the container.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 26
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Comment-Date: Tue, 01 Jun 2021 20:14:58 +0000

Ghazale Hosseinabadi (Gerrit)

unread,
Jun 1, 2021, 4:57:49 PM6/1/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Istiaque Ahmed.

View Change

3 comments:

  • Patchset:

    • Patch Set #27:

      Thanks Istiaque, this CL is now ready for the final review.

  • File extensions/browser/service_worker_task_queue.cc:

    • AFAIK, this will invalidate the iterator. […]

      Thanks, this fixed the failing tests.

    • OnDestruct is called for particular |context| that is being destructed, so this method should only c […]

      Done

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 27
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Tue, 01 Jun 2021 20:57:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Istiaque Ahmed (Gerrit)

unread,
Jun 3, 2021, 6:33:16 PM6/3/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Hiroki Nakagawa, Ghazale Hosseinabadi, Makoto Shimazu.

View Change

11 comments:

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js:

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/undefined_variable/service_worker_background.js:

    • Patch Set #28, Line 6: console.log(undefined_variable);

      nit: ditto about commenting this line to make it clear.

  • File extensions/browser/service_worker_task_queue.h:

    • Patch Set #28, Line 129: void OnReportConsoleMessage(int64_t version_id,

      We generally group overridden methods together (w/o whitespace separating them) and prefix them with the base class name it's overriding the methods from, e.g.
      // content::ServiceWorkerContextObserver:
      void OnReported...

    • Patch Set #28, Line 209: observed_worker_contexts_

      nit: |observing_worker_contexts_| is slightly more appropriate.

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #9, Line 653: std::unique_ptr<ExtensionError> error_instance(

      I feel using `auto` is enough since the type is explicit at std::make_unique<>. […]

      +1 for auto.

  • File extensions/browser/service_worker_task_queue.cc:

    •   if (lazy_context_id.browser_context() != browser_context_)
      return;

    • right, I deleted it.

      Please mark the comments that are resolved by checking "Resolved" checkbox(es).

    • Yes, the above can happen. I added count to fix that problem.

      I'd update this comment to note that we're using multiset-s.

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #28, Line 243: observed_worker_contexts_.end())

      nit: {} for multiline

    • Patch Set #28, Line 270: DidStopServiceWorkerContext

      Were you able to check renderer shutdown scenario I mentioned before? i.e. What happens if one worker is terminated (by killing the worker process) and we don't see the DidStopServiceWorkerContext IPC?

    • Patch Set #28, Line 294: if (observed_worker_contexts_.find(service_worker_context) !=

      nit: {} for multiline

    • Patch Set #28, Line 300: service_worker_context->RemoveObserver(this);

      {} for multiline.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 28
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Attention: Makoto Shimazu <shi...@chromium.org>
Gerrit-Comment-Date: Thu, 03 Jun 2021 22:33:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Ghazale Hosseinabadi <gha...@chromium.org>
Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>
Comment-In-Reply-To: Makoto Shimazu <shi...@chromium.org>

Ghazale Hosseinabadi (Gerrit)

unread,
Jun 4, 2021, 11:04:12 AM6/4/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Istiaque Ahmed.

View Change

15 comments:

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js:

    • Done

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/undefined_variable/service_worker_background.js:

    • Patch Set #28, Line 6: console.log(undefined_variable);

      nit: ditto about commenting this line to make it clear.

    • Done

  • File extensions/browser/service_worker_task_queue.h:

    • We generally group overridden methods together (w/o whitespace separating them) and prefix them with […]

      Done

    • Done

  • File extensions/browser/service_worker_task_queue.cc:

    •     ExtensionsBrowserClient::Get()->ReportError(browser_context_,
      std::move(error));

    • sgtm.

      Done

  • File extensions/browser/service_worker_task_queue.cc:

    • Please mark the comments that are resolved by checking "Resolved" checkbox(es).

      Done

    • I'd update this comment to note that we're using multiset-s.

      Done

  • File extensions/browser/service_worker_task_queue.cc:

    • This is assuming for a particular BrowserContext, ServiceWorkerContext* will always be the same. […]

      Done

  • File extensions/browser/service_worker_task_queue.cc:

    • Thanks, this fixed the failing tests.

      Done

  • File extensions/browser/service_worker_task_queue.cc:

    • Done

    • Were you able to check renderer shutdown scenario I mentioned before? i.e. […]

      I couldn't simulate a scenario that a worker is terminated, but I don't get a DidStopServiceWorkerContext IPC. I tried terminating the SW from chrome://inspect and also by closing an open devtools window. If we need more investigation here, can it be done in a future CL? since this CL has been under review for a long time.

    • Done

    • Done

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 28
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Fri, 04 Jun 2021 15:04:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>
Comment-In-Reply-To: Ghazale Hosseinabadi <gha...@chromium.org>

Istiaque Ahmed (Gerrit)

unread,
Jun 4, 2021, 6:09:13 PM6/4/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi.

View Change

1 comment:

  • Patchset:

    • Patch Set #28:

      I don't see any new patchset for this CL. Forgot to upload?

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 28
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Comment-Date: Fri, 04 Jun 2021 22:09:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Ghazale Hosseinabadi (Gerrit)

unread,
Jun 4, 2021, 6:18:12 PM6/4/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Istiaque Ahmed.

View Change

1 comment:

  • Patchset:

    • Patch Set #28:

      I don't see any new patchset for this CL. […]

      sorry, just uploaded the CL.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 29
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Fri, 04 Jun 2021 22:17:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Istiaque Ahmed (Gerrit)

unread,
Jun 7, 2021, 3:54:16 PM6/7/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi.

View Change

11 comments:

  • Patchset:

    • Patch Set #29:

      The error reporting code in SWTQ that I looked into this round seems to be passing dummy values to ExtensionError/RuntimeError. It likely is necessary in some scenarios, but I couldn't figure the entire reasoning, mind explaining those a bit?

  • File chrome/browser/extensions/service_worker_apitest.cc:

    • Patch Set #29, Line 93: using ::testing::HasSubstr;

      Is this unused?

    • Patch Set #29, Line 453: registration_observer.WaitForRegistrationStored();

      Is registration stored signal *necessary* for this test? i.e. would this fail (perhaps flakily) if we didn't observe this?

      (applies also to the same code below at line 479).

    • Patch Set #29, Line 459: extension

      We should also add ASSERT_TRUE(extension) before as we're accessing it here.

    • Patch Set #29, Line 462: Uncaught chrome.test.failure

      Is there a way developers could see the actual syntax error?
      console.lg is malformed or sth.
      and would it be possible to test that?

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/module_service_worker_dynamic_import/service_worker_background.js:

    • Patch Set #29, Line 7: import

      Could you explain this change here for my understanding? i.e. why was it changed from importScripts->import and which one is "dynamic" import?

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #28, Line 270: DidStopServiceWorkerContext

      I couldn't simulate a scenario that a worker is terminated, but I don't get a DidStopServiceWorkerCo […]

      I wanted to ensure we don't unexpectedly fail/crash in this case.
      chrome://inspect only allows to stop the worker, I was talking about forcefully killing the worker process (for a running worker, use task manager to terminate the worker process). And then observe what notifications we see and ensure closing browser afterwards doesn't crash.
      See if you can test this manually. However, my current speculation is that it *should* work. Also given that we have other tests that (sort of at least) exercises killing worker process, we might be okay.

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #29, Line 618: auto error_instance(

      nit: we typically assign in this case, i.e. auto error_instance = std::make_unique...

    • Patch Set #29, Line 619: u""

      Is it OK to be source empty here?

    • Patch Set #29, Line 620:

      StackTrace(1,
      StackFrame(message.line_number, 1,
      base::UTF8ToUTF16(message.source_url.spec()), u"")),

      This doesn't look like it's the actual "trace", we're constructing a trace to contain one frame with the error?

      I'd like that we comment it explicitly here if that's the case.

    • Patch Set #29, Line 625: -1 /* render_view_id */, -1 /* render_process_id */

      Why is this OK to send dummy ids in actual/production code here?

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 29
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Comment-Date: Mon, 07 Jun 2021 19:54:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Ghazale Hosseinabadi <gha...@chromium.org>

Ghazale Hosseinabadi (Gerrit)

unread,
Jun 8, 2021, 1:34:27 PM6/8/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Istiaque Ahmed.

View Change

11 comments:

  • Patchset:

    • Patch Set #29:

      The error reporting code in SWTQ that I looked into this round seems to be passing dummy values to E […]

      In ServiceWorkerTaskQueue::OnReportConsoleMessage, I do not have access to render_view_id and render_process_id. That is why I am passing -1. Is there a way to extraxt render_view_id */, -1 /* render_process_id in ServiceWorkerTaskQueue::OnReportConsoleMessage?

  • File chrome/browser/extensions/service_worker_apitest.cc:

    • yes, deleted.

    • Is registration stored signal *necessary* for this test? i.e. […]

      The test does not fail without this line. I ran the test a couple of times and it passed. I deleted this observer for both the tests.

    • Done

    • Is there a way developers could see the actual syntax error? […]

      I only get "Uncaught chrome.test.failure" in this test. And as I checked ErrorConsole is the only method to get the error console. I tested the same error with an extension on chrome and the error that I get on chrome://extensions is "Uncaught TypeError: console.lg is not a function". So developers see the actual syntax error, but it seems to me that we can not test that.

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/module_service_worker_dynamic_import/service_worker_background.js:

    • Could you explain this change here for my understanding? i.e. […]

      import() is the dynamic import. This was a mistake in another CL and I planned to fix it. Since this CL surfaces this error, I thought it is better to fix it in this CL (i.e., use import() instead of importScript()).

  • File extensions/browser/service_worker_task_queue.cc:

    • I wanted to ensure we don't unexpectedly fail/crash in this case. […]

      I used pkill -9 to kill the worker process. With that I got DidStopServiceWorkerContext IPC and closing browser afterwards did not crash.

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #29, Line 618: auto error_instance(

      nit: we typically assign in this case, i.e. auto error_instance = std::make_unique...

    • Done

    • replaced it with message.source

    • Patch Set #29, Line 620:

      StackTrace(1,
      StackFrame(message.line_number, 1,
      base::UTF8ToUTF16(message.source_url.spec()), u"")),

    • This doesn't look like it's the actual "trace", we're constructing a trace to contain one frame with […]

      right, added a comment.

    • Patch Set #29, Line 625: -1 /* render_view_id */, -1 /* render_process_id */

      Why is this OK to send dummy ids in actual/production code here?

    • I do not have access to render_view_id and render_process_id. That is why I am passing -1. I see the error being reported to chrome://extensions, that was why I thought it should be fine to pass -1 here.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 30
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Tue, 08 Jun 2021 17:34:17 +0000

Ghazale Hosseinabadi (Gerrit)

unread,
Jun 8, 2021, 3:02:52 PM6/8/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Istiaque Ahmed.

View Change

1 comment:

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #29, Line 625: -1 /* render_view_id */, -1 /* render_process_id */

      I do not have access to render_view_id and render_process_id. That is why I am passing -1. […]

      I added comments for ender_view_id and render_process_id.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 31
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Tue, 08 Jun 2021 19:02:37 +0000

Istiaque Ahmed (Gerrit)

unread,
Jun 10, 2021, 4:51:36 PM6/10/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi.

View Change

5 comments:

  • File chrome/browser/extensions/service_worker_apitest.cc:

    • Patch Set #29, Line 462: Uncaught chrome.test.failure

      I only get "Uncaught chrome.test.failure" in this test. […]

      That's likely due to how the test is structured: currently the error is surfaced from inside chrome.test.runTests. If we move it to global scope method, I can see the ~error from ErrorConsole.

      Changing the JS to:

      chrome.test.sendMessage('ready', ()=> {
      syntaxError();
      });
      var syntaxError = function() {
      // Intentional syntax error.
      console.lg('test');
      };

      That should trickle the "TypeError: console.lg is not a function" error (sth similar) to |error_list| and we can verify the error's presence here.

      It's important to verify specific error we're looking for here, as there's a chance that the actual error is masked and can potentially incorrectly fail. For example, changing the error to undefined variable error would still leave this test passing.

  • File chrome/browser/extensions/service_worker_apitest.cc:

    • Patch Set #31, Line 457: error_list[0]

      Should we also verify that the type() of this is correct, i.e. RUNTIME_ERROR?

    • Patch Set #31, Line 471: "service_worker/worker_based_background/undefined_variable"));

      We can use the same extension as the previous test too. You can send two (nested) sendMessage to execute two error cases (and likely rename the tests to ServiceWorkerBasedBackgroundTest.RuntimeError):

      service_worker_background.js:
      chrome.test.sendMessage('ready1', ()=> {
      chrome.test.sendMessage('ready2' ()=> {
      undefinedVariableError();
      });
      syntaxError();
      });

      Then from C++, you could install two ExtensionTestMessageListener-s to catch 'ready1'/'ready2', then Reply each of them.

  • File extensions/browser/service_worker_task_queue.cc:

    • Patch Set #31, Line 622: 1

      Can we pass the correct parameter here?

    • Patch Set #31, Line 630: -1 /* We do not have access to render_process_id here */

      Let the comment statement not imply that this is expected.

      I'd rather file a bug with a TODO and explore how to retrieve the correct process id here. If service worker is running, then there must be a way to retrieve its process id from |version_id|.

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 31
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Comment-Date: Thu, 10 Jun 2021 20:51:20 +0000

Ghazale Hosseinabadi (Gerrit)

unread,
Jun 11, 2021, 7:32:42 AM6/11/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Hiroki Nakagawa, Istiaque Ahmed, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Istiaque Ahmed.

View Change

5 comments:

  • File chrome/browser/extensions/service_worker_apitest.cc:

    • That's likely due to how the test is structured: currently the error is surfaced from inside chrome. […]

      Done

  • File chrome/browser/extensions/service_worker_apitest.cc:

    • Should we also verify that the type() of this is correct, i.e. […]

      Done

    • We can use the same extension as the previous test too. […]

      I kept them as two separate extensions and tests. In my opinion, this way is more clear.

  • File extensions/browser/service_worker_task_queue.cc:

    • No, content::ConsoleMessage has only line_number.

    • Let the comment statement not imply that this is expected. […]

      Done

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 32
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Istiaque Ahmed <laz...@chromium.org>
Gerrit-Comment-Date: Fri, 11 Jun 2021 11:32:36 +0000

Istiaque Ahmed (Gerrit)

unread,
Jun 11, 2021, 2:02:05 PM6/11/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Istiaque Ahmed, Hiroki Nakagawa, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi.

Patch set 32:Code-Review +1

View Change

8 comments:

  • Patchset:

  • File chrome/browser/extensions/service_worker_apitest.cc:

    • Patch Set #32, Line 443: profile()->GetPrefs()->SetBoolean(prefs::kExtensionsUIDeveloperMode, true);

      Add a comment why setting prefs is necessary.

    • Patch Set #32, Line 455: ASSERT_TRUE(extension);

      nit: This should go right after line 448 above.

    • Patch Set #32, Line 459: ExtensionError::RUNTIME_ERROR

      Swap params: expected, actual:
      EXPECT_EQ(RUNTIME_ERROR, error_list[0]->type());

    • Patch Set #32, Line 459: ASSERT_EQ

      EXPECT_EQ is better/typical here: as the test could gracefully continue to run the next lines and potentially collect more errors that might be useful in case of test failure.

      For previous line, ASSERT* is important because we cannot access error_list[0] if error_list didn't have an element in it.

    • Patch Set #32, Line 460: ASSERT_THAT

      ditto: EXPECT_

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js:

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/undefined_variable/service_worker_background.js:

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 32
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Comment-Date: Fri, 11 Jun 2021 18:01:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Ghazale Hosseinabadi (Gerrit)

unread,
Jun 11, 2021, 3:58:43 PM6/11/21
to Arthur Sonzogni, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Istiaque Ahmed, Hiroki Nakagawa

Attention is currently required from: Arthur Sonzogni.

Ghazale Hosseinabadi would like Arthur Sonzogni to review this change.

View Change

[Extensions] Display runtime errors in chrome://extensions.

This CL makes code changes to display runtime errors on
chrome://extensions for service worker based extensions.

Bug: 1152202
Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
---
M chrome/browser/extensions/service_worker_apitest.cc
M chrome/test/data/extensions/api_test/service_worker/worker_based_background/module_service_worker_dynamic_import/service_worker_background.js

A chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/manifest.json
A chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js
A chrome/test/data/extensions/api_test/service_worker/worker_based_background/undefined_variable/manifest.json
A chrome/test/data/extensions/api_test/service_worker/worker_based_background/undefined_variable/service_worker_background.js
M content/browser/log_console_message.cc
M content/browser/log_console_message.h
M content/public/browser/BUILD.gn
A content/public/browser/console_message.cc
M content/public/browser/console_message.h
M extensions/browser/service_worker_task_queue.cc
M extensions/browser/service_worker_task_queue.h
13 files changed, 252 insertions(+), 29 deletions(-)


To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 32
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-MessageType: newchange

Ghazale Hosseinabadi (Gerrit)

unread,
Jun 11, 2021, 3:58:47 PM6/11/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Arthur Sonzogni, Istiaque Ahmed, Hiroki Nakagawa, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Arthur Sonzogni.

View Change

1 comment:

  • Patchset:

    • Patch Set #32:

      Hi Arthur,

      Could you please review my changes in console_message and log_console_message?

      Thanks,
      Ghazale

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 32
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Comment-Date: Fri, 11 Jun 2021 19:58:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Ghazale Hosseinabadi (Gerrit)

unread,
Jun 11, 2021, 4:17:47 PM6/11/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Arthur Sonzogni, Istiaque Ahmed, Hiroki Nakagawa, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Arthur Sonzogni.

View Change

5 comments:

  • File chrome/browser/extensions/service_worker_apitest.cc:

    • Patch Set #32, Line 443: profile()->GetPrefs()->SetBoolean(prefs::kExtensionsUIDeveloperMode, true);

      Add a comment why setting prefs is necessary.

    • Done

    • Done

    • EXPECT_EQ is better/typical here: as the test could gracefully continue to run the next lines and po […]

      Done

    • Swap params: expected, actual: […]

      Done

    • Done

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 33
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Comment-Date: Fri, 11 Jun 2021 20:17:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Istiaque Ahmed (Gerrit)

unread,
Jun 11, 2021, 5:08:13 PM6/11/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Arthur Sonzogni, Istiaque Ahmed, Hiroki Nakagawa, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi, Arthur Sonzogni.

Patch set 33:Code-Review +1

View Change

2 comments:

  • File chrome/browser/extensions/service_worker_apitest.cc:

    • Patch Set #33, Line 470: profile()->GetPrefs()->SetBoolean(prefs::kExtensionsUIDeveloperMode, true);

      Add the comment regarding developer mode here too.

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js:

    • (didn't see changes here)
      Change to "() => {"

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 33
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Comment-Date: Fri, 11 Jun 2021 21:08:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

Ghazale Hosseinabadi (Gerrit)

unread,
Jun 11, 2021, 6:22:44 PM6/11/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Arthur Sonzogni, Istiaque Ahmed, Hiroki Nakagawa, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Arthur Sonzogni.

View Change

2 comments:

  • File chrome/browser/extensions/service_worker_apitest.cc:

    • Patch Set #33, Line 470: profile()->GetPrefs()->SetBoolean(prefs::kExtensionsUIDeveloperMode, true);

      Add the comment regarding developer mode here too.

    • Done

  • File chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js:

    • (didn't see changes here) […]

      Done

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 34
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Comment-Date: Fri, 11 Jun 2021 22:22:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Arthur Sonzogni (Gerrit)

unread,
Jun 14, 2021, 4:55:36 AM6/14/21
to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Istiaque Ahmed, Hiroki Nakagawa, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi.

Patch set 34:Code-Review +1

View Change

1 comment:

To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
Gerrit-Change-Number: 2567672
Gerrit-PatchSet: 34
Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
Gerrit-CC: David Bertoni <dber...@chromium.org>
Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
Gerrit-Comment-Date: Mon, 14 Jun 2021 08:55:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Ghazale Hosseinabadi (Gerrit)

unread,
Jun 14, 2021, 5:34:20 AM6/14/21
to blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Arthur Sonzogni, Istiaque Ahmed, Hiroki Nakagawa, Makoto Shimazu, David Bertoni, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin

Attention is currently required from: Ghazale Hosseinabadi.

Patch set 34:Commit-Queue +2

View Change

    To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
    Gerrit-Change-Number: 2567672
    Gerrit-PatchSet: 34
    Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
    Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
    Gerrit-CC: David Bertoni <dber...@chromium.org>
    Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Ghazale Hosseinabadi <gha...@chromium.org>
    Gerrit-Comment-Date: Mon, 14 Jun 2021 09:34:12 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Chromium LUCI CQ (Gerrit)

    unread,
    Jun 14, 2021, 7:09:29 AM6/14/21
    to Ghazale Hosseinabadi, blink-...@chromium.org, blink-work...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, jsbell+ser...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, mlamouri+wa...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, Arthur Sonzogni, Istiaque Ahmed, Hiroki Nakagawa, Makoto Shimazu, David Bertoni, chromium...@chromium.org, Nate Chapin

    Chromium LUCI CQ submitted this change.

    View Change

    Approvals: Istiaque Ahmed: Looks good to me Hiroki Nakagawa: Looks good to me Arthur Sonzogni: Looks good to me Ghazale Hosseinabadi: Commit
    [Extensions] Display runtime errors in chrome://extensions.

    This CL makes code changes to display runtime errors on
    chrome://extensions for service worker based extensions.

    Bug: 1152202
    Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2567672
    Reviewed-by: Arthur Sonzogni <arthurs...@chromium.org>
    Reviewed-by: Istiaque Ahmed <laz...@chromium.org>
    Reviewed-by: Hiroki Nakagawa <nhi...@chromium.org>
    Commit-Queue: Ghazale Hosseinabadi <gha...@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#892025}

    ---
    M chrome/browser/extensions/service_worker_apitest.cc
    M chrome/test/data/extensions/api_test/service_worker/worker_based_background/module_service_worker_dynamic_import/service_worker_background.js
    A chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/manifest.json
    A chrome/test/data/extensions/api_test/service_worker/worker_based_background/syntax_error/service_worker_background.js
    A chrome/test/data/extensions/api_test/service_worker/worker_based_background/undefined_variable/manifest.json
    A chrome/test/data/extensions/api_test/service_worker/worker_based_background/undefined_variable/service_worker_background.js
    M content/browser/log_console_message.cc
    M content/browser/log_console_message.h
    M content/public/browser/BUILD.gn
    A content/public/browser/console_message.cc
    M content/public/browser/console_message.h
    M extensions/browser/service_worker_task_queue.cc
    M extensions/browser/service_worker_task_queue.h
    13 files changed, 254 insertions(+), 29 deletions(-)


    To view, visit change 2567672. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I4e8979ddd35c0d17e14fefba3557e8740bdac5b9
    Gerrit-Change-Number: 2567672
    Gerrit-PatchSet: 35
    Gerrit-Owner: Ghazale Hosseinabadi <gha...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Ghazale Hosseinabadi <gha...@chromium.org>
    Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Reviewer: Istiaque Ahmed <laz...@chromium.org>
    Gerrit-CC: David Bertoni <dber...@chromium.org>
    Gerrit-CC: Makoto Shimazu <shi...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-MessageType: merged
    Reply all
    Reply to author
    Forward
    0 new messages