New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 623247 link

Starred by 3 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

bookmarks manager: opening 15+ bookmarks broken (with --enable-experimental-web-platform-features)

Project Member Reported by dbeam@chromium.org, Jun 24 2016

Issue description

The bookmarks manager uses bookmarksPrivate to ask how many bookmarks in a directory.  This API is asynchronous.

After a user chooses to open a folder full of bookmarks, we prompt (if there's 15+ bookmarks found) asking "Do you really want to open 20 bookmarks?".

That's currently implemented via confirm(), which was disallowed from microtasks (i.e. after we get our async API response) as of https://codereview.chromium.org/1126253007 (or one of the CLs in https://bugs.chromium.org/p/chromium/issues/detail?id=483624).

Let's figure out either a way to:
a) figure out the number of URLs to be opened synchronously
b) how to sidestep this security measure for the bookmarks manager
 

Comment 1 by dbeam@chromium.org, Jun 25 2016

Cc: wychen@chromium.org
maybe this is also CSP related?

Comment 2 by mkwst@chromium.org, Jun 25 2016

If the sandbox change is the blocking factor, you can change the sandboxing flags on the frame which uses `confirm()` to include `allow-modals`.

Comment 3 by jochen@chromium.org, Jun 25 2016

Please consider using a <dialog> instead of a prompt()

Comment 4 by wychen@chromium.org, Jun 26 2016

I tried this on Mac and Linux, and they both show "An embedded page at ... says: Are you sure ...". How exactly do you reproduce this being blocked?

On bookmarks bar, the prompt is "Chromium: Are you sure ...". Do we want to make them look the same?

Comment 5 by dbeam@chromium.org, Jun 27 2016

Labels: -Pri-1 Pri-2
Summary: bookmarks manager: opening 15+ bookmarks broken (with --enable-experimental-web-platform-features) (was: bookmarks manager: opening 15+ bookmarks broken)
mkwst@: yeah, I'll think about that / try to find out how to apply that to my UI

jochen@: I agree the UI is bad and something like <dialog> is a better answer

wychen@: chrome://flags/#enable-experimental-web-platform-features (sorry, didn't know this is required)

Comment 6 by a...@chromium.org, Apr 3 2017

Yes, PLEASE do not use a dialog. Please use something like <dialog>.
Project Member

Comment 7 by sheriffbot@chromium.org, Apr 12 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment