New issue
Advanced search Search tips

Issue 867855 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 11
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Feature



Sign in to add a comment

Store as global variable for HTML elements ?

Reported by jon.lep...@live.ca, Jul 26

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36

Steps to reproduce the problem:
*console.log a events html elements
*Right click on log and you will not able to Store as global variable for play with.

What is the expected behavior?
Store the elements in a global "temp1..."

What went wrong?
the trick way it use console.log with array.
ex: console.log([html element])
And now we able to Store as global variable.
but will more productive to have this function for html log elements

Did this work before? No 

Chrome version: 67.0.3396.99  Channel: stable
OS Version: 10.0
Flash Version:
 
awfawfawfawf.png
372 KB View Download
Components: -Platform>DevTools Platform>DevTools>Authoring
Labels: -Type-Bug Type-Feature
Owner: l...@chromium.org
Status: Assigned (was: Unconfirmed)
Looks like a feature request to me.
Project Member

Comment 2 by bugdroid1@chromium.org, Sep 11

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

commit d7b85bd859088e217edeaa38d8629f181247b5cb
Author: Erik Luo <luoe@chromium.org>
Date: Tue Sep 11 18:00:31 2018

DevTools: allow storing DOM nodes as global variables

Adds a context menu item onto DOM nodes and elements to store as a
global `tempN` variable.

Screenshot: https://imgur.com/a/5ph3Rqj

Bug:  867855 
Change-Id: If76a5c85ec47dae3df6fcb95d843cb4663efbb42
Reviewed-on: https://chromium-review.googlesource.com/1217745
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Erik Luo <luoe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590394}
[modify] https://crrev.com/d7b85bd859088e217edeaa38d8629f181247b5cb/third_party/WebKit/LayoutTests/http/tests/devtools/console/console-save-to-temp-var.js
[add] https://crrev.com/d7b85bd859088e217edeaa38d8629f181247b5cb/third_party/WebKit/LayoutTests/http/tests/devtools/elements/elements-save-to-temp-var-expected.txt
[add] https://crrev.com/d7b85bd859088e217edeaa38d8629f181247b5cb/third_party/WebKit/LayoutTests/http/tests/devtools/elements/elements-save-to-temp-var.js
[modify] https://crrev.com/d7b85bd859088e217edeaa38d8629f181247b5cb/third_party/WebKit/LayoutTests/http/tests/devtools/sources/debugger-ui/debugger-save-to-temp-var.js
[modify] https://crrev.com/d7b85bd859088e217edeaa38d8629f181247b5cb/third_party/blink/renderer/devtools/front_end/elements/ElementsTreeOutline.js
[modify] https://crrev.com/d7b85bd859088e217edeaa38d8629f181247b5cb/third_party/blink/renderer/devtools/front_end/elements_test_runner/ElementsTestRunner.js
[modify] https://crrev.com/d7b85bd859088e217edeaa38d8629f181247b5cb/third_party/blink/renderer/devtools/front_end/sdk/ConsoleModel.js
[modify] https://crrev.com/d7b85bd859088e217edeaa38d8629f181247b5cb/third_party/blink/renderer/devtools/front_end/sources/SourcesPanel.js

Status: Fixed (was: Assigned)
Thanks for the request.  It should be available soon.

Sign in to add a comment