- changed status to wontfix
Fix documentation error: no disable-javascript command-line flag
I have tried to disable javascript via command line switch disable-javascript. But it isnt working. I am using cefsharp wpf which is using cef3.
Comments (11)
-
-
To be fair, the documentation says there is such a flag.
http://magpcss.org/ceforum/apidocs3/projects/%28default%29/_cef_browser_settings_t.html#javascript
-
- changed title to Fix documentation error: no disable-javascript command-line flag
- marked as trivial
-
@amaitland: Thanks for pointing that out, we should fix the documentation.
-
- changed status to open
-
Out of curiosity are the other javascript related command line options referenced in the doc valid? e.g.
disable-javascript-close-windows
? -
Yes, the other flags are implemented in CEF (libcef/common/cef_switches.cc). The "disable-javascript" flag was likely implemented in Chromium at one time. We could implement support for it in CEF (so that it works again), but it's probably better to retire flags that Chromium no longer supports.
-
Sounds reasonable. Thanks for clarifying
(One day
bitbucket
will implement a web based code search feature).Just looking at the switches file now, is
enable-npapi
still relevant inmaster
? (off topic, happy to discuss onceforum
). -
is enable-npapi still relevant in master?
Well, Chromium hasn't deleted the ContentBrowserClient::IsNPAPIEnabled() method yet, so it might still do something :)
-
- changed component to Docs
- edited description
-
- changed status to resolved
--disable-javascript
flag restored in master revision 64cd460. - Log in to comment
There is no such command-line flag.