DescriptionMake Linux restore Omnibox contents on tab switch.
Tested as follows:
Create a new window with two tabs. Type a bunch of 'a' characters into tab A's omnibox and a bunch of 'b's into tab B. Then,
1. Select tab A. Left-click in the omnibox and highlight a few characters in the middle. Left-click in the empty space to the right of the text to unhighlight it, then middle-click to make sure that the previously-highlighted text still gets pasted.
2. Repeat 1, but hit a key to remove the selection instead of clicking the mouse. The old highlighted text should still be available as the primary selection.
3. Highlight A's text as in 1. Select tab B and see that the omnibox is updated to B's string and highlighting is removed. Middle-click and confirm that the previously-highlighted text from A is pasted.
4. Select A and left-click in the middle of its string to position the cursor there. Click on tab B and then back on A to check that A's cursor position is restored.
5. Highlight text in A. Select tab B and then highlight text from a different window. Switch back to A and middle-click. The text from the different window, rather than A's previously-highlighted text, should be pasted.
BUG=9225
Patch Set 1 #
Total comments: 16
Patch Set 2 : apply review feedback #
Total comments: 8
Patch Set 3 : watch for text-mark changes #
Total comments: 4
Patch Set 4 : free string returned by gtk #
Messages
Total messages: 14 (0 generated)
|