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

Issue 2728573003: Files app: Work around the issue about opening menus by keeping references to <hr>s. (Closed)

Created:
3 years, 9 months ago by fukino
Modified:
3 years, 9 months ago
Reviewers:
oka
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

Description

Files app: Work around the issue about opening menus by keeping references to <hr>s. Files app's settings menu uses cr.ui.Menu, and <hr>s in the menu needs to be decorated by cr.ui.MenuItem. However, in some cases, the <hr>s can lose the decorated functions for some reason (suspected that it's by GC for <hr> wrappers). This behavior be worked around by explicitly keeping reference to those <hr>s. BUG=689255 TEST=confirmed 300+ trials of repro step did not reproduce the issue. It reproduced around 10% without the patch. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation TBR=oka@chromium.org Review-Url: https://codereview.chromium.org/2712403003 Cr-Commit-Position: refs/heads/master@{#453557} (cherry picked from commit 3bc177a7e5b7d15e6635613373ac316263576150) Review-Url: https://codereview.chromium.org/2728573003 . Cr-Commit-Position: refs/branch-heads/2987@{#736} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/d26dc12aebd14b71b72081877682a97d11047652

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
fukino
3 years, 9 months ago (2017-03-02 02:35:31 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
d26dc12aebd14b71b72081877682a97d11047652.

Powered by Google App Engine
This is Rietveld 408576698