New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
start to fix let statements to make vimp compatible with FF 35.0a1 #40
Conversation
@@ -1466,7 +1466,7 @@ const CommandLine = Module("commandline", { | |||
function (args) { | |||
var str = args.literalArg; | |||
|
|||
let str = CommandLine.echoArgumentToString(str, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to just change the var
up top to be let
.
This does indeed work, however I get this error when opening Firefox:
|
@crossroads1112 probably another variable that needs to get fixed. |
@crossroads1112 do you have a file name and/or a line number for this error? |
@Segaja I don't. How should I go about debugging? The only thing I did was clone the repo and manually add the changes detailed in this pull request. |
I'm lost aswell. I fixed the startup errors because the startup log lists them with file name and sometimes event line numbers, but I'm lost of no details are given. Maybe someone who knows the code better can have a look. |
Regardless, it's a good workaround. Vimperator works at least |
i fixed some another variable . diff --git a/common/content/commands.js b/common/content/commands.js
index 89ff540..07d3667 100644
--- a/common/content/commands.js
+++ b/common/content/commands.js
@@ -548,6 +548,8 @@ const Commands = Module("commands", {
var onlyArgumentsRemaining = allowUnknownOptions || (options.length == 0 && subCommands.length == 0) || false; // after a -- has been found
var arg = null;
var count = 0; // the length of the argument
+ var quote = null;
+ var error = null;
var i = 0;
var completeOpts;
@@ -692,7 +694,7 @@ const Commands = Module("commands", {
}
// if not an option, treat this token as an argument
- let [count, arg, quote, error] = getNextArg(sub);
+ [count, arg, quote, error] = getNextArg(sub);
liberator.assert(!error, error);
if (complete) {
diff --git a/common/content/options.js b/common/content/options.js
index 78417ff..b52ce21 100644
--- a/common/content/options.js
+++ b/common/content/options.js
@@ -123,11 +123,11 @@ const Option = Class("Option", {
else
scope = this.scope;
+ let value;
// Options with a custom getter are always responsible for returning a meaningful value
if (this.getter)
return liberator.trapErrors(this.getter, this, value);
- let value;
if (liberator.has("tabs") && (scope & Option.SCOPE_LOCAL))
value = tabs.options[this.name];
if ((scope & Option.SCOPE_GLOBAL) && (value == undefined)) |
@caisui That fixed the startup errors |
Thanks @caisui . I will add these changes to my PR later today. |
Not sure if this is related but on when trying to use :back on some websites I get the following error:
Unfortunately that is all it shows me. Is there a log I can look at to get the full error? EDIT: No discernible pattern as to which webpages this happens on |
@crossroads1112 check out |
Thanks @gkatsev The error is as follows:
|
There is some part of the error message missing at the end. For now the line in the code looks ok: https://github.com/vimperator/vimperator-labs/blob/master/common/content/history.js#L56-L67 If you can show us the end of the error message maybe it will help. |
That was the end of the error message. |
Sorry, I only saw this thread now. Shall I still pull the request? Does it seem to work fine (apart the maybe unrelated :back problem)? BTW: Some more information, which Mozilla sent to me: [Action Required] Firefox 35 compatibility problems with your add-onHello, As part of recent ES6 compliance efforts, the semantics of the
This means that, as of Firefox 35, none of the following are function f(foo) { { {
You are receiving this email because the following add-on fall awry of the first class of new restrictions in the following files. Note that the second class of errors are only detectable during runtime, and may exist in other files or add-ons. • https://addons.mozilla.org/addon/vimperator/ common/content/commandline.js If you need further assistance with these issues, please visit the add-ons forums https://forums.mozilla.org/addons, the #extdev IRC channel irc://irc.mozilla.org/extdev, or Stack Overflow http://stackoverflow.com/ Thanks, [1] https://bugzil.la/1001090So this will probably fix all that? |
Yes, you still should. Even if the back problem isn't unrelated, this pull request still fixes most of it |
start to fix let statements to make vimp compatible with FF 35.0a1
start fixing issues that came up with FF bug https://bugzilla.mozilla.org/show_bug.cgi?id=1001090