13

I think I found a bug in Chrome, and I kind of have no idea where to post but it may as well be a misconfiguration on my part or something.

Here is the issue. I'll include a screenshot which should explain the main idea of the issue.

enter image description here
(Click image to enlarge)

JavaScript is enabled and yet http://enable-javascript.com acts as if it weren't.

It's kind of vague though. Luckily Google Chrome's console makes everything clear.

Blocked script execution in 'http://enable-javascript.com/' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

...but this is just Google Chrome's paranoia since there is no frame elements and "sandbox" is never mentioned in the code.

Any pointers would be helpful!

Update:

  • Issue not present in incognito mode
  • Disabled extensions did not help
  • Reinstalling system did not help
  • This affects all webkit browsers (Opera, Chrome, Chromium)

If I navigate to the URL directly, the issue is not present, however if I click a link to get to that page - the issue is in fact present. Refreshing on a dysfunctional page does not fix a thing.

karel
  • 13,390
  • 26
  • 45
  • 52
Slava Knyazev
  • 577
  • 3
  • 8
  • 23
  • Please Confirm the OS and chrome versions as the "current" stable / beta / unstable (canary ) have a different layout for that part of the advanced settings.. – linuxdev2013 Jun 04 '15 at 00:49
  • Note that 'Sandboxing' is isolating executing code so that it cannot interact with other executing code. Sandboxing protects your system from malicious scripts, by keeping the script from doing things like reading files from your harddisk, reading/modifying memory from other processes or tabs. These days, Java, Javascript, and Flash generally run in a sandbox to protect users from drive-by-download trojans. IFrames are often dangerous, because they can dynamically inject foreign content into a page, so it makes sense to not allow their contents to execute arbitrary script code. – Frank Thomas Jun 04 '15 at 01:33
  • what are all those plugins you have installed in the top right corner? are any of them blocking javascript? – Russell Uhl Jun 04 '15 at 12:23
  • 1
    @RussellUhl Well this is interesting. I went into incognito mode (no plugins) and it works fine. I will try to find the one causing the issue and update. – Slava Knyazev Jun 04 '15 at 21:16
  • @RussellUhl Weird. I disabled all plugins, refreshed but the issue persists. – Slava Knyazev Jun 04 '15 at 21:20
  • @linuxdev2013 Running current stable build on Linux Mint 17.1 64 bit – Slava Knyazev Jun 04 '15 at 21:20
  • Not to be a pain but mint has 2 versions on it at the moment 42.xx or 43.xx – linuxdev2013 Jun 05 '15 at 10:48
  • I assume "All of them" includes adblock? Make sure you disabled the plugins ENTIRELY, and not just "enabled for this page" or whatever. – Russell Uhl Jun 05 '15 at 12:59
  • oh. also open developer tools and Ctrl+F5 to do a full refresh, and see if any errors open up in the console – Russell Uhl Jun 05 '15 at 13:00
  • @linuxdev2013 Aye? "Our latest release is Linux Mint 17.1, codename "Rebecca"." http://www.linuxmint.com/download.php – Slava Knyazev Jun 05 '15 at 15:27
  • @RussellUhl Tried that, issue persists with same console output. – Slava Knyazev Jun 05 '15 at 15:28
  • any similarity in youtube ? (using @RussellUhl's test) – linuxdev2013 Jun 05 '15 at 15:40
  • @linuxdev2013 Strangely enough, youtube does not have this issue, at all. – Slava Knyazev Jun 05 '15 at 17:19
  • With all plugins enabled? – linuxdev2013 Jun 05 '15 at 17:24
  • @linuxdev2013 Exactly. I think this eliminates the possibility that plugins are causing it. – Slava Knyazev Jun 05 '15 at 17:58
  • can you provide output from '(dmesg |grep 'error|fatal|warning' ; apt policy google-chrome-\* ; sudo grep -i 'error|fatal|warning' /var/log/{syslog,messages} ) |pastebin please – linuxdev2013 Jun 05 '15 at 18:01
  • @linuxdev2013 I think I ran it right.. http://paste.linuxmint.com/view/qokz/ – Slava Knyazev Jun 05 '15 at 18:33
  • 4
    Make sure your ISP or proxy does not add frames to web pages you visit. Open developer tools, go to the `Elements`/`Sources` tab to view the source, search for the word `frame`. – aff Jun 15 '15 at 09:01
  • @aff Did that already. "frame" is not mentioned anywhere in the code. – Slava Knyazev Jun 15 '15 at 16:06
  • Try this: Save [this](http://pastebin.com/MUFsyEVK) as a basic html file on your computer and open it. Let me know what it says. This is about as basic of a Javascript check as you can get. The page you've been using has jQuery, Lightbox, and Google Analytics involved which could be causing issues. – kazoni Jun 18 '15 at 14:47

2 Answers2

2

On Windows you can use this command:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --args --allow-scripts
Ogglas
  • 1,754
  • 5
  • 20
  • 35
  • OP is using Linux Mint not a Windows – clhy May 17 '16 at 07:41
  • 1
    @The_IT_Guy_You_Don't_Like Correct but I only found this thread when searching for this error. I hope my answer will help other Windows users like myself. – Ogglas May 17 '16 at 07:44
1

Try running chrome from terminal:

./chrome.exe --args --allow-scripts

Yubin Lee
  • 173
  • 1
  • 12