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

Issue 457653003: Implement <extensionoptions> deferred attach logic (Closed)

Created:
6 years, 4 months ago by ericzeng
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement <extensionoptions> deferred attach logic Due to how the browser plugin is created, it is possible for the <extensionoptions> element to attempt to attach to the embedder before the browser plugin has bindings. This occurs when an ExtensionOptions object gets an extension id and creates a guest, but has not yet been added to the DOM. Use the deferred attach logic from <webview> so that if this case occurs, wait until the browser plugin gets its bindings before trying to attach the guest view. BUG=386838 Committed: https://crrev.com/617e4fc4f9be2bb575d1a5161272f13abe625788 Cr-Commit-Position: refs/heads/master@{#292215}

Patch Set 1 #

Patch Set 2 : Fix comment #

Total comments: 7

Patch Set 3 : Refactor deferred attach logic #

Patch Set 4 : Change test timeout duration and add explanation #

Patch Set 5 : Rebase #

Patch Set 6 : Refactor all attachment logic #

Patch Set 7 : Remove old tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -30 lines) Patch
M chrome/renderer/resources/extensions/extension_options.js View 1 2 3 4 5 6 chunks +48 lines, -30 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
ericzeng
PTAL
6 years, 4 months ago (2014-08-12 19:39:04 UTC) #1
not at google - send to devlin
lgtm https://codereview.chromium.org/457653003/diff/20001/chrome/renderer/resources/extensions/extension_options.js File chrome/renderer/resources/extensions/extension_options.js (right): https://codereview.chromium.org/457653003/diff/20001/chrome/renderer/resources/extensions/extension_options.js#newcode140 chrome/renderer/resources/extensions/extension_options.js:140: if (name == 'internalbindings' && !oldValue && newValue) ...
6 years, 4 months ago (2014-08-12 19:58:29 UTC) #2
Fady Samuel
Could you hold off a day or so for this? I'm in the process of ...
6 years, 4 months ago (2014-08-12 21:28:00 UTC) #3
Fady Samuel
https://codereview.chromium.org/457653003/diff/20001/chrome/renderer/resources/extensions/extension_options.js File chrome/renderer/resources/extensions/extension_options.js (right): https://codereview.chromium.org/457653003/diff/20001/chrome/renderer/resources/extensions/extension_options.js#newcode140 chrome/renderer/resources/extensions/extension_options.js:140: if (name == 'internalbindings' && !oldValue && newValue) { ...
6 years, 4 months ago (2014-08-12 21:36:39 UTC) #4
ericzeng
https://codereview.chromium.org/457653003/diff/20001/chrome/renderer/resources/extensions/extension_options.js File chrome/renderer/resources/extensions/extension_options.js (right): https://codereview.chromium.org/457653003/diff/20001/chrome/renderer/resources/extensions/extension_options.js#newcode161 chrome/renderer/resources/extensions/extension_options.js:161: return 'function' == typeof this.browserPluginNode['-internal-attach']; On 2014/08/12 19:58:29, kalman ...
6 years, 4 months ago (2014-08-12 21:53:33 UTC) #5
ericzeng
On 2014/08/12 21:28:00, Fady Samuel wrote: > Could you hold off a day or so ...
6 years, 4 months ago (2014-08-12 21:56:16 UTC) #6
Fady Samuel
The internal-attach change has landed. Please model your change here after this: https://codereview.chromium.org/440463002/
6 years, 4 months ago (2014-08-25 19:09:49 UTC) #7
ericzeng
PTAL Fady - this patch doesn't specifically address the "display:none" issue, it mainly addresses the ...
6 years, 3 months ago (2014-08-26 22:36:06 UTC) #8
Fady Samuel
lgtm
6 years, 3 months ago (2014-08-26 22:39:17 UTC) #9
ericzeng
Ben, is it ok if I remove the previous tests? This CL is more of ...
6 years, 3 months ago (2014-08-27 19:31:34 UTC) #10
not at google - send to devlin
Sure. and still lgtm, this is more Fady's domain than mine anyway.
6 years, 3 months ago (2014-08-27 19:33:48 UTC) #11
ericzeng
The CQ bit was checked by ericzeng@chromium.org
6 years, 3 months ago (2014-08-27 19:36:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericzeng@chromium.org/457653003/120001
6 years, 3 months ago (2014-08-27 19:37:16 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:120001) as e05b2063247d32fa7cb4a02fbd3f2cad26370e58
6 years, 3 months ago (2014-08-27 20:53:07 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:53:47 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/617e4fc4f9be2bb575d1a5161272f13abe625788
Cr-Commit-Position: refs/heads/master@{#292215}

Powered by Google App Engine
This is Rietveld 408576698