Version 0.5 apparently breaks selection code in my jetpack

0 views
Skip to first unread message

Thorsten Panknin

unread,
Sep 12, 2009, 7:51:51 AM9/12/09
to mozilla-la...@googlegroups.com
Hi,

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!

Cheers,

- Thorsten

Thorsten Panknin

unread,
Sep 14, 2009, 12:27:52 PM9/14/09
to mozilla-la...@googlegroups.com
Really noone?

Using FF 3.5.3 on Linux (Ubuntu 09.04) and Windows (XP).

Aza

unread,
Sep 14, 2009, 8:57:04 PM9/14/09
to mozilla-la...@googlegroups.com
Hi Thorsten,

We are starting to take a look into it; not sure what's up yet.

-- aza | ɐzɐ --

Thorsten Panknin

unread,
Sep 15, 2009, 4:12:10 AM9/15/09
to mozilla-la...@googlegroups.com
Thanks for letting me know, aza.

- Thorsten

Thorsten Panknin

unread,
Sep 17, 2009, 2:55:43 PM9/17/09
to mozilla-la...@googlegroups.com
Aza,

thanks for opening a bug for this:
https://bugzilla.mozilla.org/show_bug.cgi?id=516622. I hadn't thought of
it, but will report such incidents from now on.

Thanks a lot.

- Thorsten

Marco Lazzeri

unread,
Sep 21, 2009, 12:38:37 PM9/21/09
to mozilla-labs-jetpack
Hi guys,

It's happening here as well - 'selection' is not working at all.

OS X 10.5.8
Firefox 3.5.3

Cheers,
Marco
Reply all
Reply to author
Forward
0 new messages