Skip to content
Browse files

rolling back chrome changes

  • Loading branch information...
1 parent 1220b50 commit d9d8e3f38f1c226c234e5034d3008444409c8a88 Marcel Duran committed Jun 5, 2012
Showing with 2 additions and 26 deletions.
  1. +1 −24 src/chrome/content.js
  2. +1 −2 src/chrome/controller.js
View
25 src/chrome/content.js
@@ -14,30 +14,7 @@ function onRequest(request, sender, callback) {
callback(YSLOW.peeler.getBaseHref(document));
break;
case 'afterOnload':
- function buildComponentSet(comps) {
- var i, comp, len, score,
- baseHref = request.baseHref,
- doc = document,
- yscontext = new YSLOW.context(doc),
- cset = new YSLOW.ComponentSet(doc);
-
- for (i = 0, len = comps.length; i < len; i += 1) {
- comp = comps[i];
- cset.addComponent(comp.href, comp.type,
- comp.base ? comp.base : baseHref, {
- obj: comp.obj,
- component: comp,
- comp: comp
- });
- }
- yscontext.component_set = cset;
- YSLOW.controller.lint(doc, yscontext, /*ruleset ||*/ 'ydefault');
- yscontext.result_set.url = baseHref;
- score = yscontext.PAGE.overallScore;
- yscontext.collectStats();
- console.log(yscontext);
- }
- YSLOW.ComponentSet.prototype.setAfterOnload(buildComponentSet, {
+ YSLOW.ComponentSet.prototype.setAfterOnload(callback, {
docBody: request.docBody,
doc: document,
components: request.components
View
3 src/chrome/controller.js
@@ -142,8 +142,7 @@
chrome.tabs.sendRequest(currentTab.id, {
action: 'afterOnload',
docBody: docBody,
- components: comps,
- baseHref: baseHref
+ components: comps
}, setInjected);
}
}

0 comments on commit d9d8e3f

Please sign in to comment.
Something went wrong with that request. Please try again.