Closed Bug 1190961 Opened 9 years ago Closed 9 years ago

Change info-pages.css' placeholder icon to one that exists in toolkit/

Categories

(Toolkit :: Themes, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: ntim, Assigned: c0mrad3, Mentored)

References

Details

(Whiteboard: [good first bug][lang=css])

Attachments

(1 file, 2 obsolete files)

See https://bugzilla.mozilla.org/show_bug.cgi?id=1087618#c76 .

We should use a file that exists on toolkit's side.
chrome://global/skin/icons/warning.svg seems like a good candidate.
Mentor: ntim.bugs
Whiteboard: [good first bug][lang=css]
In [0], chrome://browser/skin/aboutNetError_info.svg should be replaced with chrome://global/skin/icons/warning.svg


[0] : https://dxr.mozilla.org/mozilla-central/source/toolkit/themes/shared/in-content/info-pages.inc.css?from=info-pages.inc.css&offset=0#34
Hey I would like to work on this bug can You please assign this one to me
Attached patch Bug-1190961.patch (obsolete) — Splinter Review
Attachment #8649939 - Flags: review?(ntim.bugs)
Assignee: nobody → dhanvicse
Status: NEW → ASSIGNED
Comment on attachment 8649939 [details] [diff] [review]
Bug-1190961.patch

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

The patch looks good to me ! Thanks for the patch :)

I'm not a peer, so my r+ doesn't have much value, so I'm going to ask a peer to review this as well.
Can you change r=ntim to r=jaws,ntim to reflect the peer review ?
Attachment #8649939 - Flags: review?(ntim.bugs)
Attachment #8649939 - Flags: review?(jaws)
Attachment #8649939 - Flags: review+
Comment on attachment 8649939 [details] [diff] [review]
Bug-1190961.patch

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

Thanks for the patch, but this changes the icon from a info (i) icon to a warning triangle /!\

I think we should just move the info icon from browser to toolkit.
Attachment #8649939 - Flags: review?(jaws)
Attachment #8649939 - Flags: review-
Attachment #8649939 - Flags: review+
(In reply to (Mostly away 9/11-9/23) Jared Wein [:jaws] (please needinfo? me) from comment #5)
> Comment on attachment 8649939 [details] [diff] [review]
> Bug-1190961.patch
> 
> Review of attachment 8649939 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Thanks for the patch, but this changes the icon from a info (i) icon to a
> warning triangle /!\
> 
> I think we should just move the info icon from browser to toolkit.

I will send a patch again and try to fix it :) I will read the comments and understand the thing that I need to do :)
So my target is to just move the info icon from browser to toolkit.
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #5)
> Comment on attachment 8649939 [details] [diff] [review]
> Bug-1190961.patch
> 
> Review of attachment 8649939 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Thanks for the patch, but this changes the icon from a info (i) icon to a
> warning triangle /!\
that what was mentioned in comment 1, so I did the same
> 
> I think we should just move the info icon from browser to toolkit.

so should I just move (did you mean move (mv) or copy ?) the icon ? 

what is the paths that I need to move ? 

also the icon might be used by some other files too na ? so is it a good idea to move the file ?

also if we copy the same file it increases the size of the source code too ?
Flags: needinfo?(ntim.bugs)
Flags: needinfo?(jaws)
hey Tim Nguyen can you please guide me with fixing this bug ?
(In reply to Tummala Dhanvi [:c0mrad3][UTC+5.30] from comment #9)
> hey Tim Nguyen can you please guide me with fixing this bug ?

Sorry for the huge delay.
You'll need to:
- Move aboutNetError_info.svg to toolkit/themes/shared/incontent-icons and rename it to info.svg
(You can do `hg rename browser/themes/shared/aboutNetError_info.svg toolkit/themes/shared/incontent-icons/info.svg`)
- Remove the reference to aboutNetError_info.svg from `browser/themes/shared/jar.inc.mn`
- Replace all the references to aboutNetError_info.svg to point to toolkit. The new path will be `chrome://global/skin/icons/info.svg`.
- Add a manifest entry to toolkit/themes/shared/jar.inc.mn for the new info.svg file, based on [0]
- At [1], you'll need to change the url to `chrome://global/skin/icons/info.svg`


[0]: https://hg.mozilla.org/mozilla-central/file/d53a52b39a95/toolkit/themes/shared/jar.inc.mn#l22
[1]: https://dxr.mozilla.org/mozilla-central/source/toolkit/themes/shared/in-content/info-pages.inc.css?from=info-pages.inc.css&offset=0#34
Flags: needinfo?(ntim.bugs)
Flags: needinfo?(jaws)
Do you need additional info ?
Flags: needinfo?(dhanvicse)
okay I think I have enough information to fix this bug :) 

I will attach a patch soon
Flags: needinfo?(dhanvicse)
Attached patch Bug-1190961-v2.patch (obsolete) — Splinter Review
Hope I have done it correct :)
Attachment #8649939 - Attachment is obsolete: true
Flags: needinfo?(jaws)
Attachment #8684552 - Flags: review?(jaws)
Comment on attachment 8684552 [details] [diff] [review]
Bug-1190961-v2.patch

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

This is close, but the SVG file is still referenced by aboutNetError.css and aboutSocialError.css. Both of those places will need to be updated as well. See http://mxr.mozilla.org/mozilla-central/search?string=aboutNetError_info.svg
Attachment #8684552 - Flags: review?(jaws) → review-
Hope I am done this time :)
Attachment #8684552 - Attachment is obsolete: true
Attachment #8686419 - Flags: review?(jaws)
Comment on attachment 8686419 [details] [diff] [review]
Bug-1190961-v2.patch

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

Looks good, thanks! And sorry for the delay on the review.
Attachment #8686419 - Flags: review?(jaws) → review+
Flags: needinfo?(jaws)
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Please do not set the resolved fixed status, it will be set by the sheriffs once the patch lands in mozilla-central.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → ASSIGNED
okay!
https://hg.mozilla.org/mozilla-central/rev/5cb637976cf1
Status: ASSIGNED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: