Closed Bug 1155078 Opened 9 years ago Closed 9 years ago

Only display domain name in the context part of the panel

Categories

(Hello (Loop) :: Client, defect, P2)

defect
Points:
1

Tracking

(firefox40 fixed)

RESOLVED FIXED
mozilla40
Iteration:
40.3 - 11 May
Tracking Status
firefox40 --- fixed

People

(Reporter: RT, Assigned: standard8)

References

Details

(Whiteboard: [context])

User Story

Currently when opening a panel the full URL of the active tab gets displayed in the panel within the context area.
This is taking too much space on long URLs and this bug is a requirement to change it as follows:
- Only display domain name without the "http://" header

Example:
Before: https://www.google.es/search?q=test&ie=utf-8&oe=utf-8&gws_rd=cr&ei=qHQvVaSqGMW5OKrjgZgI
After: google.es

Attachments

(1 file)

      No description provided.
Blocks: 1115341
User Story: (updated)
Rank: 15
Flags: firefox-backlog+
Priority: -- → P2
Whiteboard: [context]
This adjusts the display to only display the hostname.
Attachment #8597915 - Flags: review?(mdeboer)
Assignee: nobody → standard8
Iteration: --- → 40.3 - 11 May
Points: --- → 1
Comment on attachment 8597915 [details] [diff] [review]
Only display domain name in the context part of the panel.

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

LGTM!

::: browser/components/loop/content/js/panel.jsx
@@ +702,5 @@
>      render: function() {
> +      var hostname;
> +
> +      try {
> +        hostname = (new URL(this.state.url)).hostname;

nit: no need for the extra braces.
Attachment #8597915 - Flags: review?(mdeboer) → review+
Target Milestone: --- → mozilla40
https://hg.mozilla.org/mozilla-central/rev/4084f5eca1c6
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: