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

Issue 654583003: Use the Document rather than the Frame's execution context to install JS-based marquee elements (Closed)

Created:
6 years, 2 months ago by rhogan
Modified:
6 years, 2 months ago
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink
Project:
blink
Visibility:
Public.

Description

Use the Document rather than the Frame's execution context to install JS-based marquee elements Depending on the frame results in a crash inside <template> tags, which don't have one. BUG=421002 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184229

Patch Set 1 #

Patch Set 2 : Updated #

Total comments: 8

Patch Set 3 : Updated #

Patch Set 4 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -16 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A + LayoutTests/fast/css/marquee-in-template.html View 1 2 3 chunks +8 lines, -1 line 0 comments Download
A + LayoutTests/fast/css/marquee-in-template-expected.txt View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/fast/html/marquee-inside-template-tag-crash.html View 1 chunk +8 lines, -0 lines 0 comments Download
A + LayoutTests/fast/html/marquee-inside-template-tag-crash-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/bindings/core/v8/PrivateScriptRunner.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/PrivateScriptRunner.cpp View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M Source/core/html/HTMLMarqueeElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/testing/PrivateScriptTest.h View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/testing/PrivateScriptTest.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/testing/PrivateScriptTestTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (4 generated)
haraken
Thanks for looking into this! I also have a CL here (https://codereview.chromium.org/661693002/), but not yet ...
6 years, 2 months ago (2014-10-20 23:47:54 UTC) #2
rhogan
https://codereview.chromium.org/654583003/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/654583003/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode179 Source/bindings/core/v8/PrivateScriptRunner.cpp:179: return v8::Handle<v8::Value>(); On 2014/10/20 at 23:47:54, haraken wrote: > ...
6 years, 2 months ago (2014-10-21 17:32:30 UTC) #3
haraken
Oh, you're clever! We can use document->executionContext() (instead of document itself) to get the executionContext ...
6 years, 2 months ago (2014-10-22 12:13:26 UTC) #5
adamk
This general approach looks promising, but the call to document->executionContext() is super-weird. Adding morrita to ...
6 years, 2 months ago (2014-10-22 17:38:45 UTC) #7
Hajime Morrita
https://codereview.chromium.org/654583003/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/654583003/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode177 Source/bindings/core/v8/PrivateScriptRunner.cpp:177: v8::Handle<v8::Context> context = toV8Context(document->executionContext(), DOMWrapperWorld::privateScriptIsolatedWorld()); On 2014/10/22 17:38:45, adamk ...
6 years, 2 months ago (2014-10-22 17:46:22 UTC) #8
adamk
https://codereview.chromium.org/654583003/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/654583003/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode177 Source/bindings/core/v8/PrivateScriptRunner.cpp:177: v8::Handle<v8::Context> context = toV8Context(document->executionContext(), DOMWrapperWorld::privateScriptIsolatedWorld()); On 2014/10/22 at 17:46:22, ...
6 years, 2 months ago (2014-10-22 17:51:35 UTC) #9
Hajime Morrita
On 2014/10/22 17:51:35, adamk wrote: > https://codereview.chromium.org/654583003/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp > File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): > > https://codereview.chromium.org/654583003/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode177 > ...
6 years, 2 months ago (2014-10-22 18:17:47 UTC) #10
rhogan
On 2014/10/22 at 17:51:35, adamk wrote: > I think I'd rather see this code be ...
6 years, 2 months ago (2014-10-22 18:48:53 UTC) #11
adamk
On 2014/10/22 at 18:48:53, robhogan wrote: > On 2014/10/22 at 17:51:35, adamk wrote: > > ...
6 years, 2 months ago (2014-10-22 18:51:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/654583003/60001
6 years, 2 months ago (2014-10-22 22:54:42 UTC) #14
haraken
https://codereview.chromium.org/654583003/diff/20001/Source/core/html/HTMLMarqueeElement.cpp File Source/core/html/HTMLMarqueeElement.cpp (right): https://codereview.chromium.org/654583003/diff/20001/Source/core/html/HTMLMarqueeElement.cpp#newcode38 Source/core/html/HTMLMarqueeElement.cpp:38: RELEASE_ASSERT(!classObject.IsEmpty()); On 2014/10/22 17:38:45, adamk wrote: > This RELEASE_ASSERT ...
6 years, 2 months ago (2014-10-23 00:52:06 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-10-23 02:41:05 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 184229

Powered by Google App Engine
This is Rietveld 408576698