vimperator-labs icon indicating copy to clipboard operation
vimperator-labs copied to clipboard

"TypeError: context is undefined" - qmarks, bmarks, tabgroups, history, buffers etc

Open e1r0h1r opened this issue 10 years ago • 23 comments

Windows 10 Firefox 45.0 Vimperator 3.12.0

:qmarks qmarks error

TypeError: context is undefined typeerror

e1r0h1r avatar Mar 10 '16 05:03 e1r0h1r

The :ls command also seems to suffer from this problem.

stooj avatar Mar 14 '16 02:03 stooj

Let's add :tabgroups to the list.

Arch Linux 4.4.5-1 Firefox 45.0 Vimperator 3.12.0

alesandar avatar Mar 21 '16 12:03 alesandar

Getting quite a lot of reports on this issue. This seems to be the first issue that reported this error, so I'm going to make this the "main" issue.

Others: #457, #467, #468

timss avatar Mar 22 '16 21:03 timss

Arch Linux 4.4.6 Firefox 45.0.1 Vimperator 3.12.0 Same as above, bmarks and history are returning TypeError: context is undefined.

Vee-Kicks avatar Apr 02 '16 12:04 Vee-Kicks

Same issue on: Windows 7 Firefox 45.0.1 Vimperator 3.12.0

clancyian avatar Apr 06 '16 10:04 clancyian

Same issue (begin some weeks ago):

Vimperator: 3.12.0 (created: 2016/02/28 22:07:56) Firefox: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0

componhead avatar Apr 06 '16 12:04 componhead

I'm on a very up-to-date archlinux and I'm experiencing this issue. Sadly, I was unable to fix it either by:

  • Creating a new firefox profile.
  • Moving to a new .mozilla directory.
  • Creating a new system user, and so a 100% clean home directory,

memeplex avatar Apr 18 '16 02:04 memeplex

Same here: Arch Linux 4.5.0 Firefox 45.0.2 Vimperator 3.12.0

Alaanor avatar Apr 18 '16 15:04 Alaanor

Well since everyone else is here, I'll confirm. Arch linux 4.5.0 & Arch Linux 4.4.5 Firefox 45.0.2 Vimperator: 3.12.0

4e554c4c avatar Apr 18 '16 17:04 4e554c4c

Thanks for reports and interest, but please use the reaction system instead of posting very similar setups. OS doesn't matter in this case, and certainly not which "version" of Arch.

timss avatar Apr 18 '16 17:04 timss

I'm experiencing quite the same problem.

patsimm avatar Apr 19 '16 12:04 patsimm

Come on, we already have enough confirmations on this. Read my comment and stop spamming participants with notifications.

timss avatar Apr 20 '16 08:04 timss

I also get this error on :tabs. Firefox 45.0.2 Vimperator 3.12.0 EDIT: Replied because this command was not mentioned before.

Vtec234 avatar Apr 23 '16 09:04 Vtec234

@timss - would you consider locking replies to this issue?

liamdawson avatar Apr 23 '16 13:04 liamdawson

So I did some searching in the developer section of Firefox versions and found this.

WebIDL constructors could be called without the new operator in chrome context. Now such code will raise a TypeError as in Web content since Firefox 30. For example, var req = XMLHttpRequest(); needs to be var req = new XMLHttpRequest();.

Located here: https://developer.mozilla.org/en-US/Firefox/Releases/45

I'm not familiar with JS nor plugin development, but I think this is worth investigating. It appears to be a simple fix, at least in the given example, and the error matches the one that is thrown in vimperator.

EDIT:

I did some poking around and wasn't able to produce anything that worked. I'm wondering if there's a way to output errors to a log. I've yet to find the proper place to try the changes to the constructors, but again I think this is related to my lack of understanding of the extension. Anyways, I'll post again when I have some more time and make progress.

phantom-voltage avatar Apr 24 '16 18:04 phantom-voltage

@liamdawson I don't think that's a good idea, because it'll also stop comments such as the one by @phantom-voltage. Maybe if it was a filter/allow-only option.

Next "+1" or similar comment will probably be deleted, though.

timss avatar Apr 26 '16 15:04 timss

Arch Linux 4.4.5-1 Firefox 45.0.1 Vimperator 3.12.0

I didn't get error messages in the mini-buffer (where typing in the commands). However, none of the above commands work anymore, while no errors or other messages appeared.

oracleyue avatar Apr 28 '16 22:04 oracleyue

The 3.13.0 version resolve the issue ONLY if builded from the source (unsigned extension). The official release (signed extension) doesn't work.

Vimperator: 3.13.0 (created: 2016/05/03 15:10:44) Firefox: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:46.0) Gecko/20100101 Firefox/46.0

componhead avatar May 03 '16 13:05 componhead

That sounds odd, @pippocode

# built from 3.13.0 git tag
$ zipcmp vimperator-3.13.0.xpi amo/vimperator-3.13.0-fx.xpi 
--- vimperator-3.13.0.xpi
+++ amo/vimperator-3.13.0-fx.xpi
+      18228 6c8f45d4 META-INF/manifest.mf
+       4178 57b78c3e META-INF/mozilla.rsa
+        121 4384b4e7 META-INF/mozilla.sf
+      77061 aa21ecb2 common/content/liberator.js
-      77061 b1bdfee6 common/content/liberator.js

$ diff <(unzip -p vimperator-3.13.0.xpi common/content/liberator.js) <(unzip -p amo/vimperator-3.13.0-fx.xpi common/content/liberator.js)
140c140
<     version: "3.13.0 (created: 2016/05/03 16:05:31)", // these VERSION and DATE tokens are replaced by the Makefile
---
>     version: "3.13.0 (created: 2016/04/28 00:20:02)", // these VERSION and DATE tokens are replaced by the Makefile

The rest of the files just contain signatures and hash sums.

I can test later, but are you sure it's not something on your part?

timss avatar May 03 '16 14:05 timss

Really odd. I don't know why but the behaviour is the same. I install official plugin (from https://addons.mozilla.org/en-US/firefox/addon/vimperator/) OVERWRITING the builded, and it doesn't work anymore (in inverse direction it works) O_o Without any other extension too. It is not a big problem but I must disable xpinstall.signatures.required

I tested only the :bmarks -T xxxx

componhead avatar May 03 '16 15:05 componhead