does double click on chrome network logs make a new request to open the content? - google-chrome

if I double click on chrome devtool network logs, it will open content in a new tab.
my question is, does my double click make a new request to the website and download the content? or download the content straight from cache?

Related

Why chrome shows alert randomly when try to open custom protocol url with location.href?

i had took a look to another threads about chrome and custom protocol apps, but i couldn't resolve a doubt i've got. In my web app, when you click a button it fire a new tab with an webpage (window.open(url, "_blank")). The new tab is opened with the url (annother web app with https protocol). This url fire a javascript function on load that verifies some things and then generate a custom url, for example myurl://base64code, and put it in an existing iframe in this way windows.frames['myframe'].location.href=theCustomProtocolUrl. i tried in different ways (location.replace, create a new iframe and set the url, etc) and i always have the same problem. If i refresh (ctrl f5) the page it always show the dialog or if i open the link with the developer console opened. But if i click my button and the page is opened in a new tab it doesn't work only if i refresh (ctrl+f5). This works perfectly on IE11, it launch the app directly.
Any ideas why chrome, and edge, works like this?
UPDATE: I have found the reason, is i use the protocolcheck.js (https://gist.github.com/vladimirtsyupko/cfcd332476b16683bb0b) library.
First i tried to open a protocol with the timeoutHack (it use blur event) and then, after failing, it fires the other url (in this case https) and the dialog doensn't appear. I found a bug with blur event on chrome > 85 https://bugs.chromium.org/p/chromium/issues/detail?id=1137801
Thanks in advance

Are Chrome incognito cookies temporarily saved "per session" or "per tab?"

When using Chrome, or any other browser, in incognito mode, are the cookies saved per tab or per session? When closing an incognito tab, will the cookies remain for the other incognito tabs? To absolutely clean out the cookies, will the whole session need to be shut down?
The cookies are saved per session. So if you are logged into Facebook in one tab, then you open Facebook in another tab, you'll still be logged in. In other words, yes the cookies will remain for the other incognito tabs if you close one. If it were per tab, if you were logged into Facebook in one tab then you open another tab and go to Facebook, you would be prompted to login in that new tab. To absolutely clean out the cookies, the entire incognito session needs to be shutdown.
sharing session information is what browsers do. its for when you are on a website and open a poppup. it would not make much sence if you need to re-login on each single popup.
internet explorer has a nice trick for it.
INTERNET EXPLORER:
When you click File -> New Window (or Ctrl - N, or click the IE short-cut on Start Menu) of IE 8, a new window will be created. However, this new window will share the same session information with the original window. In other words, if the original window is logged in to your web mail (e.g. hotmail), you do not need to log in again to your web mail in the newly created window.
When you click File -> New Session, a new session window will be created. This new window will not use any information from the original window. In other words, even if the orginal window is logged in to your web mail (e.g. hotmail), you still need to log in again to your web mail in the newly created window.

Chrome devtools extension to capture HAR

Trying to make an extension to capture and store chrome HAR.
Intent: extension has a popup html page with start and stop buttons. Capture all network requests of the current tab between clicking of start and stop button.
Problem: since chrome.devtools.* are only available to devtools_page, how am I supposed to send event (clicking of buttons) from popup page to the devtools page.
Read that the background page is responsible for communication between several parts of the extension. Not able to understand how that can be used here.

How to toggle Device Mode on a popup window in Chrome?

I have a web app with a chat that opens in a new popup window. Normally, in Chrome I can hit F12 and click the icon of a smart phone to toggle it. But in the popup window this icon does not appear. This is important for me since I need to throttle the connection of the popup in order to simulate a user disconnecting from the chat.
Thanks!
It doesn't seem to be currently possible. I've opened a ticket for you. Meanwhile you have couple of options:
open popup in a regular window (copy paste the url, or modify window.open call to open a new tab instead of a separate window),
create a Chrome extension that uses debugger API to send emulateNetworkConditions message to your popup window
or try hacking DevTools like so:
open DevTools (A) for your popup
focus on DevTools window and open another DevTools (B) for that window using a keyboard shortcut (F12/alt+cmd+J)
in the console of the DevTools B call WebInspector.overridesSupport.setEmulationEnabled(true) (to enable emulation) and then WebInspector.overridesSupport.settings.networkConditions.set({throughput: 1.5 * 1024, latency: 40}); (to enable network throttling)
Perhaps easier way as of today is to install chrome extension which will allow you to open preview in new tab instead of popup. There you can have the same icon to toggle to mobile. Below is the extension:
https://chrome.google.com/webstore/detail/tag-assistant-companion/jmekfmbnaedfebfnmakmokmlfpblbfdm?hl=en

Save console output in Chrome

How do you save JavaScript console output in Chrome across page loads? The output is cleared when you navigate away from a page, so if you have messages logged just before the new page is loaded, it's difficult to see them before they are cleared.
Right click on the log/console area and check the "Preserve log" option.