Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1062)

Unified Diff: java/org/chromium/distiller/webdocument/DomConverter.java

Issue 2726123004: Unhide folded sections in wiki pages (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | javatests/org/chromium/distiller/webdocument/DomConverterTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: java/org/chromium/distiller/webdocument/DomConverter.java
diff --git a/java/org/chromium/distiller/webdocument/DomConverter.java b/java/org/chromium/distiller/webdocument/DomConverter.java
index 1b270f62edee7f7e6f2538644f48e77bf545e324..ba2c08d3318deb500c63920af355a282068f6bcb 100644
--- a/java/org/chromium/distiller/webdocument/DomConverter.java
+++ b/java/org/chromium/distiller/webdocument/DomConverter.java
@@ -112,6 +112,11 @@ public class DomConverter implements DomWalker.Visitor {
// See crbug.com/687071
keepAnyway = true;
}
+ if (e.getAttribute("aria-expanded").equals("false")) {
Olivier 2017/03/04 09:26:51 Is there a risk that this fix expands all popup me
wychen 2017/03/14 01:06:01 Could be, but I'd expect menus to be removed down
+ // Unhide folded elements, like folded sections on mobile Wikipedia.
+ // See crbug.com/647667
+ keepAnyway = true;
+ }
}
}
logVisibilityInfo(e, visible || keepAnyway);
« no previous file with comments | « no previous file | javatests/org/chromium/distiller/webdocument/DomConverterTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698