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.
,
Feb 25 2018
,
Mar 3 2018
Works fine if you dock DevTools window.
,
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
,
Mar 6 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by dtapu...@chromium.org
, Feb 25 2018