Closed
Bug 740668
Opened 12 years ago
Closed 12 years ago
Add noise to background of image document
Categories
(Toolkit :: Themes, defect)
Toolkit
Themes
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: zpao, Assigned: jaws)
References
Details
Attachments
(3 files, 1 obsolete file)
776.04 KB,
image/png
|
Details | |
27.80 KB,
patch
|
zpao
:
review+
joe
:
review+
|
Details | Diff | Splinter Review |
21.30 KB,
patch
|
Details | Diff | Splinter Review |
I tried taking the noise from the newtab page and adding it to the view image page and it looked good. Frank agrees. So I think we should do it. And if from a Core:Layout POV we shouldn't, then we should do it at the browser level (and make this page themeable if it's not already).
Comment 1•12 years ago
|
||
(In reply to Paul O'Shannessy [:zpao] from comment #0) > Frank agrees. And Jared. And Stephen. Yay, party! :D > if from a Core:Layout POV we shouldn't, then we should do it at the browser > level (and make this page themeable if it's not already). We already theme the page using CSS in /layout/style/ :) https://mxr.mozilla.org/mozilla-central/source/layout/style/TopLevelImageDocument.css
Assignee | ||
Comment 2•12 years ago
|
||
We really should move the CSS files to toolkit first.
Depends on: 713487
Assignee | ||
Updated•12 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
Assignee | ||
Comment 3•12 years ago
|
||
So this patch should work, but it probably will fail tons of reftests due to anti-aliasing of the noise. If we the noise causes problems, the only solution may be to update the reftests to not be standalone images but html documents with the image as the only child (unfortunate for maintenance and loss of test coverage).
Assignee: nobody → jwein
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 613081 [details] [diff] [review] Patch for bug Review of attachment 613081 [details] [diff] [review]: ----------------------------------------------------------------- Well... the reftests pass locally on my machine, so maybe this patch will work :) Justin, can you review the toolkit/themes changes? Joe, can you review the image/test/ changes?
Attachment #613081 -
Flags: review?(joe)
Attachment #613081 -
Flags: review?(dolske)
Comment 5•12 years ago
|
||
Comment on attachment 613081 [details] [diff] [review] Patch for bug Review of attachment 613081 [details] [diff] [review]: ----------------------------------------------------------------- Er, can we put this file on disk for reftest purposes?
Attachment #613081 -
Flags: review?(joe) → review-
Assignee | ||
Comment 6•12 years ago
|
||
Moved the data URI to a file for the reftests. Paul, can you review the toolkit/theme changes? Joe, can you review the image/test changes?
Attachment #613081 -
Attachment is obsolete: true
Attachment #613081 -
Flags: review?(dolske)
Attachment #613698 -
Flags: review?(paul)
Attachment #613698 -
Flags: review?(joe)
Assignee | ||
Comment 7•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Whiteboard: [autoland-try:613699,613698:-b d -n -p all -u reftest,reftest-ipc,reftest-no-accel,peptest,reftest-1,reftest-2,reftest-3 -t none]
Updated•12 years ago
|
Whiteboard: [autoland-try:613699,613698:-b d -n -p all -u reftest,reftest-ipc,reftest-no-accel,peptest,reftest-1,reftest-2,reftest-3 -t none] → [autoland-in-queue]
Comment 8•12 years ago
|
||
Autoland Patchset: Patches: 613699, 613698 Branch: mozilla-central => try Destination: http://hg.mozilla.org/try/pushloghtml?changeset=22907ff6b3d5 Try run started, revision 22907ff6b3d5. To cancel or monitor the job, see: https://tbpl.mozilla.org/?tree=Try&rev=22907ff6b3d5
Updated•12 years ago
|
Attachment #613698 -
Flags: review?(joe) → review+
Reporter | ||
Comment 9•12 years ago
|
||
Comment on attachment 613698 [details] [diff] [review] Patch for bug v2 Review of attachment 613698 [details] [diff] [review]: ----------------------------------------------------------------- (In reply to Jared Wein [:jaws] from comment #6) > Moved the data URI to a file for the reftests. I don't know anything about reftests, but you put noise.png on disk in 4 directories. Can you not just refer to the one at the lowest depth? url(../noise.png) ::: toolkit/themes/pinstripe/global/TopLevelImageDocument.css @@ +3,5 @@ > * You can obtain one at http://mozilla.org/MPL/2.0/. */ > > @media not print { > body { > + background: #222 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYBAMAAACDuy0HAAAAG1BMVEX+/v4BAQH///8KCgoDAwN/f3/19fWAgID8/PzhDwT2AAAACXRSTlMFBQUFBQUFBQWHDtP9AAALwklEQVR4Xg3KOWO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wK4jIwNLWbwQAOtYKRLaipDH+X4TPPOG8DCNY4IC9yBk1qcibjhUgRnDcf35pl9d5otbvQjOIXlEu5dVtm5LRaK5KWcD/PX6LaGd25CuNHG/vgeIB1kcpCme+J8idlcjfBALAJSggznsGHGOAJgdGduMnZg+bAaeGASGV9bh/X2wPsVTmBLxmTTQsBGFkEOkZJTsGAm+HrtMDbWwvTXOutX1u7BxIq9Xib6DkFMbUitNdrYsULkahsAhBEh9FjdzL9BNARxTSr7T3u1rE+IWUmCIpwTZHZCu5l9THCuCcOhZqfekuQxjQ7EoyGUJAwCv/q1JOuJeCc/3lknb76zAquO/DAQhK/62cP8X2s3+IBLIhvL8RHopoHpIArJysYTTmMMeubPXh8W760AvMVH67jqgg06+/ne5MZ631z6yROhloh3dPQirZoEpr80wgt/cEbhbAQTmRLtGh8lxCwDBBb5OeJ4aEq25XBNMT2rzWedW2zIzj+CCDKlnlyJBzT81qBWp69h7vlb3TmEV+DNm2rqj1iT7BQuwVVsuPkwq1e5P8tgNjVbIlMzwXeM11kZqjx3KKFOJzc3CAyFVhi8fxVZ5FvhdAM5mM6kS6OgKu16MFglq3/b/QVIwdw7HUCyeW04JPjC5dO+GC9OfqfB4VX+wwuift+ths2Ss3i6nkOE+JFyD+wKFL+WMX6nwwDva0S1/O8Mlnida69Ph96fuFvCoRMvXnCfsLPPmC/hA5RnMNE4fDK0pVOQ4BHLaErzv/wD99ABmjNZk0AAAAABJRU5ErkJggg==); Personally, I'd prefer background-color and background-image to be specified individually as opposed to using the combined background rule. But based on Dao's review in the other bug, this is fine. I also wish we would put that beautiful data uri in a shared location (browser/themes has browserShared.inc). It's not a huge deal though and we already do this so whatever.
Attachment #613698 -
Flags: review?(paul) → review+
Assignee | ||
Comment 10•12 years ago
|
||
(In reply to Paul O'Shannessy [:zpao] from comment #9) > Comment on attachment 613698 [details] [diff] [review] > Patch for bug v2 > > Review of attachment 613698 [details] [diff] [review]: > ----------------------------------------------------------------- > > (In reply to Jared Wein [:jaws] from comment #6) > > Moved the data URI to a file for the reftests. > > I don't know anything about reftests, but you put noise.png on disk in 4 > directories. Can you not just refer to the one at the lowest depth? > url(../noise.png) This is because some of the reftests run their own server which has their local directory as the root of the server, so it's impossible to navigate up the folder hierarchy. I ran in to this issue while working on bug 379667 and had to duplicate ImageDocument.css for the same reason.
Reporter | ||
Comment 11•12 years ago
|
||
(In reply to Jared Wein [:jaws] from comment #10) > This is because some of the reftests run their own server which has their > local directory as the root of the server, so it's impossible to navigate up > the folder hierarchy. Ah ok. TIL.
Assignee | ||
Comment 12•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/920825c9873f
Flags: in-testsuite-
Flags: in-litmus-
Target Milestone: --- → mozilla14
Comment 13•12 years ago
|
||
Try run for 22907ff6b3d5 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=22907ff6b3d5 Results (out of 13 total builds): success: 13 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/autolanduser@mozilla.com-22907ff6b3d5
Updated•12 years ago
|
Whiteboard: [autoland-in-queue]
Comment 14•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/920825c9873f
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 15•12 years ago
|
||
(In reply to Paul O'Shannessy [:zpao] from comment #9) > I also wish we would put that beautiful data uri in a shared location > (browser/themes has browserShared.inc). It's not a huge deal though and we > already do this so whatever. Yeah, giant data UIRs in CSS is something we should avoid (even though this patch is just shifting it around). Followup bug?
Updated•12 years ago
|
Component: Layout → Themes
Product: Core → Toolkit
QA Contact: layout → themes
Comment 16•12 years ago
|
||
What is 'color:#EEE' doing on the IMG?
Comment 17•12 years ago
|
||
Does the error text for broken images use that?
Assignee | ||
Comment 18•12 years ago
|
||
(In reply to Alfred Kayser from comment #16) > What is 'color:#EEE' doing on the IMG? (In reply to Justin Dolske [:Dolske] from comment #17) > Does the error text for broken images use that? Yeah, there is native anonymous content for text within the image that can be seen if there are decoding errors or the image is loading slowly.
You need to log in
before you can comment on or make changes to this bug.
Description
•