| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent eeef09a commit 8ffac63
11 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -102,8 +102,12 @@ in a known order. Equivalent to the `SkColor` type. | |||
| 102 | 102 | ||
| 103 | 103 | (string) | |
| 104 | 104 | The path to a separate executable that will be launched for sub-processes. | |
| 105 | - By default the browser process executable is used. See the comments on | ||
| 106 | - CefExecuteProcess() for details. Also configurable using the --browser-subprocess-path switch. | ||
| 105 | + If this value is empty on Windows or Linux then the main process executable | ||
| 106 | + will be used. If this value is empty on macOS then a helper executable must | ||
| 107 | + exist at "Contents/Frameworks/<app> Helper.app/Contents/MacOS/<app> Helper" | ||
| 108 | + in the top-level app bundle. See the comments on CefExecuteProcess() for | ||
| 109 | + details. Also configurable using the "browser-subprocess-path" command-line | ||
| 110 | + switch. | ||
| 107 | 111 | ||
| 108 | 112 | ||
| 109 | 113 | ### cache_path | |
@@ -177,6 +181,16 @@ Description from upstream CEF: | |||
| 177 | 181 | > CefRunMessageLoop() function or multi_threaded_message_loop if possible. | |
| 178 | 182 | ||
| 179 | 183 | ||
| 184 | + ### framework_dir_path | ||
| 185 | + | ||
| 186 | + The path to the CEF framework directory on macOS. If this value is empty | ||
| 187 | + then the framework must exist at "Contents/Frameworks/Chromium Embedded | ||
| 188 | + Framework.framework" in the top-level app bundle. Also configurable using | ||
| 189 | + the "framework-dir-path" command-line switch. | ||
| 190 | + | ||
| 191 | + See also Issue #304. | ||
| 192 | + | ||
| 193 | + | ||
| 180 | 194 | ### ignore_certificate_errors | |
| 181 | 195 | ||
| 182 | 196 | (bool) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -85,11 +85,6 @@ of the specified value will be used. The alpha component must greater than | |||
| 85 | 85 | 0 to enable use of the background color but will be otherwise ignored. | |
| 86 | 86 | ||
| 87 | 87 | ||
| 88 | - ### caret_browsing_enabled | ||
| 89 | - | ||
| 90 | - (bool) Controls whether the caret position will be drawn. Also configurable using the --enable-caret-browsing switch. | ||
| 91 | - | ||
| 92 | - | ||
| 93 | 88 | ### databases_disabled | |
| 94 | 89 | ||
| 95 | 90 | (bool) Controls whether databases can be used. Also configurable using the --disable-databases switch. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,6 +56,7 @@ cdef extern from "include/internal/cef_types.h": | |||
| 56 | 56 | int windowless_rendering_enabled | |
| 57 | 57 | int no_sandbox | |
| 58 | 58 | int external_message_pump | |
| 59 | + cef_string_t framework_dir_path | ||
| 59 | 60 | ||
| 60 | 61 | ctypedef struct CefBrowserSettings: | |
| 61 | 62 | cef_string_t accept_language_list | |
@@ -77,7 +78,6 @@ cdef extern from "include/internal/cef_types.h": | |||
| 77 | 78 | cef_state_t javascript_close_windows | |
| 78 | 79 | cef_state_t javascript_access_clipboard | |
| 79 | 80 | cef_state_t javascript_dom_paste | |
| 80 | - cef_state_t caret_browsing | ||
| 81 | 81 | cef_state_t plugins | |
| 82 | 82 | cef_state_t universal_access_from_file_urls | |
| 83 | 83 | cef_state_t file_access_from_file_urls | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,6 +54,9 @@ | |||
| 54 | 54 | // information; default to "CEF"> | |
| 55 | 55 | // ExternalHandler=<Windows only; Name of the external handler exe to use | |
| 56 | 56 | // instead of re-launching the main exe; default to empty> | |
| 57 | + // BrowserCrashForwardingEnabled=<macOS only; True if browser process crashes | ||
| 58 | + // should be forwarded to the system crash | ||
| 59 | + // reporter; default to false> | ||
| 57 | 60 | // ServerURL=<crash server URL; default to empty> | |
| 58 | 61 | // RateLimitEnabled=<True if uploads should be rate limited; default to true> | |
| 59 | 62 | // MaxUploadsPerDay=<Max uploads per 24 hours, used if rate limit is enabled; | |
@@ -85,6 +88,12 @@ | |||
| 85 | 88 | // directory. On Linux the CefSettings.browser_subprocess_path value will be | |
| 86 | 89 | // used. On macOS the existing subprocess app bundle will be used. | |
| 87 | 90 | // | |
| 91 | + // If "BrowserCrashForwardingEnabled" is set to true on macOS then browser | ||
| 92 | + // process crashes will be forwarded to the system crash reporter. This results | ||
| 93 | + // in the crash UI dialog being displayed to the user and crash reports being | ||
| 94 | + // logged under "~/Library/Logs/DiagnosticReports". Forwarding of crash reports | ||
| 95 | + // from non-browser processes and Debug builds is always disabled. | ||
| 96 | + // | ||
| 88 | 97 | // If "ServerURL" is set then crashes will be uploaded as a multi-part POST | |
| 89 | 98 | // request to the specified URL. Otherwise, reports will only be stored locally | |
| 90 | 99 | // on disk. | |
@@ -129,7 +138,7 @@ bool CefCrashReportingEnabled(); | |||
| 129 | 138 | /// | |
| 130 | 139 | // Sets or clears a specific key-value pair from the crash metadata. | |
| 131 | 140 | /// | |
| 132 | - /*--cef()--*/ | ||
| 141 | + /*--cef(optional_param=value)--*/ | ||
| 133 | 142 | void CefSetCrashKeyValue(const CefString& key, const CefString& value); | |
| 134 | 143 | ||
| 135 | 144 | #endif // CEF_INCLUDE_CEF_CRASH_UTIL_H_ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -57,22 +57,34 @@ class CefResponseFilter : public virtual CefBase { | |||
| 57 | 57 | virtual bool InitFilter() =0; | |
| 58 | 58 | ||
| 59 | 59 | /// | |
| 60 | - // Called to filter a chunk of data. |data_in| is the input buffer containing | ||
| 61 | - // |data_in_size| bytes of pre-filter data (|data_in| will be NULL if | ||
| 62 | - // |data_in_size| is zero). |data_out| is the output buffer that can accept up | ||
| 63 | - // to |data_out_size| bytes of filtered output data. Set |data_in_read| to the | ||
| 64 | - // number of bytes that were read from |data_in|. Set |data_out_written| to | ||
| 65 | - // the number of bytes that were written into |data_out|. If some or all of | ||
| 66 | - // the pre-filter data was read successfully but more data is needed in order | ||
| 67 | - // to continue filtering (filtered output is pending) return | ||
| 68 | - // RESPONSE_FILTER_NEED_MORE_DATA. If some or all of the pre-filter data was | ||
| 69 | - // read successfully and all available filtered output has been written return | ||
| 70 | - // RESPONSE_FILTER_DONE. If an error occurs during filtering return | ||
| 71 | - // RESPONSE_FILTER_ERROR. This method will be called repeatedly until there is | ||
| 72 | - // no more data to filter (resource response is complete), |data_in_read| | ||
| 73 | - // matches |data_in_size| (all available pre-filter bytes have been read), and | ||
| 74 | - // the method returns RESPONSE_FILTER_DONE or RESPONSE_FILTER_ERROR. Do not | ||
| 75 | - // keep a reference to the buffers passed to this method. | ||
| 60 | + // Called to filter a chunk of data. Expected usage is as follows: | ||
| 61 | + // | ||
| 62 | + // A. Read input data from |data_in| and set |data_in_read| to the number of | ||
| 63 | + // bytes that were read up to a maximum of |data_in_size|. |data_in| will | ||
| 64 | + // be NULL if |data_in_size| is zero. | ||
| 65 | + // B. Write filtered output data to |data_out| and set |data_out_written| to | ||
| 66 | + // the number of bytes that were written up to a maximum of | ||
| 67 | + // |data_out_size|. If no output data was written then all data must be | ||
| 68 | + // read from |data_in| (user must set |data_in_read| = |data_in_size|). | ||
| 69 | + // C. Return RESPONSE_FILTER_DONE if all output data was written or | ||
| 70 | + // RESPONSE_FILTER_NEED_MORE_DATA if output data is still pending. | ||
| 71 | + // | ||
| 72 | + // This method will be called repeatedly until the input buffer has been | ||
| 73 | + // fully read (user sets |data_in_read| = |data_in_size|) and there is no | ||
| 74 | + // more input data to filter (the resource response is complete). This method | ||
| 75 | + // may then be called an additional time with an empty input buffer if the | ||
| 76 | + // user filled the output buffer (set |data_out_written| = |data_out_size|) | ||
| 77 | + // and returned RESPONSE_FILTER_NEED_MORE_DATA to indicate that output data is | ||
| 78 | + // still pending. | ||
| 79 | + // | ||
| 80 | + // Calls to this method will stop when one of the following conditions is met: | ||
| 81 | + // | ||
| 82 | + // A. There is no more input data to filter (the resource response is | ||
| 83 | + // complete) and the user sets |data_out_written| = 0 or returns | ||
| 84 | + // RESPONSE_FILTER_DONE to indicate that all data has been written, or; | ||
| 85 | + // B. The user returns RESPONSE_FILTER_ERROR to indicate an error. | ||
| 86 | + // | ||
| 87 | + // Do not keep a reference to the buffers passed to this method. | ||
| 76 | 88 | /// | |
| 77 | 89 | /*--cef(optional_param=data_in,default_retval=RESPONSE_FILTER_ERROR)--*/ | |
| 78 | 90 | virtual FilterStatus Filter(void* data_in, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -166,12 +166,23 @@ typedef struct _cef_settings_t { | |||
| 166 | 166 | ||
| 167 | 167 | /// | |
| 168 | 168 | // The path to a separate executable that will be launched for sub-processes. | |
| 169 | - // By default the browser process executable is used. See the comments on | ||
| 170 | - // CefExecuteProcess() for details. Also configurable using the | ||
| 171 | - // "browser-subprocess-path" command-line switch. | ||
| 169 | + // If this value is empty on Windows or Linux then the main process executable | ||
| 170 | + // will be used. If this value is empty on macOS then a helper executable must | ||
| 171 | + // exist at "Contents/Frameworks/<app> Helper.app/Contents/MacOS/<app> Helper" | ||
| 172 | + // in the top-level app bundle. See the comments on CefExecuteProcess() for | ||
| 173 | + // details. Also configurable using the "browser-subprocess-path" command-line | ||
| 174 | + // switch. | ||
| 172 | 175 | /// | |
| 173 | 176 | cef_string_t browser_subprocess_path; | |
| 174 | 177 | ||
| 178 | + /// | ||
| 179 | + // The path to the CEF framework directory on macOS. If this value is empty | ||
| 180 | + // then the framework must exist at "Contents/Frameworks/Chromium Embedded | ||
| 181 | + // Framework.framework" in the top-level app bundle. Also configurable using | ||
| 182 | + // the "framework-dir-path" command-line switch. | ||
| 183 | + /// | ||
| 184 | + cef_string_t framework_dir_path; | ||
| 185 | + | ||
| 175 | 186 | /// | |
| 176 | 187 | // Set to true (1) to have the browser process message loop run in a separate | |
| 177 | 188 | // thread. If false (0) than the CefDoMessageLoopWork() function must be | |
@@ -563,12 +574,6 @@ typedef struct _cef_browser_settings_t { | |||
| 563 | 574 | /// | |
| 564 | 575 | cef_state_t javascript_dom_paste; | |
| 565 | 576 | ||
| 566 | - /// | ||
| 567 | - // Controls whether the caret position will be drawn. Also configurable using | ||
| 568 | - // the "enable-caret-browsing" command-line switch. | ||
| 569 | - /// | ||
| 570 | - cef_state_t caret_browsing; | ||
| 571 | - | ||
| 572 | 577 | /// | |
| 573 | 578 | // Controls whether any plugins will be loaded. Also configurable using the | |
| 574 | 579 | // "disable-plugins" command-line switch. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -705,7 +705,6 @@ struct CefBrowserSettingsTraits { | |||
| 705 | 705 | target->javascript_close_windows = src->javascript_close_windows; | |
| 706 | 706 | target->javascript_access_clipboard = src->javascript_access_clipboard; | |
| 707 | 707 | target->javascript_dom_paste = src->javascript_dom_paste; | |
| 708 | - target->caret_browsing = src->caret_browsing; | ||
| 709 | 708 | target->plugins = src->plugins; | |
| 710 | 709 | target->universal_access_from_file_urls = | |
| 711 | 710 | src->universal_access_from_file_urls; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -119,6 +119,10 @@ cdef void SetApplicationSettings( | |||
| 119 | 119 | elif key == "external_message_pump": | |
| 120 | 120 | cefAppSettings.external_message_pump = \ | |
| 121 | 121 | int(appSettings[key]) | |
| 122 | + elif key == "framework_dir_path": | ||
| 123 | + cefString = new CefString(&cefAppSettings.framework_dir_path) | ||
| 124 | + PyToCefStringPointer(appSettings[key], cefString) | ||
| 125 | + del cefString | ||
| 122 | 126 | else: | |
| 123 | 127 | raise Exception("Invalid appSettings key: %s" % key) | |
| 124 | 128 | ||
@@ -214,14 +218,10 @@ cdef void SetBrowserSettings( | |||
| 214 | 218 | cefBrowserSettings.javascript_dom_paste = ( | |
| 215 | 219 | cef_types.STATE_ENABLED) | |
| 216 | 220 | elif key == "caret_browsing_enabled": | |
| 217 | - if browserSettings[key]: | ||
| 218 | - cefBrowserSettings.caret_browsing = ( | ||
| 219 | - cef_types.STATE_ENABLED) | ||
| 220 | - else: | ||
| 221 | - cefBrowserSettings.caret_browsing = ( | ||
| 222 | - cef_types.STATE_DISABLED) | ||
| 221 | + # Keep the key for BC | ||
| 222 | + Debug("DEPRECATED: 'caret_browsing_enabled' setting") | ||
| 223 | 223 | elif key == "java_disabled": | |
| 224 | - # Keep for BC, just log info - no error | ||
| 224 | + # Keep the key for BC | ||
| 225 | 225 | Debug("DEPRECATED: 'java_disabled' setting") | |
| 226 | 226 | elif key == "plugins_disabled": | |
| 227 | 227 | if browserSettings[key]: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,16 +35,16 @@ | |||
| 35 | 35 | #ifndef CEF_INCLUDE_CEF_VERSION_H_ | |
| 36 | 36 | #define CEF_INCLUDE_CEF_VERSION_H_ | |
| 37 | 37 | ||
| 38 | - #define CEF_VERSION "3.2883.1553.g80bd606" | ||
| 38 | + #define CEF_VERSION "3.2924.1571.gcdcdfa9" | ||
| 39 | 39 | #define CEF_VERSION_MAJOR 3 | |
| 40 | - #define CEF_COMMIT_NUMBER 1553 | ||
| 41 | - #define CEF_COMMIT_HASH "80bd6062d7ac4c5fd1d7bc7ee78e8e59d4a040aa" | ||
| 40 | + #define CEF_COMMIT_NUMBER 1571 | ||
| 41 | + #define CEF_COMMIT_HASH "cdcdfa99913a01f3617a0d25a2e2f2ed145987bd" | ||
| 42 | 42 | #define COPYRIGHT_YEAR 2017 | |
| 43 | 43 | ||
| 44 | - #define CHROME_VERSION_MAJOR 55 | ||
| 44 | + #define CHROME_VERSION_MAJOR 56 | ||
| 45 | 45 | #define CHROME_VERSION_MINOR 0 | |
| 46 | - #define CHROME_VERSION_BUILD 2883 | ||
| 47 | - #define CHROME_VERSION_PATCH 87 | ||
| 46 | + #define CHROME_VERSION_BUILD 2924 | ||
| 47 | + #define CHROME_VERSION_PATCH 76 | ||
| 48 | 48 | ||
| 49 | 49 | #define DO_MAKE_STRING(p) #p | |
| 50 | 50 | #define MAKE_STRING(p) DO_MAKE_STRING(p) | |
@@ -63,13 +63,13 @@ extern "C" { | |||
| 63 | 63 | // universal hash value will change if any platform is affected whereas the | |
| 64 | 64 | // platform hash values will change only if that particular platform is | |
| 65 | 65 | // affected. | |
| 66 | - #define CEF_API_HASH_UNIVERSAL "87b7eefcb86c87b28f86bfd7919f7d7a6cffc0d8" | ||
| 66 | + #define CEF_API_HASH_UNIVERSAL "66de193ba22e1d92a99bb29d60f3107709aeefda" | ||
| 67 | 67 | #if defined(OS_WIN) | |
| 68 | - #define CEF_API_HASH_PLATFORM "00823905486d7b7222da5654fe35d2d15f65543a" | ||
| 68 | + #define CEF_API_HASH_PLATFORM "8055740cd08db66cefe838a826dc90806fadfb33" | ||
| 69 | 69 | #elif defined(OS_MACOSX) | |
| 70 | - #define CEF_API_HASH_PLATFORM "f0180f006643782254250f34e858b98110a40e6e" | ||
| 70 | + #define CEF_API_HASH_PLATFORM "12d8ab423df369b68d37c3667123a1812bc0d345" | ||
| 71 | 71 | #elif defined(OS_LINUX) | |
| 72 | - #define CEF_API_HASH_PLATFORM "14b19454a4231fa10a77b8955954dc95f073af6b" | ||
| 72 | + #define CEF_API_HASH_PLATFORM "86ab23c0d7dafbdff7f66764cf8dac5ec1712af4" | ||
| 73 | 73 | #endif | |
| 74 | 74 | ||
| 75 | 75 | // Returns CEF version information for the libcef library. The |entry| | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,6 +59,7 @@ | |||
| 59 | 59 | # Command line args variables | |
| 60 | 60 | DEBUG_FLAG = False | |
| 61 | 61 | FAST_FLAG = False | |
| 62 | + CLEAN_FLAG = False | ||
| 62 | 63 | KIVY_FLAG = False | |
| 63 | 64 | REBUILD_CPP = False | |
| 64 | 65 | VERSION = "" | |
@@ -74,10 +75,10 @@ def main(): | |||
| 74 | 75 | sys.exit(1) | |
| 75 | 76 | print("[build.py] PYVERSION = %s" % PYVERSION) | |
| 76 | 77 | print("[build.py] OS_POSTFIX2 = %s" % OS_POSTFIX2) | |
| 77 | - setup_environ() | ||
| 78 | - check_cython_version() | ||
| 79 | 78 | command_line_args() | |
| 79 | + check_cython_version() | ||
| 80 | 80 | check_directories() | |
| 81 | + setup_environ() | ||
| 81 | 82 | if os.path.exists(CEFPYTHON_H): | |
| 82 | 83 | fix_cefpython_h() | |
| 83 | 84 | if WINDOWS: | |
@@ -159,7 +160,7 @@ def setup_environ(): | |||
| 159 | 160 | raise Exception("Python 32-bit is not supported on Mac") | |
| 160 | 161 | os.environ["ARCHFLAGS"] = "-arch x86_64" | |
| 161 | 162 | os.environ["CEF_CCFLAGS"] += " -arch x86_64" | |
| 162 | - os.environ["CEF_LINK_FLAGS"] += " -mmacosx-version-min=10.7" | ||
| 163 | + os.environ["CEF_LINK_FLAGS"] += " -mmacosx-version-min=10.9" | ||
| 163 | 164 | ||
| 164 | 165 | # -Wno-return-type-c-linkage to ignore: | |
| 165 | 166 | # > warning: 'somefunc' has C-linkage specified, but returns | |
@@ -236,6 +237,10 @@ def command_line_args(): | |||
| 236 | 237 | FAST_FLAG = True | |
| 237 | 238 | print("[build.py] FAST mode On") | |
| 238 | 239 | ||
| 240 | + # --clean flag | ||
| 241 | + if len(sys.argv) > 1 and "--clean" in sys.argv: | ||
| 242 | + CLEAN_FLAG = True | ||
| 243 | + | ||
| 239 | 244 | # --kivy flag | |
| 240 | 245 | if len(sys.argv) > 1 and "--kivy" in sys.argv: | |
| 241 | 246 | KIVY_FLAG = True | |
@@ -372,8 +377,23 @@ def compile_ask_to_continue(): | |||
| 372 | 377 | sys.exit(1) | |
| 373 | 378 | ||
| 374 | 379 | ||
| 380 | + def clean_cpp_projects_unix(): | ||
| 381 | + delete_files_by_pattern("{0}/*.o".format(CLIENT_HANDLER_DIR)) | ||
| 382 | + delete_files_by_pattern("{0}/*.a".format(CLIENT_HANDLER_DIR)) | ||
| 383 | + | ||
| 384 | + delete_files_by_pattern("{0}/*.o".format(SUBPROCESS_DIR)) | ||
| 385 | + delete_files_by_pattern("{0}/*.a".format(SUBPROCESS_DIR)) | ||
| 386 | + delete_files_by_pattern("{0}/subprocess".format(SUBPROCESS_DIR)) | ||
| 387 | + | ||
| 388 | + delete_files_by_pattern("{0}/*.o".format(CPP_UTILS_DIR)) | ||
| 389 | + delete_files_by_pattern("{0}/*.a".format(CPP_UTILS_DIR)) | ||
| 390 | + | ||
| 391 | + | ||
| 375 | 392 | def compile_cpp_projects_unix(): | |
| 376 | 393 | print("[build.py] Compile C++ projects") | |
| 394 | + if CLEAN_FLAG: | ||
| 395 | + print("[build.py] Clean C++ projects (--clean flag passed)") | ||
| 396 | + clean_cpp_projects_unix() | ||
| 377 | 397 | ||
| 378 | 398 | # Need to allow continuing even when make fails, as it may | |
| 379 | 399 | # fail because the "public" function declaration is not yet | |
| Back | FazBrowse Home | New Git URL |
0 commit comments