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

Issue 177553002: Use V8RecursionScope::MicrotaskSuppression at ChromeClinetImpl::postAccessibilityNotification (Closed)

Created:
6 years, 10 months ago by hajimehoshi
Modified:
6 years, 10 months ago
CC:
blink-reviews, kouhei (in TOK)
Visibility:
Public.

Description

Use V8RecursionScope::MicrotaskSuppression at ChromeClinetImpl::postAccessibilityNotification Since ChromeClientImpl::postAccessibilityNotification may call JS callbacks, it is necessary to modify the recursion state. This is related to https://codereview.chromium.org/172263002, which moves AccessibilityController from CppBound to gin::Wrappable. When V8::Function::Call is used, the recursion state should be cared at the blink side. BUG=297480, 331301

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
Source/web/ChromeClientImpl.cpp View 2 chunks +3 lines, -0 lines 1 comment Download

Messages

Total messages: 23 (0 generated)
hajimehoshi
PTAL
6 years, 10 months ago (2014-02-24 10:47:40 UTC) #1
jochen (gone - plz use gerrit)
+dcarney happy to rubberstamp
6 years, 10 months ago (2014-02-24 10:56:43 UTC) #2
hajimehoshi
6 years, 10 months ago (2014-02-24 10:59:24 UTC) #3
haraken
+adamk https://codereview.chromium.org/177553002/diff/1/Source/web/ChromeClientImpl.cpp File Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/177553002/diff/1/Source/web/ChromeClientImpl.cpp#newcode682 Source/web/ChromeClientImpl.cpp:682: V8RecursionScope::MicrotaskSuppression scope; hmm, this looks fragile. We don't ...
6 years, 10 months ago (2014-02-24 11:06:08 UTC) #4
haraken
On 2014/02/24 11:06:08, haraken wrote: > +adamk > > https://codereview.chromium.org/177553002/diff/1/Source/web/ChromeClientImpl.cpp > File Source/web/ChromeClientImpl.cpp (right): > ...
6 years, 10 months ago (2014-02-24 11:16:25 UTC) #5
adamk
My memory is that kalman already did something to expose V8RecursionScope through the API...hopefully he ...
6 years, 10 months ago (2014-02-24 19:00:26 UTC) #6
not at google - send to devlin
On 2014/02/24 19:00:26, adamk wrote: > My memory is that kalman already did something to ...
6 years, 10 months ago (2014-02-24 19:02:23 UTC) #7
adamk
On 2014/02/24 19:02:23, kalman wrote: > On 2014/02/24 19:00:26, adamk wrote: > > My memory ...
6 years, 10 months ago (2014-02-24 19:10:28 UTC) #8
esprehn
It's definitely not safe to run script from inside postNotification, why does that happen? We ...
6 years, 10 months ago (2014-02-24 19:47:43 UTC) #9
hajimehoshi
On 2014/02/24 19:47:43, esprehn wrote: > It's definitely not safe to run script from inside ...
6 years, 10 months ago (2014-02-25 03:56:09 UTC) #10
hajimehoshi
(adamk) > Hmm, guess that ended up using the suppression scope too. Sounds like we ...
6 years, 10 months ago (2014-02-25 10:08:40 UTC) #11
adamk
On 2014/02/25 03:56:09, hajimehoshi wrote: > On 2014/02/24 19:47:43, esprehn wrote: > > It's definitely ...
6 years, 10 months ago (2014-02-25 18:24:51 UTC) #12
jochen (gone - plz use gerrit)
What does the callstack with the CppBoundClass look like? Maybe it's an option to postTask() ...
6 years, 10 months ago (2014-02-25 19:22:26 UTC) #13
hajimehoshi
(adamk) > Is this only an issue when running with the TestRunner? If so, it ...
6 years, 10 months ago (2014-02-26 05:21:10 UTC) #14
hajimehoshi
The problem is originally that we don't have any proper way to call JavaScript functions ...
6 years, 10 months ago (2014-02-26 05:32:14 UTC) #15
haraken
I'd like to understand how gin is going to be architectured. As esprehn mentioned, we ...
6 years, 10 months ago (2014-02-26 05:44:24 UTC) #16
jochen (gone - plz use gerrit)
On 2014/02/26 05:44:24, haraken wrote: > I'd like to understand how gin is going to ...
6 years, 10 months ago (2014-02-26 06:09:20 UTC) #17
haraken
On 2014/02/26 06:09:20, jochen wrote: > On 2014/02/26 05:44:24, haraken wrote: > > I'd like ...
6 years, 10 months ago (2014-02-26 06:19:49 UTC) #18
jochen (gone - plz use gerrit)
On 2014/02/26 06:19:49, haraken wrote: > On 2014/02/26 06:09:20, jochen wrote: > > On 2014/02/26 ...
6 years, 10 months ago (2014-02-26 08:39:44 UTC) #19
haraken
On 2014/02/26 08:39:44, jochen wrote: > On 2014/02/26 06:19:49, haraken wrote: > > On 2014/02/26 ...
6 years, 10 months ago (2014-02-26 08:44:48 UTC) #20
hajimehoshi
We discussed offline. We agreed that in long term (c) is the way to go, ...
6 years, 10 months ago (2014-02-26 09:52:05 UTC) #21
jochen (gone - plz use gerrit)
Scott on a different CL pointed out that V8ScriptRunner::callFunction is already exposed in the public ...
6 years, 10 months ago (2014-02-26 15:37:04 UTC) #22
hajimehoshi
6 years, 10 months ago (2014-02-27 03:36:38 UTC) #23
On 2014/02/26 15:37:04, jochen (OOO from March 1) wrote:
> Scott on a different CL pointed out that V8ScriptRunner::callFunction is
already
> exposed in the public blink API: WebFrame::callFunctionEvenIfScriptDisabled()

Thanks, this worked well!

I'll close this patch.

Powered by Google App Engine
This is Rietveld 408576698