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

Unified Diff: chrome/test/data/extensions/api_test/webrequest/requestBody/submit.js

Issue 10694055: Add read-only access to POST data for webRequest's onBeforeRequest (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: More comments from Dominic Created 8 years, 3 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/webrequest/requestBody/submit.js
diff --git a/chrome/common/extensions/docs/examples/extensions/oauth_contacts/onload.js b/chrome/test/data/extensions/api_test/webrequest/requestBody/submit.js
similarity index 67%
copy from chrome/common/extensions/docs/examples/extensions/oauth_contacts/onload.js
copy to chrome/test/data/extensions/api_test/webrequest/requestBody/submit.js
index 83ba522db6a0c5dae940c0d2dacad29187bf2bb1..194fd151cea4991edd0c51ee1c1991908c3564c2 100644
--- a/chrome/common/extensions/docs/examples/extensions/oauth_contacts/onload.js
+++ b/chrome/test/data/extensions/api_test/webrequest/requestBody/submit.js
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-window.onload = function() {
- ChromeExOAuth.initCallbackPage();
+function submitForm() {
+ document.forms[0].submit();
}
+window.onload = submitForm;

Powered by Google App Engine
This is Rietveld 408576698