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

Unified Diff: components/dom_distiller/ios/javascript/domdistiller.js

Issue 995343002: Integrate iOS specific changes in the core domdistiller.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
Index: components/dom_distiller/ios/javascript/domdistiller.js
diff --git a/components/dom_distiller/ios/javascript/domdistiller.js b/components/dom_distiller/ios/javascript/domdistiller.js
deleted file mode 100644
index 874b97799e3d224eadbf221c60bfb4e37813d1b4..0000000000000000000000000000000000000000
--- a/components/dom_distiller/ios/javascript/domdistiller.js
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Applies DomDistillerJs to the content of the page and returns a
-// DomDistillerResults (as a javascript object/dict).
-(function() {
- try {
- // UIWebView's JavaScript engine has a bug that causes crashes when creating
- // a separate window object (as in the non-iOS version of this file), so
- // allow the script to run directly in the window until a better solution
- // is created.
- // TODO(kkhorimoto): investigate whether this is necessary for WKWebView.
- <include
- src="../../../../third_party/dom_distiller_js/package/js/domdistiller.js"/>
- // UIWebView requires javascript to return a single string value.
- return JSON.stringify(
- window.com.dom_distiller.DomDistiller.applyWithOptions($$OPTIONS));
- } catch (e) {
- window.console.error("Error during distillation: " + e);
- if (e.stack != undefined) window.console.error(e.stack);
- }
- return undefined;
-})();
« no previous file with comments | « components/dom_distiller/core/javascript/domdistiller.js ('k') | components/resources/dom_distiller_resources.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698