| 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-2017 eyeo GmbH | 3 * Copyright (C) 2006-2017 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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 { | 562 { |
| 563 d("Injecting script"); | 563 d("Injecting script"); |
| 564 runScript(injectJs); | 564 runScript(injectJs); |
| 565 | 565 |
| 566 if (allowDraw && loading) | 566 if (allowDraw && loading) |
| 567 { | 567 { |
| 568 startPreventDrawing(); | 568 startPreventDrawing(); |
| 569 } | 569 } |
| 570 } | 570 } |
| 571 | 571 |
| 572 // workaround for the issue: https://issues.adblockplus.org/ticket/5303 |
| 573 if (newProgress == 100 && !allowDraw) |
| 574 { |
| 575 w("Workaround for the issue #5303"); |
| 576 stopPreventDrawing(); |
| 577 } |
| 578 |
| 572 if (extWebChromeClient != null) | 579 if (extWebChromeClient != null) |
| 573 { | 580 { |
| 574 extWebChromeClient.onProgressChanged(view, newProgress); | 581 extWebChromeClient.onProgressChanged(view, newProgress); |
| 575 } | 582 } |
| 576 } | 583 } |
| 577 }; | 584 }; |
| 578 | 585 |
| 579 public int getAllowDrawDelay() | 586 public int getAllowDrawDelay() |
| 580 { | 587 { |
| 581 return allowDrawDelay; | 588 return allowDrawDelay; |
| (...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1429 w("Busy with elemhide selectors, delayed disposing scheduled"); | 1436 w("Busy with elemhide selectors, delayed disposing scheduled"); |
| 1430 elemHideThread.setFinishedRunnable(disposeRunnable); | 1437 elemHideThread.setFinishedRunnable(disposeRunnable); |
| 1431 } | 1438 } |
| 1432 else | 1439 else |
| 1433 { | 1440 { |
| 1434 disposeRunnable.run(); | 1441 disposeRunnable.run(); |
| 1435 } | 1442 } |
| 1436 } | 1443 } |
| 1437 } | 1444 } |
| 1438 } | 1445 } |
| OLD | NEW |