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

Issue 11111020: <browser>: Always read <browser>.src attribute from <object>.src. (Closed)

Created:
8 years, 2 months ago by lazyboy
Modified:
8 years, 2 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

<browser>: Always read <browser>.src attribute from <object>.src. If we navigate to 'http://www.google.com', then navigate to '' (empty src), reading <browser>.src would now give us (expected) 'http://www.google.com' since we ignore setting empty src attribute in browser_plugin.cc. BUG=149001 TEST=In web inspector, setting src on <browser> element and reading it. Added platform app test for verifying the change. Ran content_browsertests for BrowserPluginTest* and BrowserPluginHostTest* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162011

Patch Set 1 #

Patch Set 2 : Actual patch + fix renderer BrowserPlugin + test. #

Patch Set 3 : Rename dir. #

Total comments: 4

Patch Set 4 : Address comments from fsamuel@ #

Total comments: 2

Patch Set 5 : Ignore empty src_ altogether for SetSrcAttribute. #

Total comments: 2

Patch Set 6 : Adding comment that empty src would never be shipped to browser process. #

Total comments: 7

Patch Set 7 : Address comments from creis@ #

Messages

Total messages: 17 (0 generated)
lazyboy
Fady, can you take a look? Also looks like we were setting empty src value ...
8 years, 2 months ago (2012-10-12 18:49:22 UTC) #1
Fady Samuel
LGTM after comments addressed! Please get mihaip@ to review this too as he wrote the ...
8 years, 2 months ago (2012-10-12 18:54:44 UTC) #2
lazyboy
https://chromiumcodereview.appspot.com/11111020/diff/5001/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): https://chromiumcodereview.appspot.com/11111020/diff/5001/chrome/renderer/resources/extensions/browser_tag.js#newcode61 chrome/renderer/resources/extensions/browser_tag.js:61: // have different value when empty src is set. ...
8 years, 2 months ago (2012-10-12 19:16:17 UTC) #3
Fady Samuel
https://chromiumcodereview.appspot.com/11111020/diff/8001/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): https://chromiumcodereview.appspot.com/11111020/diff/8001/content/renderer/browser_plugin/browser_plugin.cc#newcode141 content/renderer/browser_plugin/browser_plugin.cc:141: return; That seems wrong? If the src is not ...
8 years, 2 months ago (2012-10-12 20:03:36 UTC) #4
lazyboy
https://chromiumcodereview.appspot.com/11111020/diff/8001/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): https://chromiumcodereview.appspot.com/11111020/diff/8001/content/renderer/browser_plugin/browser_plugin.cc#newcode141 content/renderer/browser_plugin/browser_plugin.cc:141: return; On 2012/10/12 20:03:36, Fady Samuel wrote: > That ...
8 years, 2 months ago (2012-10-12 20:41:13 UTC) #5
Fady Samuel
https://chromiumcodereview.appspot.com/11111020/diff/17001/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): https://chromiumcodereview.appspot.com/11111020/diff/17001/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode127 content/browser/browser_plugin/browser_plugin_embedder.cc:127: // non-empty page, the action is considered no-op. and ...
8 years, 2 months ago (2012-10-12 20:45:05 UTC) #6
lazyboy
https://chromiumcodereview.appspot.com/11111020/diff/17001/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): https://chromiumcodereview.appspot.com/11111020/diff/17001/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode127 content/browser/browser_plugin/browser_plugin_embedder.cc:127: // non-empty page, the action is considered no-op. On ...
8 years, 2 months ago (2012-10-12 20:51:39 UTC) #7
lazyboy
+Mihai for review. Mihai, can you take a look? Thanks.
8 years, 2 months ago (2012-10-12 20:54:05 UTC) #8
Mihai Parparita -not on Chrome
LGTM https://chromiumcodereview.appspot.com/11111020/diff/17002/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): https://chromiumcodereview.appspot.com/11111020/diff/17002/chrome/renderer/resources/extensions/browser_tag.js#newcode54 chrome/renderer/resources/extensions/browser_tag.js:54: var objectNode = this.objectNode_; As mentioned in the ...
8 years, 2 months ago (2012-10-12 22:26:55 UTC) #9
lazyboy
https://chromiumcodereview.appspot.com/11111020/diff/17002/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): https://chromiumcodereview.appspot.com/11111020/diff/17002/chrome/renderer/resources/extensions/browser_tag.js#newcode54 chrome/renderer/resources/extensions/browser_tag.js:54: var objectNode = this.objectNode_; On 2012/10/12 22:26:55, Mihai Parparita ...
8 years, 2 months ago (2012-10-12 23:30:43 UTC) #10
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/11111020/diff/17002/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): https://chromiumcodereview.appspot.com/11111020/diff/17002/chrome/renderer/resources/extensions/browser_tag.js#newcode54 chrome/renderer/resources/extensions/browser_tag.js:54: var objectNode = this.objectNode_; On 2012/10/12 23:30:43, lazyboy wrote: ...
8 years, 2 months ago (2012-10-13 00:12:44 UTC) #11
lazyboy
+Charlie for content/*/browser_plugin/ OWNER.
8 years, 2 months ago (2012-10-13 02:54:04 UTC) #12
Charlie Reis
https://chromiumcodereview.appspot.com/11111020/diff/17002/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): https://chromiumcodereview.appspot.com/11111020/diff/17002/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode129 content/browser/browser_plugin/browser_plugin_embedder.cc:129: CHECK(!src.empty()); Hmm, we've got a few problems here, actually. ...
8 years, 2 months ago (2012-10-15 18:57:28 UTC) #13
lazyboy
https://chromiumcodereview.appspot.com/11111020/diff/17002/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): https://chromiumcodereview.appspot.com/11111020/diff/17002/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode129 content/browser/browser_plugin/browser_plugin_embedder.cc:129: CHECK(!src.empty()); On 2012/10/15 18:57:28, creis wrote: > Hmm, we've ...
8 years, 2 months ago (2012-10-15 20:45:57 UTC) #14
Charlie Reis
Thanks. content/ LGTM.
8 years, 2 months ago (2012-10-15 21:03:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/11111020/25001
8 years, 2 months ago (2012-10-15 21:57:00 UTC) #16
commit-bot: I haz the power
8 years, 2 months ago (2012-10-16 00:15:16 UTC) #17
Change committed as 162011

Powered by Google App Engine
This is Rietveld 408576698