Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: safari/ext/content.js

Issue 5698232457887744: Issue 1644 - Recognize <input type=image> elements with the correct type on Safari (Closed)
Patch Set: Created Dec. 2, 2014, 1:07 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2014 Eyeo GmbH 3 * Copyright (C) 2006-2014 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 var eventName = "error"; 70 var eventName = "error";
71 71
72 switch(event.target.localName) 72 switch(event.target.localName)
73 { 73 {
74 case "frame": 74 case "frame":
75 case "iframe": 75 case "iframe":
76 type = "sub_frame"; 76 type = "sub_frame";
77 eventName = "load"; 77 eventName = "load";
78 break; 78 break;
79 case "img": 79 case "img":
80 case "input":
80 type = "image"; 81 type = "image";
81 break; 82 break;
82 case "object": 83 case "object":
83 case "embed": 84 case "embed":
84 type = "object"; 85 type = "object";
85 break; 86 break;
86 case "script": 87 case "script":
87 type = "script"; 88 type = "script";
88 break; 89 break;
89 case "link": 90 case "link":
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 messageProxy.handleResponse(event.message); 423 messageProxy.handleResponse(event.message);
423 break; 424 break;
424 case "proxyCallback": 425 case "proxyCallback":
425 backgroundPageProxy.handleCallback(event.message); 426 backgroundPageProxy.handleCallback(event.message);
426 break; 427 break;
427 } 428 }
428 } 429 }
429 } 430 }
430 }); 431 });
431 })(); 432 })();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld