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

Issue 1182083006: Call EnsureWebKitInitialized() before registering extensions (Closed)

Created:
5 years, 6 months ago by bashi
Modified:
5 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Call EnsureWebKitInitialized() before registering extensions Blink needs to be initialized before registering an extension because: - WebScriptController::registerExtension() allocates an WTF::Vector on the first call. - WTF::Vector uses PartitionAlloc. - PartitionAlloc's partitions needs to be initialized before allocating memory. Blink initialization does the job. Before this CL, partitions are initialized lazily but lazy initialization doesn't provide proper histogram function, which might be the cause of missing report for PartitionAlloc.CommittedSize UMA. BUG=501171 Committed: https://crrev.com/0d244fa5e106b3d146655a2c623539a3e1900831 Cr-Commit-Position: refs/heads/master@{#339200}

Patch Set 1 #

Patch Set 2 : RegisterExteion() after WebKitInitialized() #

Patch Set 3 : Workaround for tests #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 chunks +2 lines, -2 lines 3 comments Download

Messages

Total messages: 40 (14 generated)
bashi
PTAL? `git cl upload` suggested you as a reviewer but feel free to add reviewers.
5 years, 6 months ago (2015-06-17 03:18:14 UTC) #2
haraken
Thanks for looking into the issue. LGTM.
5 years, 6 months ago (2015-06-17 03:49:36 UTC) #3
no sievers
lgtm
5 years, 6 months ago (2015-06-17 19:46:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182083006/1
5 years, 6 months ago (2015-06-18 22:53:42 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/29813)
5 years, 6 months ago (2015-06-19 00:18:40 UTC) #8
bashi
On 2015/06/19 00:18:40, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 6 months ago (2015-06-19 02:02:24 UTC) #10
paulmeyer
On 2015/06/19 02:02:24, bashi1 wrote: > On 2015/06/19 00:18:40, commit-bot: I haz the power wrote: ...
5 years, 6 months ago (2015-06-19 13:21:14 UTC) #11
bashi
On 2015/06/19 13:21:14, Paul Meyer wrote: > On 2015/06/19 02:02:24, bashi1 wrote: > > On ...
5 years, 5 months ago (2015-07-08 08:24:19 UTC) #12
bashi
On 2015/07/08 08:24:19, bashi1 wrote: > On 2015/06/19 13:21:14, Paul Meyer wrote: > > On ...
5 years, 5 months ago (2015-07-08 08:52:33 UTC) #13
paulmeyer
On 2015/07/08 08:24:19, bashi1 wrote: > On 2015/06/19 13:21:14, Paul Meyer wrote: > > On ...
5 years, 5 months ago (2015-07-08 13:35:02 UTC) #14
bashi
On 2015/07/08 13:35:02, Paul Meyer wrote: > On 2015/07/08 08:24:19, bashi1 wrote: > > On ...
5 years, 5 months ago (2015-07-09 23:26:59 UTC) #16
not at google - send to devlin
I would have thought that you only need the changes in dispatcher.cc? Why change the ...
5 years, 5 months ago (2015-07-10 16:26:11 UTC) #17
bashi
Sorry for the delayed response. What I want to achieve with this CL is to ...
5 years, 5 months ago (2015-07-14 00:00:24 UTC) #18
not at google - send to devlin
lgtm https://codereview.chromium.org/1182083006/diff/40001/extensions/renderer/dispatcher.cc File extensions/renderer/dispatcher.cc (left): https://codereview.chromium.org/1182083006/diff/40001/extensions/renderer/dispatcher.cc#oldcode202 extensions/renderer/dispatcher.cc:202: RenderThread::Get()->RegisterExtension(SafeBuiltins::CreateV8Extension()); On 2015/07/14 00:00:24, bashi1 wrote: > On ...
5 years, 5 months ago (2015-07-14 23:31:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182083006/40001
5 years, 5 months ago (2015-07-14 23:49:28 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/78789)
5 years, 5 months ago (2015-07-14 23:57:56 UTC) #24
bashi
Kinuko-san, could you review changes in chrome/renderer/chrome_content_renderer_client.cc ? The change is just for testing. Please ...
5 years, 5 months ago (2015-07-15 00:02:50 UTC) #26
kinuko
lgtm
5 years, 5 months ago (2015-07-15 01:15:57 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182083006/40001
5 years, 5 months ago (2015-07-15 01:23:08 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/78815)
5 years, 5 months ago (2015-07-15 01:30:57 UTC) #31
bashi
On 2015/07/15 01:30:57, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 5 months ago (2015-07-15 01:35:58 UTC) #33
jochen (gone - plz use gerrit)
lgtm
5 years, 5 months ago (2015-07-15 13:36:43 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182083006/40001
5 years, 5 months ago (2015-07-17 00:24:57 UTC) #37
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-17 02:02:09 UTC) #38
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/0d244fa5e106b3d146655a2c623539a3e1900831 Cr-Commit-Position: refs/heads/master@{#339200}
5 years, 5 months ago (2015-07-17 02:03:18 UTC) #39
bashi
5 years, 5 months ago (2015-07-21 23:25:39 UTC) #40
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1244243003/ by bashi@chromium.org.

The reason for reverting is: This seems the cause of many crashes.

Powered by Google App Engine
This is Rietveld 408576698