[issue2551389] Make webcomponent classhelper support reload/refresh

John Rouillard <[email protected]> Mon, 13 Jan 2025 19:57:19 +0000
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from John Rouillard:

The webcomponent classhelper works well, but it is not backed by a URL. It's created
by javascript running in the main window.

When you refresh the classhelper (hitting F5 or ctrl-R) it produces a blank page
which makes sense as its URL is about:blank in chrome. The blank page confuses
users.

There should be some way to detect this and have the webcomponent redraw the
window contents. Maybe the main component can register for
https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event on the 
classhelper window. When the beforeunload event is received restore the window state
or restore to the original state.

Saving the current window state (search terms, current page ...) is required if
the user is to pick up where they left off. However if they are refreshing, maybe
they want to start new without the current state?

----------
components: Web interface
messages: 8265
nosy: rouilj
severity: normal
status: new
title: Make webcomponent classhelper support reload/refresh
type: behavior

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551389>
_________________________________________________