Closed Bug 516622 Opened 16 years ago Closed 16 years ago

jetpack.selection appears to be broken

Categories

(Mozilla Labs :: Jetpack Prototype, defect, P1)

x86
All
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aza, Assigned: Mardak)

Details

with the new 0.5 version of Jetpack, my own dictcc-slidebar (based on the Wikipedia Slidebar) stopped working correctly. Something with the selection of text on a webpage broke, because the selection text isn't brought over to the iframe holding the mobile version of dict.cc anymore. Here's the code which works fine for Jetpack 0.4: ----------------------------------------------------- jetpack.future.import("selection"); jetpack.future.import("slideBar"); jetpack.slideBar.append({ icon: "http://www.dict.cc/favicon.ico", width: 300, persist: true, html: '<style>scrollbar * {display: none !important;}</style><iframe class="frame" height="99%" width="100%" src="http://pocket.dict.cc/?s="></iframe>', onReady: function(slide) { jetpack.selection.onSelection(function() { $(".frame", slide.contentDocument).attr("src", "http://pocket.dict.cc/?s=" + jetpack.selection.text); }); } }); ----------------------------------------------------- I had a look at the respective selection JEP and I'm currently stumped for where the error lies. Any hints are appreciated!
I'm the person originally reporting the bug, the text is from me. If I can provide more info or anything (besides patches and stuff, I can't really code), feel free to comment here and let me know.
Err, I may have accidentally changed the e-mail settings for this bug. Just wanted to INCLUDE me since the list at the top said EXCLUDED and now, if I am not mistaken, the people who were INCLUDED are EXCLUDED? Sorry if I messed things up.
http://hg.mozilla.org/labs/jetpack/rev/6d85a2fe7053 Seems like securable membranes doesn't allow giving setTimeout a function provided by the feature, so wrap it with a local function.
Status: NEW → RESOLVED
Closed: 16 years ago
Priority: -- → P1
Resolution: --- → FIXED
Target Milestone: 0.5 → 0.6
You need to log in before you can comment on or make changes to this bug.