Closed
Bug 601060
Opened 14 years ago
Closed 14 years ago
Hovering links shows "moz-action:switchtab" text and hides "Switch to tab:" label in URL bar when it contains a switch-to-tab URL
Categories
(Firefox :: Address Bar, defect)
Firefox
Address Bar
Tracking
()
VERIFIED
FIXED
Firefox 4.0b11
Tracking | Status | |
---|---|---|
blocking2.0 | --- | - |
People
(Reporter: matjk7, Assigned: fryn)
References
Details
(Keywords: polish, Whiteboard: [switch-to-tab])
Attachments
(1 file, 6 obsolete files)
(deleted),
patch
|
dao
:
review+
Dolske
:
approval2.0+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20100930 Firefox/4.0b7pre
Build Identifier: Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20100930 Firefox/4.0b7pre
Looks like the "Switch to tab" message doesn't play nicely with link previews.
Reproducible: Always
Steps to Reproduce:
1.Select an open tab using the keyboard so that the "Switch to tab | http://example.com" message appears
2.Hover a link
Actual Results:
Awesomebar shows the current URL as moz-action:switchtab, http://example.com
Expected Results:
Current URL should be displayed correctly.
Reporter | ||
Updated•14 years ago
|
Comment 1•14 years ago
|
||
I cant reproduce it on Win7.
Comment 2•14 years ago
|
||
Confirming, thanks for filing.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•14 years ago
|
||
The "moz-action" text part is really easy to fix: _updateOverLink in urlbarBindings.xml should use this._value, which is basically the the URL bar's value to the outside world, rather than this.value, which can include the moz-action prefix.
But the "Switch to tab:" label shouldn't be hidden, and that will take some rearranging of the binding's children.
Summary: Switch-to-tab shows bogus moz-action:switchtab when hovering links → Hovering links shows "moz-action:switchtab" text and hides "Switch to tab:" label in URL bar when it contains a switch-to-tab URL
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → fryn
Assignee | ||
Comment 6•14 years ago
|
||
(In reply to comment #3)
> The "moz-action" text part is really easy to fix: _updateOverLink in
> urlbarBindings.xml should use this._value, which is basically the the URL bar's
> value to the outside world, rather than this.value, which can include the
> moz-action prefix.
Changing this.value to this._value didn't fix the bug. It seems that the url bar's _value property is being modified to match its value property before the following line runs:
this._originLabel.value = this.value;
What does fix it is using:
this._originLabel.value = this._parseActionUrl(this.value).param;
adw, any thoughts?
Assignee | ||
Comment 7•14 years ago
|
||
Fixes the -moz-action bit using the above method.
Unhides the label with a trivial change to the binding.
I don't think this requires ui-review, but if it does, let me know.
Attachment #490727 -
Flags: review?(dao)
Assignee | ||
Updated•14 years ago
|
Status: NEW → ASSIGNED
Comment 8•14 years ago
|
||
(In reply to comment #6)
> adw, any thoughts?
(In reply to comment #7)
> Unhides the label with a trivial change to the binding.
Nice!
Comment 9•14 years ago
|
||
Comment on attachment 490727 [details] [diff] [review]
patch
This increases the location bar height when "Switch to tab" is displayed. Tested on Linux.
Attachment #490727 -
Flags: review?(dao) → review-
Assignee | ||
Comment 10•14 years ago
|
||
fixed margins on Windows and Linux.
Attachment #490727 -
Attachment is obsolete: true
Attachment #493891 -
Flags: review?(dao)
Comment 11•14 years ago
|
||
Comment on attachment 493891 [details] [diff] [review]
patch v2
With this, "Switch to tab" is vertically misaligned on Windows, and I'm getting this error a lot:
Error: this._parseActionUrl(this._value) is null
Source File: chrome://browser/content/urlbarBindings.xml
Line: 737
Attachment #493891 -
Flags: review?(dao) → review-
Assignee | ||
Comment 12•14 years ago
|
||
On Windows 7, the 1-pixel misalignment only occurred in Windows classic (not basic, not aero), and I tracked it to a difference in the padding between the windows themes for html|input:
https://mxr.mozilla.org/mozilla-central/source/layout/reftests/editor/xul/input.css#15
Fixed it using :-moz-system-metric.
Attachment #493891 -
Attachment is obsolete: true
Attachment #495172 -
Flags: review?(dao)
Comment 13•14 years ago
|
||
(In reply to comment #12)
> On Windows 7, the 1-pixel misalignment only occurred in Windows classic (not
> basic, not aero), and I tracked it to a difference in the padding between the
> windows themes for html|input:
> https://mxr.mozilla.org/mozilla-central/source/layout/reftests/editor/xul/input.css#15
Still seeing it on XP. I don't see why that file is relevant here, it's only used in reftests.
Updated•14 years ago
|
Attachment #495172 -
Flags: review?(dao) → review-
Assignee | ||
Comment 14•14 years ago
|
||
Wraps the <label> in a <box align="center"> for consistent styling on Windows.
Due to padding on the url bar, we still need some negative margins, but it's still much better than before.
Attachment #495172 -
Attachment is obsolete: true
Attachment #498027 -
Flags: review?(dao)
Assignee | ||
Comment 15•14 years ago
|
||
my bad: forgot to add padding-top: 1px; to pinstripe/.../browser.css
tested on ubuntu 10.10, windows xp, windows 7 aero + aero basic + classic, and os x 10.6
Attachment #498027 -
Attachment is obsolete: true
Attachment #498030 -
Flags: review?(dao)
Attachment #498027 -
Flags: review?(dao)
Assignee | ||
Comment 16•14 years ago
|
||
Attachment #498030 -
Attachment is obsolete: true
Attachment #498158 -
Flags: review?(dao)
Attachment #498030 -
Flags: review?(dao)
Comment 17•14 years ago
|
||
Comment on attachment 498158 [details] [diff] [review]
patch v6 (updated to tip of tree)
The 1px top padding is likely only needed because the label's vertical margins are uneven. Seems like these should be set to 0.
Attachment #498158 -
Flags: review?(dao) → review-
Assignee | ||
Comment 18•14 years ago
|
||
(In reply to comment #17)
> Comment on attachment 498158 [details] [diff] [review]
> patch v6 (updated to tip of tree)
>
> The 1px top padding is likely only needed because the label's vertical margins
> are uneven. Seems like these should be set to 0.
The uneven vertical margins are there to align the top and bottom of the right border with the urlbar border. Setting these all to 0 will break that. I haven't found a more elegant way to do this. You can give it a shot.
Comment 19•14 years ago
|
||
You seem to be talking about the margin of the box.
Assignee | ||
Comment 20•14 years ago
|
||
(In reply to comment #17)
> Comment on attachment 498158 [details] [diff] [review]
> patch v6 (updated to tip of tree)
>
> The 1px top padding is likely only needed because the label's vertical margins
> are uneven. Seems like these should be set to 0.
Addressed and tested on OS X, Ubuntu, Windows 7 (Aero Glass, Aero Basic, Windows Classic), and Windows XP.
Attachment #498158 -
Attachment is obsolete: true
Attachment #503015 -
Flags: review?(dao)
Updated•14 years ago
|
Attachment #503015 -
Flags: review?(dao) → review+
Assignee | ||
Updated•14 years ago
|
Attachment #503015 -
Flags: approval2.0?
Updated•14 years ago
|
Attachment #503015 -
Flags: approval2.0? → approval2.0+
Comment 21•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Target Milestone: --- → Firefox 4.0b11
You need to log in
before you can comment on or make changes to this bug.
Description
•