New issue
Advanced search Search tips

Issue 829206 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Feature



Sign in to add a comment

"Duplicate tab" should not fire any events on the page

Reported by 0joshua....@gmail.com, Apr 5 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. open (for example) https://codepen.io/SitePoint/pen/NxZKPR
2. make a change in a 'textarea', scroll something, write in the address bar...
3. open a 'V' dropdown menu (or "Settings" modal)
4. open DevTools and navigate to its "Network" view
5. duplicate the tab (nit 1: can't avoid switching to it immediately?) and QUICKLY open DevTools
6 note network requests, progressive rendering(?), and loss of all 'progress'

What is the expected behavior?
Everything should look the same in the new tab/window because (nit 2) the option is labeled "Duplicate", not "Reload in New Tab".

Maybe out of scope/too hard: hardware acceleration, apps/extensions, Flash/codecs/SSL, DevTools/omnibox state

What went wrong?
Step 6.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? No
 Firefox, Edge

Chrome version: 65.0.3325.181  Channel: stable
OS Version: 
Flash Version: 

Some use cases:

The design of many web forms, search result areas, etc. don't support a back button, 'open in new tab/window', breadcrumbs, undo, etc.
 

Comment 1 by tkent@chromium.org, Apr 5 2018

Components: -Blink UI>Browser>TabStrip
Status: WontFix (was: Unconfirmed)
I think this is a function of the site itself, not Chrome.  Less-"smart" sites, like this bug tracker, duplicate the way you want (they don't reload).  For example, you can type in the textfield here, duplicate, and see that both tabs maintain your typing.

However, when the new tab is created and shown, we must fire various events to the page to indicate that (per W3C spec, AIUI).  The page is responding to those by resetting/reloading various things.

So I think Chrome is already doing most of what you want but our hands are tied to prevent this behavior.
That was a rather quick "WontFix". Can we talk first, please?

Where in the spec are all browsers constrained to do what the web page says and not the user? (classic conflict of interest, yet extensions exist and the API is not mandated by W3C)

What can be accomplished already by extensions? (workarounds, partial solutions)

Does anyone know of a browser/project that DOES support this kind of user control over how pages load? (where to turn because I'm a human being with this want)

Thank you.
Components: -UI>Browser>TabStrip Blink>Loader
Status: Untriaged (was: WontFix)
Summary: "Duplicate tab" should not fire any events on the page (was: [Feature Request] Add "Duplicate Exactly" to tab menu (with state, no new network fetches))
Blink folks, I don't know what the right component is.  Can you triage over to who would know about what events (e.g. onpageshow) we might fire on tab duplication and what specs cover those?
Thanks for looking into it. I understand that duplicating, as a workaround for bad websites, can break those same sites (e.g. shared storage like cookies). Back buttons sure can.

And since the specificity I'm interested in includes the JavaScript state, maybe the correct answer to this issue *is* some third-party virtualization project.

Apologies for "I'm a human being" - that was dumb.

Comment 6 by kouhei@chromium.org, Apr 13 2018

Labels: -Type-Bug -Pri-2 Pri-3 Type-Feature
Components: -Blink>Loader Blink>PageLifecycle
Owner: panicker@chromium.org
This probably could find a corresponding state in the lifecycle API?

Shubhie: do you think you could triage this? (While this one's a bit vague reg: how it should work and we may not have bandwidth to tackle this right away)

Sign in to add a comment