[crx] location.reload undefined

111 views
Skip to first unread message

reda

unread,
May 23, 2010, 6:05:02 AM5/23/10
to Chromium-extensions
Hi,

I'm reading the how-to about debugging chrome extension at :
http://code.google.com/chrome/extensions/tut_debugging.html

So I put a breakpoint at some line of my popup, then I went to the
console and entered location.reload() in order to trigger a reload of
my popup, and here I got an "undefined"

I've followed exactly what was said in the how to , why it doesn't
work? Why?

Thanks for your help.

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.

Mohamed Mansour

unread,
May 24, 2010, 2:30:14 PM5/24/10
to reda, Chromium-extensions
Hi, when you right click on your "browser action" popup, and choose "Inspect Popup" and within the console, you type "location.reload()", it should reload. I tried it here, and it works.

With a breakpoint, it should work as well (I tried it), any other errors?

-
Mohamed Mansour
m...@chromium.org

reda

unread,
May 24, 2010, 3:23:53 PM5/24/10
to Chromium-extensions

Hi Mohamed Mansour,

Which version did you use to test ?

I'm running the latest 5.0.375.55 beta of Google chrome, on a Debian
box and the only way to get the location.reload work is to go to the
extension popup page at : chrome-extension://<extension-ID>/popup.html
and then right click on the web page and then "inspect element".

BTW, I've just installed Chrome on windows and this time when I right
click on the helloWorld browser action icon I have NO "inspect
entry". it is version 4.1.249.1064 (45376) on windows XP sp2 and I'm
sure I've already clicked on the "+ developer mode"

What is all these problems ?


On 24 mai, 20:30, Mohamed Mansour <m0.interact...@gmail.com> wrote:
> Hi, when you right click on your "browser action" popup, and choose "Inspect
> Popup" and within the console, you type "location.reload()", it should
> reload. I tried it here, and it works.
>
> With a breakpoint, it should work as well (I tried it), any other errors?
>
> -
> Mohamed Mansour
> m...@chromium.org
>
>
>
>
>
> On Sun, May 23, 2010 at 6:05 AM, reda <reda.a...@gmail.com> wrote:
> > Hi,
>
> > I'm reading the how-to about debugging chrome extension at :
> >http://code.google.com/chrome/extensions/tut_debugging.html
>
> > So I put a breakpoint at some line of my popup, then I went to the
> > console and entered location.reload() in order to trigger a reload of
> > my popup, and here I got an "undefined"
>
> > I've followed exactly what was said in the how to , why it doesn't
> > work? Why?
>
> > Thanks for your help.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>
> > .
> > For more options, visit this group at
> >http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
> To post to this group, send email to chromium-extensi...@chromium.org.
> To unsubscribe from this group, send email to chromium-extensions+unsubscr...@chromium.org.
> For more options, visit this group athttp://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.

Mohamed Mansour

unread,
May 24, 2010, 4:21:09 PM5/24/10
to reda, Chromium-extensions
Hi Reda,

I have tested it in "Google Chrome 6.0.408.1 (Official Build 47574) dev" from the dev channel. If you right click on your browser action (the icon) and choose "Inspect Popup", the inspector will come up.

It works as expected. You would need to get version 5+ to see the Inspect Popup. I am using the developer version from http://www.chromium.org/getting-involved/dev-channel


-
Mohamed Mansour
m...@chromium.org

reda

unread,
May 25, 2010, 2:12:16 AM5/25/10
to Chromium-extensions
Dear Mohamed Mansour,

I confirm what you said, I just downloaded the latest version of
Chrome : 6.0.408.1 on windows and location.reload() works as expected.
Now, there is a problem with version 5.xx that I have (both linux and
windows). Should I report a bug ?

Thanks for your help.

Reda ABDI

On 24 mai, 22:21, Mohamed Mansour <m0.interact...@gmail.com> wrote:
> Hi Reda,
>
> I have tested it in "Google Chrome 6.0.408.1 (Official Build 47574) dev"
> from the dev channel. If you right click on your browser action (the icon)
> and choose "Inspect Popup", the inspector will come up.
>
> It works as expected. You would need to get version 5+ to see the Inspect
> Popup. I am using the developer version fromhttp://www.chromium.org/getting-involved/dev-channel
> > <chromium-extensions%2Bunsubscr...@chromium.org<chromium-extensions%252Bunsubscr...@chromium.org>

davidthedrake

unread,
May 27, 2010, 1:05:23 PM5/27/10
to Chromium-extensions
Hello;

I am also experiencing this problem.

I am using Chrome on Ubuntu 9.10 64 version 5.0.375.55 beta.

