| Index: content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| diff --git a/content/renderer/browser_plugin/browser_plugin_browsertest.cc b/content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| index 5986aa86c65628fef29863635825169c53735473..27ee35b543c3ec0685404ff214d82b95afb38d1a 100644
|
| --- a/content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| +++ b/content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| @@ -274,7 +274,7 @@ TEST_F(BrowserPluginTest, GuestCrash) {
|
| const char* kAddEventListener =
|
| "var msg;"
|
| "function exitListener(e) {"
|
| - " msg = e.detail.reason;"
|
| + " msg = JSON.parse(e.detail).reason;"
|
| "}"
|
| "document.getElementById('browserplugin')."
|
| " addEventListener('-internal-exit', exitListener);";
|
| @@ -314,8 +314,8 @@ TEST_F(BrowserPluginTest, RemovePlugin) {
|
| TEST_F(BrowserPluginTest, CustomEvents) {
|
| const char* kAddEventListener =
|
| "var url;"
|
| - "function nav(u) {"
|
| - " url = u.detail.url;"
|
| + "function nav(e) {"
|
| + " url = JSON.parse(e.detail).url;"
|
| "}"
|
| "document.getElementById('browserplugin')."
|
| " addEventListener('-internal-loadcommit', nav);";
|
| @@ -501,8 +501,8 @@ TEST_F(BrowserPluginTest, ImmutableAttributesAfterNavigation) {
|
| TEST_F(BrowserPluginTest, RemoveEventListenerInEventListener) {
|
| const char* kAddEventListener =
|
| "var url;"
|
| - "function nav(u) {"
|
| - " url = u.detail.url;"
|
| + "function nav(e) {"
|
| + " url = JSON.parse(e.detail).url;"
|
| " document.getElementById('browserplugin')."
|
| " removeEventListener('-internal-loadcommit', nav);"
|
| "}"
|
| @@ -616,7 +616,7 @@ TEST_F(BrowserPluginTest, RemoveBrowserPluginOnExit) {
|
|
|
| const char* kAddEventListener =
|
| "function exitListener(e) {"
|
| - " if (e.detail.reason == 'killed') {"
|
| + " if (JSON.parse(e.detail).reason == 'killed') {"
|
| " var bp = document.getElementById('browserplugin');"
|
| " bp.parentNode.removeChild(bp);"
|
| " }"
|
|
|