gecko-dev/browser
Marco Bonardo 5990b7245c Bug 1573753 - Copy the urlbar value when pageproxystate is invalid and there's no result. r=adw
When copying from the input field, when the value has already been confirmed
by the user (either by picking a result or Enter), we cannot use the selected
result information, because it has already been cleared by _loadURL setting
the value to the final one.
If the page already finished loading, pageproxystate is valid and we can use
currentURI, but if the page takes a long time to load, or the load is canceled,
we need a fallback, because we don't want to interrupt the copy operation.

In this case, the current value can be either a valid url or a search string.
If it's a valid url, we can just go through the usual URI handling, trying to
make it nicer. After all, we'd do the same just after the page is done loading.
Otherwise, we fallback to the currently selected value.

This works also if the user is still in the process of selecting a result
and tries to copy from the input field, because on result selection we set
either a valid url or a non-url.

Differential Revision: https://phabricator.services.mozilla.com/D50832

--HG--
extra : moz-landing-system : lando
2019-10-28 21:53:16 +00:00
..
actors Bug 1563355 - Handle exceptionDialogButton click on certerror pages in AboutNetErrorhandler.jsm. r=johannh 2019-10-28 20:39:16 +00:00
app Bug 1578745 - Introduce a preference to enable fission frame inspection in DevTools. r=nchevobbe 2019-10-28 20:45:21 +00:00
base Bug 1563355 - Handle exceptionDialogButton click on certerror pages in AboutNetErrorhandler.jsm. r=johannh 2019-10-28 20:39:16 +00:00
branding Bug 1519103 - Remove Scratchpad panel. r=bgrins. 2019-10-27 09:05:58 +00:00
components Bug 1573753 - Copy the urlbar value when pageproxystate is invalid and there's no result. r=adw 2019-10-28 21:53:16 +00:00
config Backed out 2 changesets (bug 1476339, bug 1590714) for breaking windows coverage builds and at marco's request. 2019-10-23 23:10:17 +03:00
docs Backed out changeset 35d4451f348d (bug 1588458) as requested by the dev 2019-10-15 19:04:22 +03:00
extensions Bug 1588367 - Convert all relevant uses of float: right/left to logical properties on browser/ r=johannh,MattN 2019-10-28 18:46:38 +00:00
fonts
fxr Bug 1590808 - Use Preview logo for FxR Desktop Settings r=Gijs 2019-10-24 20:50:29 +00:00
installer Bug 1519103 - Remove Scratchpad panel. r=bgrins. 2019-10-27 09:05:58 +00:00
locales Bug 1571425 - Add a 'Don't ask again' button to the Sync Options notification bar in about:logins. r=fluent-reviewers,flod 2019-10-25 21:50:27 +00:00
modules Backed out 2 changesets (bug 1591803) for causing build busatges on PermissionManager.idl. CLOSED TREE 2019-10-28 22:12:01 +02:00
themes Bug 1588367 - Convert all relevant uses of float: right/left to logical properties on browser/ r=johannh,MattN 2019-10-28 18:46:38 +00:00
tools/mozscreenshots Bug 1587836 - update permissions related Bugzilla components stored in moz.build files. r=johannh 2019-10-11 08:44:00 +00:00
.eslintrc.js Bug 1558517 - Pre 3.0: Remove conflicting eslint rules, and turn on "curly: all" everywhere, r=standard8 2019-06-28 17:14:01 +02:00
app.mozbuild
build.mk
confvars.sh Bug 1562952 - Always build signmar when mar is built. r=nalexander 2019-07-16 19:01:03 +00:00
defs.mk
l10n-registry.manifest Bug 1555662 - Register L10nRegistry sources using categories. r=kmag 2019-06-08 04:37:31 +00:00
LICENSE
Makefile.in
moz.build Bug 1567121 - Re-arrange the docs under browser/ so that they all fall under the top-level 'Firefox' docs page. r=ahal 2019-08-20 17:14:50 +00:00
moz.configure Bug 1569330 - Disable telemetry check in Normandy recipe runner r=mythmon,nalexander 2019-08-06 23:54:34 +00:00