Merge pull request #1918 from kirkouimet/master
Fixing an issue compiling on Windows and improving webview interopability with other JavaScript libraries
This commit is contained in:
commit
d12697c657
2 changed files with 3 additions and 2 deletions
|
@ -46,7 +46,8 @@ std::vector<CrashReporter::UploadReportResult>
|
||||||
CrashReporter::GetUploadedReports(const std::string& path) {
|
CrashReporter::GetUploadedReports(const std::string& path) {
|
||||||
std::string file_content;
|
std::string file_content;
|
||||||
std::vector<CrashReporter::UploadReportResult> result;
|
std::vector<CrashReporter::UploadReportResult> result;
|
||||||
if (base::ReadFileToString(base::FilePath(path), &file_content)) {
|
if (base::ReadFileToString(base::FilePath::FromUTF8Unsafe(path),
|
||||||
|
&file_content)) {
|
||||||
std::vector<std::string> reports;
|
std::vector<std::string> reports;
|
||||||
base::SplitString(file_content, '\n', &reports);
|
base::SplitString(file_content, '\n', &reports);
|
||||||
for (const std::string& report : reports) {
|
for (const std::string& report : reports) {
|
||||||
|
|
|
@ -173,7 +173,7 @@ class WebViewImpl
|
||||||
params =
|
params =
|
||||||
instanceId: @viewInstanceId
|
instanceId: @viewInstanceId
|
||||||
userAgentOverride: @userAgentOverride
|
userAgentOverride: @userAgentOverride
|
||||||
for attributeName, attribute of @attributes
|
for own attributeName, attribute of @attributes
|
||||||
params[attributeName] = attribute.getValue()
|
params[attributeName] = attribute.getValue()
|
||||||
# When the WebView is not participating in layout (display:none)
|
# When the WebView is not participating in layout (display:none)
|
||||||
# then getBoundingClientRect() would report a width and height of 0.
|
# then getBoundingClientRect() would report a width and height of 0.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue