Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[Bug 822630] [contacts] Possible CSP problems

  • Loading branch information...
commit 5c26753821491b051a65ab41c0f73d2f21498493 1 parent ab305e9
Jose M. Cantera authored samjoch committed
2  apps/communications/contacts/index.html
@@ -242,7 +242,7 @@ <h2 data-l10n-id="social-network" id="social-label">Social Network</h2>
242 242
                 <h2>#type#</h2>
243 243
                 <div class="item">
244 244
                   <div class="item-body-exp">
245  
-                    <a href="javascript: void(0);" class="action action-block">
  245
+                    <a href="#" class="action action-block">
246 246
                       <span role="button" class="icon-address" data-l10n-id="legendAddress">Address</span>
247 247
                       <b>
248 248
                       <span>#streetAddress#</span>
9  apps/communications/contacts/oauth2/dialogs_end.html
@@ -13,13 +13,10 @@
13 13
 <html>
14 14
   <head>
15 15
     <meta charset="UTF-8">
16  
-    <script src="oauth2/js/parameters.js"></script>
  16
+    <script src="js/parameters.js"></script>
  17
+    <script src="js/dialogs_end_init.js"></script>
17 18
   </head>
18 19
 
19 20
   <body>
20  
-    <script>
21  
-      window.opener.postMessage('closed',
22  
-                                fb.oauthflow.params['contactsAppOrigin']);
23  
-      window.close();
24  
-    </script>
  21
+  </body>
25 22
 </html>
4  apps/communications/contacts/oauth2/flow.html
@@ -16,8 +16,6 @@
16 16
   <body>
17 17
     <script src="js/flow.js"></script>
18 18
     <script src="js/parameters.js"></script>
19  
-    <script>
20  
-      fb.oauthflow.init();
21  
-    </script>
  19
+    <script src="js/flow_init.js"></script>
22 20
   </body>
23 21
 </html>
4  apps/communications/contacts/oauth2/js/dialogs_end_init.js
... ...
@@ -0,0 +1,4 @@
  1
+'use strict';
  2
+
  3
+window.opener.postMessage('closed', fb.oauthflow.params['contactsAppOrigin']);
  4
+window.close();
3  apps/communications/contacts/oauth2/js/flow_init.js
... ...
@@ -0,0 +1,3 @@
  1
+'use strict';
  2
+
  3
+fb.oauthflow.init();

0 notes on commit 5c26753

Please sign in to comment.
Something went wrong with that request. Please try again.