When trying to follow the tutorial on debugging extensions (
http://code.google.com/chrome/extensions/tut_debugging.html ) I
encounter the same problem:
location.reload()
undefined

Maybe there's a bug?

Antony Sargent

unread,
Jun 1, 2010, 1:44:22 PM6/1/10
to davidthedrake, Chromium-extensions
If it works in the latest build, no need to report a bug. Either switch to using the dev build for your development, or be patient and wait for the next beta/stable channel release. (On average we push new versions of dev about every week or two, beta about every month or two, and stable every 3-4 months). 


To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.

elquinito

unread,
Jun 1, 2010, 11:07:48 AM6/1/10
to Chromium-extensions
I have a weird behavior with my last Chrome update.

If I installed an extension in developer mode, in Chrome 4, and update
to Chrome 5, it works. If I reinstall the extension, it works too.

But, if I have updated to Chrome 5 before install my extension, it
will not work, nor the location.reload() will do anything.

It seems to be a bug there...

On 27 mayo, 19:05, davidthedrake <davidthedr...@gmail.com> wrote:
> Hello;
>
> I am also experiencing this problem.
>
> I am usingChromeon Ubuntu 9.10 64 version 5.0.375.55 beta.
>
> When trying to follow the tutorial on debugging extensions (http://code.google.com/chrome/extensions/tut_debugging.html) I
> encounter the same problem:location.reload()
> undefined
>
> Maybe there's a bug?
>
> On May 25, 12:12 am, reda <reda.a...@gmail.com> wrote:
>
>
>
> > Dear Mohamed Mansour,
>
> > I confirm what you said, I just downloaded the latest version of
> >Chrome: 6.0.408.1 on windows andlocation.reload() works as expected.
> > Now, there is a problem with version5.xx that I have (both linux and
> > windows). Should I report a bug ?
>
> > Thanks for your help.
>
> > Reda ABDI
>
> > On 24 mai, 22:21, Mohamed Mansour <m0.interact...@gmail.com> wrote:
>
> > > Hi Reda,
>
> > > I have tested it in "GoogleChrome6.0.408.1 (Official Build 47574) dev"
> > > from the dev channel. If you right click on your browser action (the icon)
> > > and choose "Inspect Popup", the inspector will come up.
>
> > > It works as expected. You would need to get version5+ to see the Inspect
> > > Popup. I am using the developer version fromhttp://www.chromium.org/getting-involved/dev-channel
>
> > > -
> > > Mohamed Mansour
> > > m...@chromium.org
>
> > > On Mon, May 24, 2010 at 3:23 PM, reda <reda.a...@gmail.com> wrote:
>
> > > > Hi Mohamed Mansour,
>
> > > > Which version did you use to test ?
>
> > > > I'm running the latest 5.0.375.55 beta of Googlechrome, on a Debian
> > > > box and the only way to get thelocation.reloadwork is to go to the
> > > > extension popup page at :chrome-extension://<extension-ID>/popup.html
> > > > and then right click on the web page and then  "inspect element".
>
> > > > BTW, I've just installedChromeon windows and this time when I right
> > > > click on the helloWorld browser action icon I have NO "inspect
> > > > entry".  it is version 4.1.249.1064 (45376) on windows XP sp2 and I'm
> > > > sure I've already clicked on the "+ developer mode"
>
> > > > What is all these problems ?
>
> > > > On 24 mai, 20:30, Mohamed Mansour <m0.interact...@gmail.com> wrote:
> > > > > Hi, when you right click on your "browser action" popup, and choose
> > > > "Inspect
> > > > > Popup" and within the console, you type "location.reload()", it should
> > > > > reload. I tried it here, and it works.
>
> > > > > With a breakpoint, it should work as well (I tried it), any other errors?
>
> > > > > -
> > > > > Mohamed Mansour
> > > > > m...@chromium.org
>
> > > > > On Sun, May 23, 2010 at 6:05 AM, reda <reda.a...@gmail.com> wrote:
> > > > > > Hi,
>
> > > > > > I'm reading the how-to about debuggingchromeextension at :
> > > > > >http://code.google.com/chrome/extensions/tut_debugging.html
>
> > > > > > So I put a breakpoint at some line of my popup, then I went to the
> > > > > > console and enteredlocation.reload() in order to trigger a reload of

Antony Sargent

unread,
Jun 4, 2010, 7:27:08 PM6/4/10
to elquinito, Chromium-extensions
Can you create a bug report at http://crbug.com with the set of repro steps and an attachment of the extension source? Then respond back on this thread with the bug number.


To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.

reda

unread,
Jun 6, 2010, 3:28:21 AM6/6/10
to Chromium-extensions
Hi Antony,

Bug report was successfully created :
http://code.google.com/p/chromium/issues/detail?id=45951

Best regards

On 5 juin, 01:27, Antony Sargent <asarg...@chromium.org> wrote:
> Can you create a bug report athttp://crbug.comwith the set of repro steps
> > > > > > <chromium-extensions%2Bunsubscr...@chromium.org<chromium-extensions%252Bunsubscr...@chromium.org>
> > <chromium-extensions%252Bunsubscr...@chromium.org<chromium-extensions%25252Bunsubscr...@chromium.org>
>
> > > > > > > > .
> > > > > > > > For more options, visit this group at
>
> >http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
>
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the
> > Google Groups
> > > > > > "Chromium-extensions" group.
> > > > > > > To post to this group, send email to
> > chromium-extensi...@chromium.org.
> > > > > > > To unsubscribe from this group, send email to
> > > > > > chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>
> > <chromium-extensions%2Bunsubscr...@chromium.org<chromium-extensions%252Bunsubscr...@chromium.org>
>
> > > > > > .

elquinito

unread,
Jun 7, 2010, 9:02:29 AM6/7/10
to Chromium-extensions
Hi.

My problem was caused by an accent in spanish.
It seems the content script file stops being read when a non ASCII
character is found.

I'll search if somebody has reported something like that in other
threads.

Thank you for reading me, and excuse me for this unintended off-topic.

On Jun 1, 5:07 pm, elquinito <alvaro.per...@gmail.com> wrote:
> I have a weird behavior with my last Chrome update.
>
> If I installed an extension in developer mode, in Chrome 4, and update
> to Chrome 5, it works. If I reinstall the extension, it works too.
>
> But, if I have updated to Chrome 5 before install my extension, it
> will not work, nor thelocation.reload() will do anything.

PhistucK

unread,
Jun 7, 2010, 11:26:03 AM6/7/10
to elquinito, Chromium-extensions
I think your content scripts have to be UTF8 encoded and without a BOM.

☆PhistucK


To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages