| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 CComVariant vRetIndex; | 267 CComVariant vRetIndex; |
| 268 CComPtr<IDispatch> pFrameDispatch; | 268 CComPtr<IDispatch> pFrameDispatch; |
| 269 | 269 |
| 270 if (SUCCEEDED(pFrameCollection->item(vIndex, vRetIndex, &pFrameDispatch))
&& pFrameDispatch) | 270 if (SUCCEEDED(pFrameCollection->item(vIndex, vRetIndex, &pFrameDispatch))
&& pFrameDispatch) |
| 271 { | 271 { |
| 272 CComQIPtr<IHTMLElement> pFrameEl = pFrameDispatch; | 272 CComQIPtr<IHTMLElement> pFrameEl = pFrameDispatch; |
| 273 if (pFrameEl) | 273 if (pFrameEl) |
| 274 { | 274 { |
| 275 CComVariant vAttr; | 275 CComVariant vAttr; |
| 276 | 276 |
| 277 if (SUCCEEDED(pFrameEl->getAttribute(ATL::CComBSTR(L"scr"), 0, &vAttr)
) && vAttr.vt == VT_BSTR && ::SysStringLen(vAttr.bstrVal) > 0) | 277 if (SUCCEEDED(pFrameEl->getAttribute(ATL::CComBSTR(L"src"), 0, &vAttr)
) && vAttr.vt == VT_BSTR && ::SysStringLen(vAttr.bstrVal) > 0) |
| 278 { | 278 { |
| 279 CString srcLegacy = vAttr.bstrVal; | 279 CString srcLegacy = vAttr.bstrVal; |
| 280 | 280 |
| 281 // Some times, domain is missing. Should this be added on image src'
s as well?'' | 281 // Some times, domain is missing. Should this be added on image src'
s as well?'' |
| 282 | 282 |
| 283 // eg. gadgetzone.com.au | 283 // eg. gadgetzone.com.au |
| 284 if (srcLegacy.Left(2) == L"//") | 284 if (srcLegacy.Left(2) == L"//") |
| 285 { | 285 { |
| 286 srcLegacy = L"http:" + srcLegacy; | 286 srcLegacy = L"http:" + srcLegacy; |
| 287 } | 287 } |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 { | 460 { |
| 461 m_cacheIndexLast = 0; | 461 m_cacheIndexLast = 0; |
| 462 m_cacheDocumentHasFrames.clear(); | 462 m_cacheDocumentHasFrames.clear(); |
| 463 m_cacheDocumentHasIframes.clear(); | 463 m_cacheDocumentHasIframes.clear(); |
| 464 } | 464 } |
| 465 m_criticalSection.Unlock(); | 465 m_criticalSection.Unlock(); |
| 466 } | 466 } |
| 467 | 467 |
| 468 | 468 |
| 469 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_ | 469 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_ |
| OLD | NEW |