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

Side by Side Diff: libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java

Issue 29459555: Issue 5303 - White screen instead of webpage is shown (Closed)
Patch Set: Created June 8, 2017, 6:28 a.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 | « libadblockplus-android-webview/pom.xml ('k') | libadblockplus-android-webviewapp/build.gradle » ('j') | 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 <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
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
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 }
OLDNEW
« no previous file with comments | « libadblockplus-android-webview/pom.xml ('k') | libadblockplus-android-webviewapp/build.gradle » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld