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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 11111020: <browser>: Always read <browser>.src attribute from <object>.src. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments from fsamuel@ Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/extensions/platform_apps/browser_tag_src_attribute/test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index adde725e61b83c614b638541935b9a737c56661b..4fe2d0686fe4e63d7e0432560d44d34f425d279a 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -136,7 +136,10 @@ void BrowserPlugin::SetSrcAttribute(const std::string& src) {
// cannot be changed, so this value is used for enforcing this.
navigate_src_sent_ = true;
}
- src_ = src;
+ if (!src.empty()) {
+ src_ = src;
+ return;
Fady Samuel 2012/10/12 20:03:36 That seems wrong? If the src is not empty, we shou
lazyboy 2012/10/12 20:41:14 I did the wrong change on that pass :S Now moved t
+ }
guest_crashed_ = false;
}
« no previous file with comments | « chrome/test/data/extensions/platform_apps/browser_tag_src_attribute/test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698