New issue
Advanced search Search tips

Issue 791895 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 6
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Zip Archiver: notification close callback added every time zipping files

Project Member Reported by yamaguchi@chromium.org, Dec 5 2017

Issue description

Chrome Version: 64.0.3275.0
(1) Run with --enable-zip-archiver-packer
(2) Compress files by "Zip selection" context menu.
(3) Open Inspector of Zip Archiver.
(4) Set breakpoint to this line.
https://cs.chromium.org/chromium/src/chrome/browser/resources/chromeos/zip_archiver/js/app.js?type=cs&q=chrome.notifications.onClosed.addListener+file:zip_archiver&sq=package:chromium&l=821
(5) Try to compress files by "Zip selection".

The line is executed multiple times.
(1 time for the first time, 2 times for the second times, ...)

This bug is visible to users by itself.
 

Comment 1 by sashab@chromium.org, Feb 22 2018

Labels: CrOS-FilesApp-Zip

Comment 2 by sashab@chromium.org, Feb 28 2018

Labels: -CrOS-FilesApp-Zip CrOSFilesFeature-Zip
Labels: M-67
Status: Assigned (was: Untriaged)
Cc: yamaguchi@chromium.org
Owner: ----
Status: Available (was: Assigned)
Changing sthe status to Available, because this is not a blocker of Zip Archiver, but an independent cleanup task. 

"This line" in (4) means this line:
          chrome.notifications.onClosed.addListener(function() {
            progressNotificationCreated = false;  // <<< THIS LINE
          });
Labels: -M-67
Project Member

Comment 6 by bugdroid1@chromium.org, Nov 6

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c4c7562995b905679f9d912ea75d6788e0071954

commit c4c7562995b905679f9d912ea75d6788e0071954
Author: Anand K. Mistry <amistry@chromium.org>
Date: Tue Nov 06 00:38:26 2018

Deregister notification listeners when packing is done.

Deregistering the handlers avoids them being called once the packing
operation is done, and an unrelated future pack operation is in
progress. It also frees up a bit of memory.

BUG= 791895 

Change-Id: I52b8382d18b95637c868c1cdb91fed4b0f6fd276
Reviewed-on: https://chromium-review.googlesource.com/c/1317208
Reviewed-by: Luciano Pacheco <lucmult@chromium.org>
Commit-Queue: Anand Mistry <amistry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605540}
[modify] https://crrev.com/c4c7562995b905679f9d912ea75d6788e0071954/chrome/browser/resources/chromeos/zip_archiver/js/app.js

Owner: amistry@chromium.org
Status: Fixed (was: Available)

Sign in to add a comment