Closed Bug 905860 Opened 8 years ago Closed 8 years ago

Kohls ad drag to reveal doesn't work


(Web Compatibility :: Mobile, defect)

Not set


(Not tracked)



(Reporter: justdave, Unassigned)




(Whiteboard: [sitewait][country-us] [js])


(2 files)

right now. Kohls is running an ad on their in-store Wi-Fi (conveniently the url is accessible from outside their network) where you emulate one of those scratch to reveal your savings ads by dragging your finger around on the screen to scratch the silver finish off. this works fine in the built-in Android browser, but does absolutely nothing in Fennec.

could be something browser-specific they're doing, but I thought it would be worth having the real experts check first.
Sounds like a website issue to investigate.
Flags: needinfo?(kdubost)
Attached image screenshots for the ads
I can't reproduce. See kohlsads.png
I tried also on Opera Mobile, on iPod Touch + Safari, AND on the stock android browser without having any issues, or the scenario explained.

If it is not reproducible, I'm inclined to close it as INVALID or WORKSFORME.
Flags: needinfo?(kdubost)
Site content has changed there was a carousel these sorts of promotions should end in a few days/week. The carousel may come back once the current promotion ends.
Closing with WORKSFORME. 
We can reopen if it's happening again.
Thanks Kevin, Dave for the report.
Closed: 8 years ago
Resolution: --- → WORKSFORME
This ad is back on the rotation again
Resolution: WORKSFORME → ---
Probably an event issue. Here are the events on the target canvas on the page: click, mousedown, mouseup, mousemove, touchcancel, touchend, touchmove, touchstart, transitionend, webkittransitionend

I've CC'ed web-compat.
They're using a jQuery plugin, wScratchPad (I see an issue for Fennec at

I threw their demo up at, totally not working in Firefox for Android, but I'm not sure if it's failing on touch events or mouse events.
I think this is just another site that depends on a non-existent global event object:
Actually, missed "ReferenceError: event is not defined" when trying to swipe on the original ad, and on the jQuery plugin demo.

After passing in an explicit "event" object argument argument in [1], the next error is that "touches" in undefined (on line 168) of [1]. jQuery clobbers event objects but copies over the original event to event.originalEvent -- so after passing in an "event" object argument and changing line 168 to:

var touches = event.changedTouches || event.originalEvent.changedTouches, ...

The demo works as expected.

So the question is, whose bug is this? How does Chrome/WebKit get away with not throwing?

(looks like wesj answered half of my question while I was writing it it ^_^)
> So the question is, whose bug is this? How does Chrome/WebKit get away with not throwing?

Probably because they're passing in the global event object, which is different than an explicit jQuery event argument. Moving this to TE, I can send a PR to the plugin and we can ask Kohl's to upgrade.
Component: General → Mobile
Product: Firefox for Android → Tech Evangelism
Assignee: nobody → miket
Whiteboard: [notcontactready]
Cool, wesj sent in a pull request already:
wonder if wScratchPad is even maintained anymore... last commit is 8 months ago, and there's been other open pull requests open that long with no discussion on them that haven't been taken yet.
@Dave probably not. We should reach out to Kohl's and ask them to either manually update their plugin, or apply wesj's patch @ <>
Whiteboard: [notcontactready] → [contactready][country-us]
Hey everyone!  Before I get into my post, I need to add a little transparency.  I'm a front-end developer at Kohl's, and anything I post here does not represent Kohl's in any way (my words are my own).

First of all, thank you *ALL* very much for noticing this issue and pouring your efforts into crafting a solution.  It's something I love very much about the web development community.  The willingness to be open and be helpful is absolutely amazing!  From my end, I genuinely appreciate all of this from everyone.  I'm commenting only because my coworker, Aaron Kahlhamer, happened to notice a tweet from Ralph Holzmann ( regarding your blog post, Mike.

Second, the details of this issue have been passed to the respective development team for consideration and implementation.  Unfortunately, I don't have any details at this time as to when the fix will work its way into production.  I'll gladly reply when appropriate, or this issue can be closed knowing it has made its way to Kohl's (whatever step is deemed necessary).

Thanks again, everyone!
Hi David!

Thanks so much for taking your time to let us know that you guys are aware of the issue. Please let us know if there's anything we can do to help.

Assignee: miket → nobody
This seems to be fixed.
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
Whiteboard: [contactready][country-us] → [sitewait][country-us] [js]
Depends on: 218415
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.