Closed
Bug 1170725
Opened 9 years ago
Closed 9 years ago
Click-to-play images
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(firefox44 disabled, firefox45 affected, relnote-firefox 45+)
RESOLVED
FIXED
Firefox 44
People
(Reporter: jchen, Assigned: jonalmeida)
References
Details
(Keywords: user-doc-needed)
Attachments
(4 files, 1 obsolete file)
I think the "click-to-play images" functionality is already implementable as an add-on or inside browser.js, without additional platform changes. We can use nsIContentPolicy to block images on load, and on long-tap, we can have a context menu item that uses nsIImageLoadingContent to reload the image. For CSS background images, I think the best way to show those images is to reload the page. I found an existing add-on [1] that Martyn wrote that does image blocking, so he may have some thoughts on this. [1] https://addons.mozilla.org/en-us/android/addon/mobile-image-blocker/
Comment 1•9 years ago
|
||
I started an add-on [1] to implement a few of the ideas in comment 0: 1. Use nsIContentPolicy to block all images 2. Use a long-tap context menu item to load images as needed The add-on displays an "image-blocked" placeholder [2] to let the user know where images were supposed to display. [1] https://github.com/mfinkle/clicktoviewimages [2] http://people.mozilla.org/~mfinkle/fennec/screenshots/fennec-image-blocked-01.png
Assignee | ||
Comment 2•9 years ago
|
||
Bug 1170725 - Click-to-play images r?margaret This is a WIP patch that doesn't initalize the ImageBlockingPolicy.js class as expected. The init and uninit methods are commented out since the initializing is now done in the MobileComponents.manifest. I think there might be a problem there which is the cause. The assumptions I've made is that I don't need to add a window watcher, listening for the "domwindowopened" event.
Attachment #8647142 -
Flags: review?(margaret.leibovic)
Comment 3•9 years ago
|
||
https://reviewboard.mozilla.org/r/15903/#review14225 ::: mobile/android/components/ImageBlockingPolicy.js:18 (Diff revision 1) > +console.log("WEEEEEEEEEEEEEEE"); See my comment about console not being available ::: mobile/android/components/ImageBlockingPolicy.js:21 (Diff revision 1) > + classID: Components.ID("{f55f77f9-d33d-4759-82fc-60db3ee0bb91}"), Did you make a new UUID? Or is thi still the one from my add-on? ::: mobile/android/components/ImageBlockingPolicy.js:50 (Diff revision 1) > + setEnabled: function(enabled) { Eventually, we'll need to add some other mechanism to control the enable/disable feature. We can't ever call this method (without hacks) and prefs or notifications are cleaner. ::: mobile/android/components/ImageBlockingPolicy.js:56 (Diff revision 1) > + console.log("HELLLLOOOOOOOOOOOOOOOOO") console is not available in a component. It's a feature of a DOM window. Use Services.console.logMessageString or better yet, AndroidLog.jsm (look for examples in our code) ::: mobile/android/components/ImageBlockingPolicy.js:68 (Diff revision 1) > + dump(node.outerHTML + "\n"); dump might get sent to the android log in local builds, but even this should be replaced with AndroidLog.jsm ::: mobile/android/components/ImageBlockingPolicy.js:97 (Diff revision 1) > + // nsIFactory interface implementation You can remove this function ::: mobile/android/components/ImageBlockingPolicy.js:106 (Diff revision 1) > + QueryInterface: XPCOMUtils.generateQI([Ci.nsIContentPolicy, Ci.nsIFactory]) You can remove Ci.nsIFactory from the list too
Comment 4•9 years ago
|
||
Also, look for other errors during Gecko startup in Android Log. That's when components are registered and initialized.
Updated•9 years ago
|
Assignee: nobody → jalmeida
Comment 5•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle https://reviewboard.mozilla.org/r/15903/#review14307 Were you able to get this working with mfinkle's comment? The syntax for registering these components always confuses me, so I would look to existing examples to see what you might have done wrong. For example, it looks like you might need this NSGetFactory logic: http://mxr.mozilla.org/mozilla-central/source/mobile/android/components/DirectoryProvider.js#190 ::: mobile/android/chrome/content/browser.js:2597 (Diff revision 1) > + } Nit: identation is off here. ::: mobile/android/components/ImageBlockingPolicy.js:16 (Diff revision 1) > +let DATA_IMG = "data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI%2BDQoNCjxzdmcgdmVyc2lvbj0iMS4xIg0KICAgICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciDQogICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIg0KICAgICB4PSIwIg0KICAgICB5PSIwIg0KICAgICB3aWR0aD0iMzIiDQogICAgIGhlaWdodD0iMzIiDQogICAgIHZpZXdCb3g9IjAgMCAzMiAzMiI%2BDQoNCiAgPGRlZnM%2BDQogICAgDQogICAgPG1hc2sgaWQ9Im1hc2stY3V0b3V0LWJsb2NrZWQtc2lnbiI%2BDQogICAgICA8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9IiNmZmYiIC8%2BDQogICAgICA8Y2lyY2xlIGN4PSIyNSIgY3k9IjI1IiByPSI4IiBmaWxsPSIjMDAwIiAvPg0KICAgIDwvbWFzaz4NCg0KICAgIDxtYXNrIGlkPSJtYXNrLWN1dG91dC1mcmFtZSI%2BDQogICAgICA8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9IiMwMDAiIC8%2BDQogICAgICA8cmVjdCB4PSIyIiB5PSI0IiB3aWR0aD0iMjgiIGhlaWdodD0iMjQiIHJ4PSIzIiByeT0iMyIgZmlsbD0iI2ZmZiIgLz4NCiAgICAgIDxyZWN0IHg9IjQiIHk9IjYiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyMCIgcng9IjIiIHJ5PSIyIiBmaWxsPSIjMDAwIiAvPg0KICAgIDwvbWFzaz4NCiAgICANCiAgICA8bWFzayBpZD0ibWFzay1jdXRvdXQtYmxvY2tlZC1zaWduLWlubmVyIj4NCiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0iI2ZmZiIgLz4NCiAgICAgIDxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjQiIGZpbGw9IiMwMDAiIC8%2BDQogICAgPC9tYXNrPg0KDQogIDwvZGVmcz4NCg0KICA8ZyBpZD0iaWNvbi1mcmFtZSIgbWFzaz0idXJsKCNtYXNrLWN1dG91dC1ibG9ja2VkLXNpZ24pIj4NCiAgICA8cmVjdCBpZD0ic2hhcGUtYmFja2dyb3VuZCIgeD0iMiIgeT0iNCIgd2lkdGg9IjI4IiBoZWlnaHQ9IjI0IiByeD0iMyIgcnk9IjMiIGZpbGw9IiNmMGYxZjIiIC8%2BDQogICAgPHBvbHlnb24gcG9pbnRzPSIzLDI2IDExLDE2IDE4LDI2IiBmaWxsPSIjN2U3ZjgwIiAvPg0KICAgIDxwb2x5Z29uIHBvaW50cz0iMTEsMjYgMjMsMTAgMzEsMjAgMzEsMjYiIGZpbGw9IiM0YzRjNGQiIC8%2BDQogICAgPGNpcmNsZSBjeD0iOSIgY3k9IjExIiByPSIzIiBmaWxsPSIjOTc5ODk5IiAvPg0KICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0iIzY1NjU2NiIgbWFzaz0idXJsKCNtYXNrLWN1dG91dC1mcmFtZSkiIC8%2BDQogIDwvZz4NCiAgPGcgaWQ9Imljb24tYmxvY2tlZC1zaWduIj4NCiAgICA8Y2lyY2xlIGN4PSIyNSIgY3k9IjI1IiByPSI2IiBmaWxsPSIjNjU2NTY2IiBtYXNrPSJ1cmwoI21hc2stY3V0b3V0LWJsb2NrZWQtc2lnbi1pbm5lcikiIC8%2BDQogICAgPGxpbmUgeDE9IjIxIiB5MT0iMjkiIHgyPSIyOSIgeTI9IjIxIiBzdHJva2U9IiM2NTY1NjYiIHN0cm9rZS13aWR0aD0iMiIgLz4NCiAgPC9nPg0KDQo8L3N2Zz4NCg%3D%3D"; Can we put this in a file instead of a data URI? ::: mobile/android/components/ImageBlockingPolicy.js:68 (Diff revision 1) > + dump(node.outerHTML + "\n"); If you look at browser.js, you'll see that dump is actually defined as a function there: http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/browser.js#316 But we don't have it in this context, so you would have to implement it yourself here.
Attachment #8647142 -
Flags: review?(margaret.leibovic)
Comment 6•9 years ago
|
||
Also, I would put this behind a pref when we land this, since I don't think this is something that users would want by default.
Assignee | ||
Comment 7•9 years ago
|
||
https://reviewboard.mozilla.org/r/15903/#review14225 > Did you make a new UUID? Or is thi still the one from my add-on? This is the original UUID. I didn't know of a good reason to generate a new one. > Eventually, we'll need to add some other mechanism to control the enable/disable feature. We can't ever call this method (without hacks) and prefs or notifications are cleaner. True, this isn't used any where anymore. When I add a pref for it, image blocking will be controlled then. > console is not available in a component. It's a feature of a DOM window. > > Use Services.console.logMessageString or better yet, AndroidLog.jsm (look for examples in our code) I probably should have, but I found out that console.log statements get magically turned into android verbose logs with the 'GeckoBrowser' tag.
Assignee | ||
Comment 8•9 years ago
|
||
https://reviewboard.mozilla.org/r/15903/#review14307 > Can we put this in a file instead of a data URI? This will eventually move to it's own file before a final commit, but I'm leaving it here for now for testing since I know it works and its just easier at the same time.
Assignee | ||
Comment 9•9 years ago
|
||
So I figured out the issue with my patch (didn't define the prototype property), so I'll clean up, add a pref and separate the placeholder image from the js file. (ノ◕ヮ◕)ノ*:・゚✧
Assignee | ||
Comment 10•9 years ago
|
||
Also need to figure out a way to stop blocking images of a very small size and missing context menu options for images with links.
Assignee | ||
Comment 11•9 years ago
|
||
Do we want the option for image blocking to show as an about:config pref or a UI settings pref?
Flags: needinfo?(bbermes)
Comment 12•9 years ago
|
||
(In reply to Jonathan Almeida (:jonalmeida) from comment #11) > Do we want the option for image blocking to show as an about:config pref or > a UI settings pref? If we want Settings UI (very likely), I'd treat that as a separate bug. Just use Gecko Prefs and about:config for now. Any Settings UI would build on the Gecko prefs.
Comment 13•9 years ago
|
||
(In reply to Jonathan Almeida (:jonalmeida) from comment #10) > Also need to figure out a way to stop blocking images of a very small size > and missing context menu options for images with links. You could use a Gecko pref to control a threshold size (in kB?). If the pref is 0 all images are blocked.
Assignee | ||
Comment 14•9 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #13) > (In reply to Jonathan Almeida (:jonalmeida) from comment #10) > > Also need to figure out a way to stop blocking images of a very small size > > and missing context menu options for images with links. > > You could use a Gecko pref to control a threshold size (in kB?). If the pref > is 0 all images are blocked. I like this idea. I ended up adding the UI option with placeholder strings to help get a visual idea of the option. With Gecko prefs, we can get set the int value, but in UI we would need a text field or slider to set the value for the image size. We currently don't have any settings that do this though so we need to a new one.
Comment 15•9 years ago
|
||
Can I see a build check out what this UX currently feels like? I worry a long-press to load might be a bit much and would like to see if we can do a single-press to load. Related, could we perhaps also limit the max dimension size of this placeholder image? so it looks less intimidating? :D Our empty states panels designs (bug 1091826) use 80dp square as the size for similar placeholders. Seems like a good place to start.
Flags: needinfo?(mark.finkle)
Comment 16•9 years ago
|
||
Redirecting that NI to jonalmeida :)
Flags: needinfo?(mark.finkle) → needinfo?(jalmeida)
Assignee | ||
Comment 17•9 years ago
|
||
Sent a build to antlam via email because it was too large to attach here.
> Related, could we perhaps also limit the max dimension size of this placeholder image? so it looks less intimidating? :D
We're using an svg so the image scales depending on the original image dimensions. It should avoid layout issues on websites if we were to use a fixed sized image, but I might be mistaken on that, there might be a better way to do it.
Flags: needinfo?(jalmeida)
Comment 18•9 years ago
|
||
(In reply to Jonathan Almeida (:jonalmeida) from comment #17) > We're using an svg so the image scales depending on the original image > dimensions. It should avoid layout issues on websites if we were to use a > fixed sized image, but I might be mistaken on that, there might be a better > way to do it. Right- what I mean is, can we set a maximum on the image such that there is always some padding (inwards/away) from the edges of the image. I'm not sure a fixed sized image is a good solution here.. but I could be wrong. I think we just need to add padding to the SVG.
Flags: needinfo?(jalmeida)
Assignee | ||
Comment 19•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=02de32f24c87
Assignee | ||
Comment 20•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle Bug 1170725 - Click-to-play images r?margaret
Attachment #8647142 -
Flags: review?(margaret.leibovic)
Assignee | ||
Updated•9 years ago
|
Attachment #8647142 -
Attachment description: MozReview Request: Bug 1170725 - Click-to-play images r?margaret → MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle
Attachment #8647142 -
Flags: review?(margaret.leibovic) → review?(mark.finkle)
Assignee | ||
Comment 21•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle Bug 1170725 - Click-to-play images r?mfinkle
Assignee | ||
Comment 22•9 years ago
|
||
https://reviewboard.mozilla.org/r/15903/#review14747 ::: mobile/android/installer/package-manifest.in:5 (Diff revision 3) > -; Package file for the Fennec build. > +; Package file for the Fennec build. Editor auto-removes EOL whitespaces. Sorry! ::: mobile/android/themes/core/images/placeholder_image.svg:3 (Diff revision 3) > +<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="32" height="32" viewBox="-2 -2 38 38"> I made changes to the viewBox as per antlam's comments to add some padding inside. Everything else on the image is as original.
Assignee | ||
Comment 23•9 years ago
|
||
Anthony, I've added the changes and I'll send you a new apk as well if you want see how it looks.
Flags: needinfo?(jalmeida) → needinfo?(alam)
Comment 24•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle https://reviewboard.mozilla.org/r/15903/#review14755 ::: mobile/android/app/mobile.js:357 (Diff revision 3) > +pref("browser.privacy.image_blocking_enabled", false); I don't think this is a "privacy" feature. What about "browser.image_blocking.enabled"? We could then add "browser.image_blocking.minsize" or something later, if we add a size allowance. ::: mobile/android/chrome/content/browser.js:1007 (Diff revision 3) > + target.setAttribute("data-ctv-show", "true"); I added the "data-ctv-*" attributes in add-on, but we may want to move away from those now that this is in product. Doesn't need to block landing, but let's file a followup bug to figure out what our options are. ::: mobile/android/chrome/content/browser.js:2600 (Diff revision 3) > + return false; indent issue ::: mobile/android/components/ImageBlockingPolicy.js:16 (Diff revision 3) > +let DATA_IMG = "chrome://browser/skin/images/placeholder_image.svg"; I used "DATA" because it was a data: URI. Rename to PLACEHOLDER_IMG.
Attachment #8647142 -
Flags: review?(mark.finkle)
Comment 25•9 years ago
|
||
Thanks for the builds, they're super helpful. This is essentially what I'm looking for. I took it to a few sites to test it out. Just so we're not adding an arbitrary value, what value for the padding are you using here? We could probably reuse some of a value from other parts of our layouts.
Flags: needinfo?(alam) → needinfo?(jalmeida)
Assignee | ||
Comment 26•9 years ago
|
||
I'm not sure how this would translate into pixel values, but in the svg I've changed the viewbox attribute from "0 0 32 32" to "-2 -2 38 38". It's about 0.85% if the image is 32x32. Not sure if that was helpful..
Flags: needinfo?(jalmeida) → needinfo?(alam)
Comment 27•9 years ago
|
||
(In reply to Jonathan Almeida (:jonalmeida) from comment #17) > Sent a build to antlam via email because it was too large to attach here. > > > Related, could we perhaps also limit the max dimension size of this placeholder image? so it looks less intimidating? :D > We're using an svg so the image scales depending on the original image > dimensions. It should avoid layout issues on websites if we were to use a > fixed sized image, but I might be mistaken on that, there might be a better > way to do it. Could I get one as well :) I want to see/feel how it looks - thanks
Flags: needinfo?(bbermes) → needinfo?(jalmeida)
Comment 28•9 years ago
|
||
(In reply to Jonathan Almeida (:jonalmeida) from comment #11) > Do we want the option for image blocking to show as an about:config pref or > a UI settings pref? I would suggest to put it as UI settings pref, maybe Customize (and not Privacy as the screenshot showed it, I think), it's more a bandwidth concern than a privacy concern.
Flags: needinfo?(jalmeida)
Comment 29•9 years ago
|
||
(In reply to Barbara Bermes [:bbermes] from comment #28) > (In reply to Jonathan Almeida (:jonalmeida) from comment #11) > > Do we want the option for image blocking to show as an about:config pref or > > a UI settings pref? > > I would suggest to put it as UI settings pref, maybe Customize (and not > Privacy as the screenshot showed it, I think), it's more a bandwidth concern > than a privacy concern. Agree.
Assignee | ||
Comment 30•9 years ago
|
||
https://reviewboard.mozilla.org/r/15903/#review14755 > I added the "data-ctv-*" attributes in add-on, but we may want to move away from those now that this is in product. Doesn't need to block landing, but let's file a followup bug to figure out what our options are. Created bug 1196416 for this.
Assignee | ||
Comment 31•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b2a7d2380b34
Comment 32•9 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #29) > (In reply to Barbara Bermes [:bbermes] from comment #28) > > (In reply to Jonathan Almeida (:jonalmeida) from comment #11) > > > Do we want the option for image blocking to show as an about:config pref or > > > a UI settings pref? > > > > I would suggest to put it as UI settings pref, maybe Customize (and not > > Privacy as the screenshot showed it, I think), it's more a bandwidth concern > > than a privacy concern. > > Agree. WFM too. (In reply to Jonathan Almeida (:jonalmeida) from comment #26) > I'm not sure how this would translate into pixel values, but in the svg I've > changed the viewbox attribute from "0 0 32 32" to "-2 -2 38 38". It's about > 0.85% if the image is 32x32. > > Not sure if that was helpful.. Not really, hah. I tested it out and it is behaving a bit awkwardly for me. Let's chat about this over vidyo next week since we still have some time. I'll ping on IRC
Flags: needinfo?(alam) → needinfo?(jalmeida)
Assignee | ||
Comment 33•9 years ago
|
||
Talked to antlam on IRC: I'm going to try to center the placeholder image in the place where the original image would be and give it a max size so it doesn’t look massive on huge images. Will touch base with antlam next week.
Flags: needinfo?(jalmeida)
Comment 35•9 years ago
|
||
Action item right now is on me to get the SVG from Shorlander and add some built-in padding.
Comment 36•9 years ago
|
||
(In reply to Anthony Lam (:antlam) from comment #35) > Action item right now is on me to get the SVG from Shorlander and add some > built-in padding. Here it is: http://people.mozilla.org/~shorlander/drops/blocked-image-01.svg
Comment 37•9 years ago
|
||
Added padding! Scaled it up from 32pt to 42pt but kept the icon the same (more padding). Let's see how this works
Flags: needinfo?(alam) → needinfo?(jalmeida)
Assignee | ||
Comment 38•9 years ago
|
||
Definitely looks much better! I just sent you a build with the change. It doesn't have the UI option in it, so just turn it on in gecko prefs (browser.image_blocking.enabled)
Flags: needinfo?(jalmeida) → needinfo?(alam)
Comment 39•9 years ago
|
||
Nice! and thank you for sending that build over. I think this looks much better. Great work!
Flags: needinfo?(alam)
Assignee | ||
Comment 40•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=1c4b7b70c77b
Assignee | ||
Comment 41•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle Bug 1170725 - Click-to-play images r?mfinkle
Attachment #8647142 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 42•9 years ago
|
||
Bug 1195063 - Create a UI Settings option for changing the image threshold image size for click-to-play images r?mfinkle
Attachment #8655112 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 43•9 years ago
|
||
I've put my match up for review, but it can only land once bug 1198438 is fixed.
Assignee | ||
Comment 44•9 years ago
|
||
Comment on attachment 8655112 [details] MozReview Request: Bug 1195063 - Create a UI Settings option for changing the image threshold image size for click-to-play images r?mfinkle Oops.
Attachment #8655112 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 45•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c486a05bdb95
Comment 46•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle https://reviewboard.mozilla.org/r/15903/#review18237 Looks good! ::: mobile/android/chrome/content/browser.js:998 (Diff revision 4) > + target.setAttribute("data-ctv-show", "true"); Add UI Telemetry here, like this: UITelemetry.addEvent("action.1", "contextmenu", null, "web_show_image"); ::: mobile/android/chrome/content/browser.js:2568 (Diff revision 4) > + if(!Services.prefs.getBoolPref("browser.image_blocking.enabled")) if ( and add { } around this block
Attachment #8647142 -
Flags: review?(mark.finkle) → review+
Comment 47•9 years ago
|
||
https://reviewboard.mozilla.org/r/17825/#review18239 We should put the Setting behind a NIGHTLY_BUILD flag so we could hide the Setting on Aurora or higher, if needed. You should find other examples of settings behind a nightly flag to use as an example.
Assignee | ||
Comment 48•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle Bug 1170725 - Click-to-play images r?mfinkle
Attachment #8647142 -
Flags: review+ → review?(mark.finkle)
Assignee | ||
Updated•9 years ago
|
Attachment #8655112 -
Attachment is obsolete: true
Assignee | ||
Comment 49•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle Fixed comments.
Attachment #8647142 -
Flags: review?(mark.finkle) → review+
Comment 50•9 years ago
|
||
https://reviewboard.mozilla.org/r/15903/#review18257 ::: mobile/android/chrome/content/browser.js:975 (Diff revision 5) > + target.setAttribute("data-ctv-show", "true"); UITelemetry goes here. This is the click handler. ::: mobile/android/chrome/content/browser.js:2537 (Diff revision 5) > + UITelemetry.addEvent("action.1", "contextmenu", null, "web_show_image"); Whoops. This goes up above. This is the code that matches the DOM element and shows/hides the menu item.
Assignee | ||
Comment 51•9 years ago
|
||
https://reviewboard.mozilla.org/r/15903/#review18257 My bad, wasn't paying attention.
Assignee | ||
Comment 52•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle Bug 1170725 - Click-to-play images r?mfinkle
Attachment #8647142 -
Flags: review+ → review?(mark.finkle)
Comment 53•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle https://reviewboard.mozilla.org/r/15903/#review18261 ::: mobile/android/chrome/content/browser.js:2531 (Diff revision 6) > + if(!Services.prefs.getBoolPref("browser.image_blocking.enabled")) { if ( add the space
Attachment #8647142 -
Flags: review?(mark.finkle)
Assignee | ||
Updated•9 years ago
|
Attachment #8647142 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 54•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle Bug 1170725 - Click-to-play images r?mfinkle
Assignee | ||
Comment 55•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle Bug 1170725 - Click-to-play images r?mfinkle
Comment 56•9 years ago
|
||
Comment on attachment 8647142 [details] MozReview Request: Bug 1170725 - Click-to-play images r?mfinkle https://reviewboard.mozilla.org/r/15903/#review18265 \o/
Attachment #8647142 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 57•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=601c4ea5e6d2
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 58•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/f603438f4a15
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/f603438f4a15
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Comment 60•9 years ago
|
||
Tested with: Device: Nexus 4 (Android 5.1) Build: Firefox for Android 44.0a1 (2015-09-30) It is a bit confusing, because in Settings it says "Load images only when you tap on them", but to display the image, you have to long tap on the image and from the context menu to choose "Show Image" Also searching with bing search engine for example "wallpaper" and go to the Images category, images are displayed, even though "tap-to-load images" is enabled.
Assignee | ||
Comment 61•9 years ago
|
||
NI for antlam - comment 60 re the copy. "Load images only when you long tap on them"?
Flags: needinfo?(alam)
Comment 62•9 years ago
|
||
(In reply to Jonathan Almeida (:jonalmeida) from comment #61) > NI for antlam - comment 60 re the copy. "Load images only when you long tap > on them"? There's more context in bug 1195063 when we worked on this with Matej. Matej, what're your thoughts on changing "tap" to "long press" here? It will look like this: Tap-to-load images Load images only when you long press on them
Flags: needinfo?(alam) → needinfo?(matej)
Comment 63•9 years ago
|
||
(In reply to Anthony Lam (:antlam) from comment #62) > (In reply to Jonathan Almeida (:jonalmeida) from comment #61) > > NI for antlam - comment 60 re the copy. "Load images only when you long tap > > on them"? > > There's more context in bug 1195063 when we worked on this with Matej. > > Matej, what're your thoughts on changing "tap" to "long press" here? It will > look like this: > > Tap-to-load images > Load images only when you long press on them Can it just say "long press them"? "On them" sounds odd here. Also, is "long press" vs. "long tap" standard language for this action?
Flags: needinfo?(matej)
Comment 64•9 years ago
|
||
(In reply to Matej Novak [:matej] from comment #63) > (In reply to Anthony Lam (:antlam) from comment #62) > > (In reply to Jonathan Almeida (:jonalmeida) from comment #61) > > > NI for antlam - comment 60 re the copy. "Load images only when you long tap > > > on them"? > > > > There's more context in bug 1195063 when we worked on this with Matej. > > > > Matej, what're your thoughts on changing "tap" to "long press" here? It will > > look like this: > > > > Tap-to-load images > > Load images only when you long press on them > > Can it just say "long press them"? "On them" sounds odd here. "long press them" makes sense. > Also, is "long press" vs. "long tap" standard language for this action? I'd say as long as we're consistent with what we've been calling this interaction within our app, then it should be fine :)
Comment 67•9 years ago
|
||
Updating dependencies to make it easier to track outstanding issues here (follow-up work should block the original bug, not depend on it)
Comment 68•9 years ago
|
||
Release Note Request (optional, but appreciated) [Why is this notable]: New feature [Suggested wording]: Click-to-view Images to reduce bandwidth [Links (documentation, blog post, etc)]:
status-firefox41:
affected → ---
status-firefox45:
--- → affected
relnote-firefox:
--- → ?
Keywords: user-doc-needed
Updated•9 years ago
|
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•