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

Unified Diff: chrome/test/data/extensions/api_test/tabs/on_updated/historyPushStateUpdateUrl/a.js

Issue 1156043002: chrome.tabs.onUpdated doesn't called with 'loading' twice. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
Index: chrome/test/data/extensions/api_test/tabs/on_updated/historyPushStateUpdateUrl/a.js
diff --git a/ipc/ipc_message_attachment.cc b/chrome/test/data/extensions/api_test/tabs/on_updated/historyPushStateUpdateUrl/a.js
similarity index 50%
copy from ipc/ipc_message_attachment.cc
copy to chrome/test/data/extensions/api_test/tabs/on_updated/historyPushStateUpdateUrl/a.js
index 83440ae8e008847eebd411f8ffd08c69d9f529fe..ce3cdafde94a8cc72bccfbd5127426718b4656fc 100644
--- a/ipc/ipc_message_attachment.cc
+++ b/chrome/test/data/extensions/api_test/tabs/on_updated/historyPushStateUpdateUrl/a.js
@@ -2,14 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ipc/ipc_message_attachment.h"
-
-namespace IPC {
-
-MessageAttachment::MessageAttachment() {
+window.onload = function() {
+ // 'load' and 'complete' status is fired with the updated URL.
+ setTimeout(function() {
+ history.pushState(null, null, "#a");
+ }, 0);
}
-
-MessageAttachment::~MessageAttachment() {
-}
-
-} // namespace IPC

Powered by Google App Engine
This is Rietveld 408576698