38 Components.utils.import(
"resource://app/jsmodules/DOMUtils.jsm");
41 this.medialist = medialist;
44 this.job =
new SBJobUtils.JobBase();
45 this.job._progress = 0;
51 this._terminate =
false;
55 start:
function WebScraper_start(aNode) {
57 Components.utils.reportError(
58 "WebScraper::start(aNode) called with nothing to scrape!\n");
62 let webScraper =
this;
63 webScraper.job.notifyJobProgressListeners();
81 for (let
i in steps.reverse()) {
82 pipeline = steps[
i](webScraper, aNode, pipeline, this.medialist);
88 this._domEventListenerSet.add
91 function(
event) { webScraper.start(
event.originalTarget) },
99 cancel:
function WebScraper_cancel() {
100 this._domEventListenerSet.removeAll();
101 this._terminate =
true;
110 window.setTimeout(
function() {
115 Components.utils.reportError(e);
122 }
catch (e
if e instanceof StopIteration) {
function pseudoThread(gen)
function DOMEventListenerSet()
function WebScraper(medialist)
_getSelectedPageStyle s i