| OLD | NEW |
| 1 diff --git a/remoting/webapp/event_handlers.js b/remoting/webapp/event_handlers.
js | 1 diff --git a/remoting/webapp/event_handlers.js b/remoting/webapp/event_handlers.
js |
| 2 index 5dfc368..f69d984 100644 | 2 index 5dfc368..f69d984 100644 |
| 3 --- a/event_handlers.js | 3 --- a/event_handlers.js |
| 4 +++ b/event_handlers.js | 4 +++ b/event_handlers.js |
| 5 @@ -54,7 +54,6 @@ function onLoad() { | 5 @@ -54,7 +54,6 @@ function onLoad() { |
| 6 fn: remoting.sendCtrlAltDel }, | 6 fn: remoting.sendCtrlAltDel }, |
| 7 { event: 'click', id: 'send-print-screen', | 7 { event: 'click', id: 'send-print-screen', |
| 8 fn: remoting.sendPrintScreen }, | 8 fn: remoting.sendPrintScreen }, |
| 9 - { event: 'click', id: 'auth-button', fn: doAuthRedirect }, | 9 - { event: 'click', id: 'auth-button', fn: doAuthRedirect }, |
| 10 { event: 'click', id: 'share-button', fn: remoting.tryShare }, | 10 { event: 'click', id: 'share-button', fn: remoting.tryShare }, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 +++ b/main.html | 36 +++ b/main.html |
| 37 @@ -35,6 +35,7 @@ found in the LICENSE file. | 37 @@ -35,6 +35,7 @@ found in the LICENSE file. |
| 38 <script src="host_settings.js"></script> | 38 <script src="host_settings.js"></script> |
| 39 <script src="host_setup_dialog.js"></script> | 39 <script src="host_setup_dialog.js"></script> |
| 40 <script src="host_table_entry.js"></script> | 40 <script src="host_table_entry.js"></script> |
| 41 + <script src="identity.js"></script> | 41 + <script src="identity.js"></script> |
| 42 <script src="l10n.js"></script> | 42 <script src="l10n.js"></script> |
| 43 <script src="log_to_server.js"></script> | 43 <script src="log_to_server.js"></script> |
| 44 <script src="menu_button.js"></script> | 44 <script src="menu_button.js"></script> |
| 45 diff --git a/remoting/webapp/manifest.json b/remoting/webapp/manifest.json | 45 diff --git a/remoting/webapp/manifest.json b/remoting/webapp/manifest.json |
| 46 index 5be9243..39052b9 100644 | 46 index d1f8d1f..67bf660 100644 |
| 47 --- a/manifest.json | 47 --- a/manifest.json |
| 48 +++ b/manifest.json | 48 +++ b/manifest.json |
| 49 @@ -5,24 +5,16 @@ | 49 @@ -5,30 +5,16 @@ |
| 50 "manifest_version": 2, | 50 "manifest_version": 2, |
| 51 "default_locale": "en", | 51 "default_locale": "en", |
| 52 "app": { | 52 "app": { |
| 53 - "launch": { | 53 - "launch": { |
| 54 - "local_path": "main.html" | 54 - "local_path": "main.html" |
| 55 - } |
| 56 - }, |
| 55 + "background": { | 57 + "background": { |
| 56 + "scripts": ["background.js"] | 58 + "scripts": ["background.js"] |
| 57 } | 59 + } |
| 58 }, | 60 + }, |
| 59 + "key": "chromotingappsv2", | 61 + "key": "chromotingappsv2", |
| 60 "icons": { | 62 "icons": { |
| 61 "128": "chromoting128.webp", | 63 "128": "chromoting128.webp", |
| 62 "48": "chromoting48.webp", | 64 "48": "chromoting48.webp", |
| 63 "16": "chromoting16.webp" | 65 "16": "chromoting16.webp" |
| 64 }, | 66 }, |
| 65 - "content_scripts": [ | 67 - "content_scripts": [ |
| 66 - { | 68 - { |
| 67 - "matches": [ | 69 - "matches": [ |
| 68 - "OAUTH2_REDIRECT_URL" | 70 - "OAUTH2_REDIRECT_URL" |
| 69 - ], | 71 - ], |
| 70 - "js": [ "cs_oauth2_trampoline.js" ] | 72 - "js": [ "cs_oauth2_trampoline.js" ] |
| 73 - }, |
| 74 - { |
| 75 - "matches": [ |
| 76 - "THIRD_PARTY_AUTH_REDIRECT_URL" |
| 77 - ], |
| 78 - "js": [ "cs_third_party_auth_trampoline.js" ] |
| 71 - } | 79 - } |
| 72 - ], | 80 - ], |
| 73 - "content_security_policy": "default-src 'self'; script-src 'self' TALK_GADGET
_HOST; style-src 'self' https://fonts.googleapis.com; img-src 'self' TALK_GADGET
_HOST; font-src *; connect-src 'self' OAUTH2_ACCOUNTS_HOST GOOGLE_API_HOSTS TALK
_GADGET_HOST https://relay.google.com", | 81 - "content_security_policy": "default-src 'self'; script-src 'self' TALK_GADGET
_HOST; style-src 'self' https://fonts.googleapis.com; img-src 'self' TALK_GADGET
_HOST; font-src *; connect-src 'self' OAUTH2_ACCOUNTS_HOST GOOGLE_API_HOSTS TALK
_GADGET_HOST https://relay.google.com", |
| 74 "permissions": [ | 82 "optional_permissions": [ |
| 75 "OAUTH2_ACCOUNTS_HOST/*", | 83 "<all_urls>" |
| 76 "OAUTH2_API_BASE_URL/*", | 84 ], |
| 77 @@ -30,18 +22,22 @@ | 85 @@ -41,16 +27,20 @@ |
| 78 "TALK_GADGET_HOST/talkgadget/*", | |
| 79 "https://relay.google.com/*", | |
| 80 "storage", | 86 "storage", |
| 81 "clipboardRead", | 87 "clipboardRead", |
| 82 - "clipboardWrite" | 88 "clipboardWrite", |
| 83 - ], | 89 + "experimental" |
| 90 ], |
| 84 - "plugins": [ | 91 - "plugins": [ |
| 85 - { "path": "remoting_host_plugin.dll", "public": false }, | 92 - { "path": "remoting_host_plugin.dll", "public": false }, |
| 86 - { "path": "libremoting_host_plugin.ia32.so", "public": false }, | 93 - { "path": "libremoting_host_plugin.ia32.so", "public": false }, |
| 87 - { "path": "libremoting_host_plugin.x64.so", "public": false }, | 94 - { "path": "libremoting_host_plugin.x64.so", "public": false }, |
| 88 - { "path": "remoting_host_plugin.plugin", "public": false } | 95 - { "path": "remoting_host_plugin.plugin", "public": false } |
| 89 + "clipboardWrite", | 96 - ], |
| 90 + "experimental" | |
| 91 ], | |
| 92 + "oauth2": { | 97 + "oauth2": { |
| 93 + "client_id": "45833509441.apps.googleusercontent.com", | 98 + "client_id": "45833509441.apps.googleusercontent.com", |
| 94 + "scopes": [ | 99 + "scopes": [ |
| 95 + "https://www.googleapis.com/auth/chromoting https://www.googleapis.com/au
th/googletalk https://www.googleapis.com/auth/userinfo#email" | 100 + "https://www.googleapis.com/auth/chromoting https://www.googleapis.com/au
th/googletalk https://www.googleapis.com/auth/userinfo#email" |
| 96 + ] | 101 + ] |
| 97 + }, | 102 + }, |
| 98 "requirements": { | 103 "requirements": { |
| 99 "plugins": { | 104 "plugins": { |
| 100 "npapi": false | 105 "npapi": false |
| 101 } | 106 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 diff --git a/remoting/webapp/xhr_proxy.js b/remoting/webapp/xhr_proxy.js | 147 diff --git a/remoting/webapp/xhr_proxy.js b/remoting/webapp/xhr_proxy.js |
| 143 index 4c45780..653b481 100644 | 148 index 4c45780..653b481 100644 |
| 144 --- a/xhr_proxy.js | 149 --- a/xhr_proxy.js |
| 145 +++ b/xhr_proxy.js | 150 +++ b/xhr_proxy.js |
| 146 @@ -90,4 +90,4 @@ remoting.XMLHttpRequestProxy.prototype.DONE = 4; | 151 @@ -90,4 +90,4 @@ remoting.XMLHttpRequestProxy.prototype.DONE = 4; |
| 147 | 152 |
| 148 // Since the WCS driver code constructs XHRs directly, the only mechanism for | 153 // Since the WCS driver code constructs XHRs directly, the only mechanism for |
| 149 // proxying them is to replace the XMLHttpRequest constructor. | 154 // proxying them is to replace the XMLHttpRequest constructor. |
| 150 -//XMLHttpRequest = remoting.XMLHttpRequestProxy; | 155 -//XMLHttpRequest = remoting.XMLHttpRequestProxy; |
| 151 +XMLHttpRequest = remoting.XMLHttpRequestProxy; | 156 +XMLHttpRequest = remoting.XMLHttpRequestProxy; |
| OLD | NEW |