Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Issue 1351643003: Fix WebSpeech API for OOPIF based <webview> (Closed)

Created:
5 years, 3 months ago by lazyboy
Modified:
5 years, 2 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, darin-cc_chromium.org, jam, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix WebSpeech API for OOPIF based <webview>. In OOPIF based <webview>, BrowserPluginGuest isn't used much and the plan is to remove its usage in --site-per-process. However, the Web Speech API relies on BrowserPluginGuest to return its embedder WebContents. I've made it so that we ask for the WebContentsImpl to return its embedder or outer WebContents instead of going through BrowserPluginGuest. TBR=jam@chromium.org for chromium.fyi.json BUG=533647 Test=Try WebSpeech API from a Chrome App <webview>, with --site-per-process. This should work and not crash the browser/ process. Committed: https://crrev.com/8e16ddfdefd2d32078e178fa98df1958990d0cbd Cr-Commit-Position: refs/heads/master@{#351018}

Patch Set 1 #

Patch Set 2 : Fix. #

Patch Set 3 : enable test #

Total comments: 6

Patch Set 4 : address nits from Charlie #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -8 lines) Patch
M content/browser/speech/speech_recognition_dispatcher_host.cc View 1 2 3 1 chunk +8 lines, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.fyi.json View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
lazyboy
5 years, 3 months ago (2015-09-18 22:04:19 UTC) #2
Charlie Reis
Thanks, and sorry for the long delay! LGTM with nits. https://codereview.chromium.org/1351643003/diff/40001/content/browser/speech/speech_recognition_dispatcher_host.cc File content/browser/speech/speech_recognition_dispatcher_host.cc (right): https://codereview.chromium.org/1351643003/diff/40001/content/browser/speech/speech_recognition_dispatcher_host.cc#newcode106 ...
5 years, 3 months ago (2015-09-24 05:09:14 UTC) #3
lazyboy
https://codereview.chromium.org/1351643003/diff/40001/content/browser/speech/speech_recognition_dispatcher_host.cc File content/browser/speech/speech_recognition_dispatcher_host.cc (right): https://codereview.chromium.org/1351643003/diff/40001/content/browser/speech/speech_recognition_dispatcher_host.cc#newcode106 content/browser/speech/speech_recognition_dispatcher_host.cc:106: // If the speech API request was from an ...
5 years, 2 months ago (2015-09-28 03:37:16 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1351643003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1351643003/60001
5 years, 2 months ago (2015-09-28 03:37:32 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-09-28 03:42:06 UTC) #8
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 03:42:44 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8e16ddfdefd2d32078e178fa98df1958990d0cbd
Cr-Commit-Position: refs/heads/master@{#351018}

Powered by Google App Engine
This is Rietveld 408576698