Closed
Bug 573536
Opened 15 years ago
Closed 14 years ago
new geolocation popup: "Learn More" link is missing
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
VERIFIED
FIXED
Firefox 4.0b7
Tracking | Status | |
---|---|---|
blocking2.0 | --- | betaN+ |
People
(Reporter: Gavin, Assigned: Margaret)
References
Details
(Whiteboard: popupnotification)
Attachments
(2 files, 5 obsolete files)
21.89 KB,
image/png
|
Details | |
5.57 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
This is a regression from bug 398776. Need to re-add the link to the notification somehow.
Updated•15 years ago
|
blocking2.0: ? → betaN+
Assignee | ||
Comment 1•14 years ago
|
||
Is there an example of what this should look like?
Reporter | ||
Comment 2•14 years ago
|
||
I think we can just add it to the end of the current message for now. I guess if the button was aligned to the bottom right, putting the link on the bottom left could work too. I think we want to do this by overriding the base popupnotification binding, which should give us enough flexibility to do either.
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → margaret.leibovic
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•14 years ago
|
||
Assignee | ||
Comment 4•14 years ago
|
||
With theme changes from bug 577931 applied.
Reporter | ||
Comment 5•14 years ago
|
||
Comment on attachment 469506 [details] [diff] [review]
patch
This looks great!
>diff --git a/browser/base/content/urlbarBindings.xml b/browser/base/content/urlbarBindings.xml
>+ <binding id="geolocation-notification" extends="chrome://global/content/bindings/notification.xml#popup-notification">
>+ let browserBundle = Services.strings.createBundle("chrome://browser/locale/browser.properties");
You can just use gNavigatorBundle.
>diff --git a/browser/themes/pinstripe/browser/browser.css b/browser/themes/pinstripe/browser/browser.css
>+#geolocation .text-link[anonid="learnmore"] {
Probably better to just give this a unique class (geolocation-text-link?)
This needs styling on linux and windows too, presumably?
Attachment #469506 -
Flags: feedback+
Assignee | ||
Comment 6•14 years ago
|
||
Updated patch with feedback from comment 5.
I added some positioning css to the gnomestripe and winstripe themes, but I don't have environments to test them in. Additional polish may be necessary, such as changing the color of the link, but that depends on how the styling turns out after bug 577927 is resolved.
Attachment #469506 -
Attachment is obsolete: true
Attachment #469533 -
Flags: review?(gavin.sharp)
Assignee | ||
Updated•14 years ago
|
Attachment #469533 -
Attachment is patch: true
Attachment #469533 -
Attachment mime type: application/octet-stream → text/plain
Assignee | ||
Comment 7•14 years ago
|
||
Fixed winstripe css. Tested on windows 7.
Attachment #469533 -
Attachment is obsolete: true
Attachment #469550 -
Flags: review?(gavin.sharp)
Attachment #469533 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 8•14 years ago
|
||
Fixed geolocation notification id to work after the patch for bug 591026 lands.
Attachment #469550 -
Attachment is obsolete: true
Attachment #469592 -
Flags: review?(gavin.sharp)
Attachment #469550 -
Flags: review?(gavin.sharp)
Reporter | ||
Comment 9•14 years ago
|
||
Comment on attachment 469592 [details] [diff] [review]
patch-v4 (new geolocation-notification id)
>diff --git a/browser/base/content/urlbarBindings.xml b/browser/base/content/urlbarBindings.xml
>+ <binding id="geolocation-notification" extends="chrome://global/content/bindings/notification.xml#popup-notification">
>+ <content>
Hmm, do you not need the align="start"? I forget why I had to add that to the base binding... It looks like this fixes the button alignment though, so maybe we should get rid of it on the base binding too?
>diff --git a/browser/themes/pinstripe/browser/browser.css b/browser/themes/pinstripe/browser/browser.css
>+.geolocation-text-link {
>+ color: #ffffff;
>+ -moz-padding-start: 13px;
>+ padding-top: 10px;
>+}
I think we should probably move the color: rule to the #notification-popup block, and get rid of the .popup-notification-description rule, but we can do that in a followup if you want (has the potential to affect other stuff).
Attachment #469592 -
Flags: review?(gavin.sharp) → review+
Reporter | ||
Comment 10•14 years ago
|
||
Comment on attachment 469550 [details] [diff] [review]
patch-v3
(I guess we actually want this one given bug 591026)
Attachment #469550 -
Flags: review+
Reporter | ||
Updated•14 years ago
|
Attachment #469592 -
Attachment is obsolete: true
Reporter | ||
Updated•14 years ago
|
Attachment #469550 -
Attachment is obsolete: false
Reporter | ||
Comment 11•14 years ago
|
||
Comment on attachment 469592 [details] [diff] [review]
patch-v4 (new geolocation-notification id)
nope, this one - bug 591026 landed after all :)
Attachment #469592 -
Attachment is obsolete: false
Reporter | ||
Updated•14 years ago
|
Attachment #469550 -
Attachment is obsolete: true
Reporter | ||
Comment 12•14 years ago
|
||
I took the liberty of addressing my comments and updating to deal with bug 591026's new patch, since I had this applied. I had to adjust the Mac styling to avoid the padding from making the button too tall (which breaks native styling).
Removing the specific .geolocation-text-link styling on Mac didn't work, since the geolocation blue link styling is more specific.
I haven't tested this on Windows or Linux - I wonder whether the padding needs adjustment there too (not sure what platforms you tested).
Attachment #469592 -
Attachment is obsolete: true
Reporter | ||
Comment 13•14 years ago
|
||
Not sure what happened, but the last patch completely failed to apply on trunk. This one works.
Attachment #470152 -
Attachment is obsolete: true
Attachment #470475 -
Flags: review+
Reporter | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 14•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b6
Comment 15•14 years ago
|
||
You didn't actually remove the XXX comment from nsBrowserGlue.js, which is fortunate as it made it easier for me to find this bug :-)
Comment 16•14 years ago
|
||
Verified on:
Build identifier: Mozilla/5.0 (Windows NT 6.1; rv:2.2a1pre) Gecko/20110405 Firefox/4.2a1pre
Status: RESOLVED → VERIFIED
Updated•14 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•