The default bug view has changed. See this FAQ.

Cutting a sub string from the location bar value can unexpectedly modify the value further

RESOLVED FIXED in Firefox 17

Status

()

Firefox
Location Bar
--
minor
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Alice0775 White, Assigned: dao)

Tracking

Trunk
Firefox 17
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

5 years ago
Build Identifier:
http://hg.mozilla.org/mozilla-central/rev/a79132ac2f05
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0 ID:20120817030555

Step To Reproduce:

1. Load this
2. Select text "s" of https://bugzilla.mozilla.org/...
3. Right click on the locationbar and execute Cut or Ctrl+x

Actual Results:
   Locationbar shows bugzilla.mozilla.org/...
   And caret is between z and i

Expected Results:
   Locationbar should show http://bugzilla.mozilla.org/...
   And the caret should be between p and :

   And protocol scheme should not hide in the editing text in this case
(Reporter)

Updated

5 years ago
Blocks: 665580
(Assignee)

Updated

5 years ago
Assignee: nobody → dao
OS: Windows 7 → All
Hardware: x86 → All
(Assignee)

Updated

5 years ago
Summary: Strange behavior of "Cut" in Locationbar → Cutting a sub string from the location bar value can unexpectedly modify the value further
(Assignee)

Comment 1

5 years ago
Created attachment 652887 [details] [diff] [review]
patch
Attachment #652887 - Flags: review?(bmcbride)
Comment on attachment 652887 [details] [diff] [review]
patch

Review of attachment 652887 [details] [diff] [review]:
-----------------------------------------------------------------

Code looks good, but it could really do with a test (see browser_bug556061.js).
Attachment #652887 - Flags: review?(bmcbride) → review-
(Assignee)

Comment 3

5 years ago
Created attachment 653431 [details] [diff] [review]
test
Attachment #653431 - Flags: review?(bmcbride)
(Assignee)

Updated

5 years ago
Attachment #652887 - Flags: review- → review?(bmcbride)
Attachment #653431 - Flags: review?(bmcbride) → review+
Attachment #652887 - Flags: review?(bmcbride) → review+
Status: NEW → ASSIGNED
(Assignee)

Comment 4

5 years ago
http://hg.mozilla.org/integration/mozilla-inbound/rev/62d00e115522
(Assignee)

Updated

5 years ago
Flags: in-testsuite+
https://hg.mozilla.org/mozilla-central/rev/62d00e115522
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
So now the text copied will be exactly what was selected?

E.g.: URL Bar shows: bugzilla.mozilla.org/show_bug.cgi?id=783614
"bugzilla.mozilla.org/show_bug.cgi?id=783614" is highlighted and copied
Text "bugzilla.mozilla.org/show_bug.cgi?id=783614" will be on the clipboard?

Previously text that had not been highlighted managed to end up in the clipboard.
No, this bug didn't change that behavior. This fixed a very specific case of cutting a substring of text from the location bar.
So the cut/copy function in Firefox is still broken. Awesome!
You need to log in before you can comment on or make changes to this bug.