New issue
Advanced search Search tips

Issue 816202 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

The prompt() function does not work in undocked DevTools console.

Reported by ip.no.25...@gmail.com, Feb 25 2018

Issue description

Chrome Version       : 64.0.3282.144 (Official Build) (64-bit)
URLs (if applicable) : All
Other browsers tested:
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
     Safari:
    Firefox:
       Edge:

What steps will reproduce the problem?
(1) Go to any website
(2) Open the Dev Tools window (Ctrl+Shift+I or Cmd+Shift+I)
(3) Make sure that you are in the 'Console' tab
(4) Enter the prompt() function

What is the expected result?
	Because inspect element is for testing and editing, the prompt function should run even though it is in another window.

What happens instead?
	The security measure against the function running on an inactive tabs stops it from running forceing you to eather run it in the address bar or make a button that runs it.

Please provide any additional information below. Attach a screenshot if
possible.

 
Prompt Issue.webm
561 KB View Download
Screenshot 2018-02-24 at 6.42.39 PM.png
17.9 KB View Download
Components: Platform>DevTools
Labels: Needs-Triage-M64

Comment 3 by alph@chromium.org, Mar 3 2018

Owner: dgozman@chromium.org
Status: Assigned (was: Unconfirmed)
Summary: The prompt() function does not work in undocked DevTools console. (was: The prompt() function does not work in Dev Tools console.)
Works fine if you dock DevTools window.
Project Member

Comment 4 by bugdroid1@chromium.org, Mar 6 2018

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

commit 84a3a47c82199adcfb08158c613cc1d8a7b89c49
Author: Dmitry Gozman <dgozman@chromium.org>
Date: Tue Mar 06 19:12:35 2018

Disable JS dialogs interventions while debugging

Otherwise you can only debug without switching to a different
tab, and only with docked DevTools.

Bug:  816202 
Change-Id: I24b008cfccc9278b29236c78436da8ab78a91f5b
Reviewed-on: https://chromium-review.googlesource.com/950003
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541169}
[modify] https://crrev.com/84a3a47c82199adcfb08158c613cc1d8a7b89c49/chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.cc

Status: Fixed (was: Assigned)

Sign in to add a comment