Declaring 'Block' variable in Javascript
When declaring a variable called 'Block' (with the capital) in Javascript, Firefox gives an error 'redeclaration of const. Block'. This problem goes away when I disable Ubiquity.
I'm kinda disappointed that Ubiquity apparently interferes with my Javascript.
PS
The script-tag is within the body-tags.
I'm kinda disappointed that Ubiquity apparently interferes with my Javascript.
PS
The script-tag is within the body-tags.
3
people have this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
-
Inappropriate?Really?
This is in javascript that's in a page?
I'm very very surprised that Ubiquity would interfere with that, since all the Ubiquity javascript is running in chrome, not in content. It should be entirely separate from anything in the page.
And the transparent overlay is a separate window object, so it shouldn't interfere with anything in the page either.
I don't know what could be going on. If you have a page up with this Block variable, could you please post a link to it here, so that we can load it up and see if we get the same problem with Ubiquity installed / don't get it with Ubiquity uninstalled ?
I’m confused
-
Could you please check the comment below? -
Inappropriate?Hi,
Thanks for responding. This following html reproduces the bug:
<html>
<head>
<title>Ubiquity bug</title>
</head>
<body>
< script type="text/javascript">
var Block = 'hello';
alert(Block);
< /script>
</body>
</html>
(script-tags are escaped with a space in order to be able to post it here)
With Ubiquity disabled I get an alert box, with it enabled it doesn't appear. -
Inappropriate?The easiest way to reproduce is to type
javascript:alert(typeof Block)
into the Location Bar and press enter, from any web page. It should return "undefined", not "object", unless "Block" is already declared by the web page.
I’m upset
-
!
Loading Profile...




