You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if a page is already opened,
and I navigate to another URL with view:source: scheme,
the new title of the page is view-source:URL,
ok this allow to know this is a view-source: page
because get_Source/onSourceChanged always return the URL without view-source:;
and if the URL is a local file://,
in this case the new title is the file name with extension
so there are no way to know this is a view-source: page;
but If a this is a NEW PAGE is opened with view-source:URL,
(by New Window Requested or not)
the new title is the URL with the begin "https://www." removed ... (this is very strange)
and get_Source/onSourceChanged always return the URL without view-source:;
and if the URL is a local file://, the new title is the file name with extension
so in all case there are no way to know this is a view-source: page;
page already open new page
title view-source:https://www.viksoe.dk/code/all_wtl.htm viksoe.dk/code/all_wtl.htm
get_Source/OnSourceChanged: https://www.viksoe.dk/code/all_wtl.htm https://www.viksoe.dk/code/all_wtl.htm
javascript window.document.title is empty;
this will be not possible to simply make get_Source/onSourceChanged
return "view-source:https://www.viksoe.dk/code/all_wtl.htm"
like Edge display ?
or supply a reliable way to know this is a view-source: page
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
view-source: behiavor is not consistent :
if a page is already opened,
and I navigate to another URL with view:source: scheme,
the new title of the page is view-source:URL,
ok this allow to know this is a view-source: page
because get_Source/onSourceChanged always return the URL without view-source:;
and if the URL is a local file://,
in this case the new title is the file name with extension
so there are no way to know this is a view-source: page;
but If a this is a NEW PAGE is opened with view-source:URL,
(by New Window Requested or not)
the new title is the URL with the begin "https://www." removed ... (this is very strange)
and get_Source/onSourceChanged always return the URL without view-source:;
and if the URL is a local file://, the new title is the file name with extension
so in all case there are no way to know this is a view-source: page;
a concrete exemple : view-source:https://www.viksoe.dk/code/all_wtl.htm
this will be not possible to simply make get_Source/onSourceChanged
return "view-source:https://www.viksoe.dk/code/all_wtl.htm"
like Edge display ?
or supply a reliable way to know this is a view-source: page
Beta Was this translation helpful? Give feedback.
All reactions