New issue
Advanced search Search tips

Issue 827855 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 373579
Owner:
Closed: Jun 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

webNavigation.onCommitted is dispatched multiple times

Project Member Reported by m.jeth...@eyeo.com, Apr 1 2018

Issue description

Chrome Version: 65.0.3325.162 (Official Build) (64-bit)
OS: macOS Sierra 10.12.6

What steps will reproduce the problem?
(1) Unzip and load attached extension
(2) Visit http://example.com/

What is the expected result?

The background page prints:

  webNavigation.onCommitted (1) for http://example.com/
  webNavigation.onCommitted (2) for http://example.com/
  webNavigation.onCommitted (3) for http://example.com/

What happens instead?

The background page prints:

  webNavigation.onCommitted (1) for http://example.com/
  webNavigation.onCommitted (2) for http://example.com/
  webNavigation.onCommitted (3) for http://example.com/
  webNavigation.onCommitted (1) for http://example.com/
  webNavigation.onCommitted (2) for http://example.com/
  webNavigation.onCommitted (3) for http://example.com/
  webNavigation.onCommitted (1) for http://example.com/
  webNavigation.onCommitted (2) for http://example.com/
  webNavigation.onCommitted (3) for http://example.com/

If you go to some other page, for example https://manishjethani.com/ (or any one that doesn't contain "example" in the URL), it'll print:

  webNavigation.onCommitted (1) for https://manishjethani.com/
  webNavigation.onCommitted (2) for https://manishjethani.com/
  webNavigation.onCommitted (1) for https://manishjethani.com/
  webNavigation.onCommitted (2) for https://manishjethani.com/

For chrome://extensions/ it only prints:

  webNavigation.onCommitted (1) for chrome://extensions/

It seems the number of times each webNavigation.onCommitted is called is equivalent to the number of unique filters that are hit.
 
example.zip
655 bytes Download

Comment 1 by m.jeth...@eyeo.com, Apr 1 2018

Description: Show this description

Comment 2 by m.jeth...@eyeo.com, Apr 1 2018

Description: Show this description
Owner: lazyboy@chromium.org
Status: Assigned (was: Untriaged)
I hope to take a quick look, to see if we're doing something unexpected with filters while dispatching event.
Mergedinto: 373579
Status: Duplicate (was: Assigned)
Just found that there's an old bug for this, https://bugs.chromium.org/p/chromium/issues/detail?id=373579, merging this one with the older bug.

Sign in to add a comment