Skip to content

Commit

Permalink
Merge pull request #154 from WebPlatformForEmbedded/development/webin…
Browse files Browse the repository at this point in the history
…spector

Modified WebKitBrowser plugin to set webinspector env variable for WebKit 2.28.
  • Loading branch information
Neeraj Deshpande authored Apr 13, 2022
2 parents dd84942 + 028e1b9 commit dcda4b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WebKitBrowser/WebKitImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1730,11 +1730,15 @@ static GSourceFuncs _handlerIntervention =

// WebInspector
if (_config.Inspector.Value().empty() == false) {
#ifdef WEBKIT_GLIB_API
Core::SystemInfo::SetEnvironment(_T("WEBKIT_INSPECTOR_HTTP_SERVER"), _config.Inspector.Value(), !environmentOverride);
#else
if (_config.Automation.Value()) {
Core::SystemInfo::SetEnvironment(_T("WEBKIT_INSPECTOR_SERVER"), _config.Inspector.Value(), !environmentOverride);
} else {
Core::SystemInfo::SetEnvironment(_T("WEBKIT_LEGACY_INSPECTOR_SERVER"), _config.Inspector.Value(), !environmentOverride);
}
#endif
}

// RPI mouse support
Expand Down

0 comments on commit dcda4b2

Please sign in to comment.