RESOLVED FIXED75554
REGRESSION (r104000): AdBlock extension fails to load/function
https://bugs.webkit.org/show_bug.cgi?id=75554
Summary REGRESSION (r104000): AdBlock extension fails to load/function
Fabian Mailinator
Reported 2012-01-04 09:32:37 PST
it thinks it's loaded, but it's not. to do: install adblock for safari 2.5.11 in r104022 nightly visit any page on the internet. notice: ads! expected: no ads!
Attachments
work in progress (needs tests) (726 bytes, patch)
2012-01-18 10:45 PST, Adam Barth
no flags
Patch (3.74 KB, patch)
2012-01-18 10:54 PST, Adam Barth
no flags
Alexey Proskuryakov
Comment 1 2012-01-04 14:02:10 PST
Alexey Proskuryakov
Comment 2 2012-01-04 14:02:28 PST
Andy Estes
Comment 3 2012-01-04 14:26:27 PST
Confirmed this is due to <http://trac.webkit.org/changeset/104000> via a local build. It looks like AdBlock is failing to inject its <style> element into the DOM after r104000.
Adam Barth
Comment 4 2012-01-04 14:50:38 PST
Is there a test case I can try?
Andy Estes
Comment 5 2012-01-04 14:56:56 PST
(In reply to comment #4) > Is there a test case I can try? No, this needs a reduction.
Fabian Mailinator
Comment 6 2012-01-04 21:32:52 PST
Test case; 1. Install adblock for safari: a. open safari. b. menu: Safari -> Safari Extensions ... c. Adblock for safari is currently the most popular extension and at the top of the list. d. click on it and follow installation instructions. 2. Test adblock for safari: a. visit http://google.com b. RIGHTclick on any non-active area of the page. c. If adblock is functioning, the pop-up menu will include the item "Block any add on this page" d. If adblock is not functioning, the pop-up menu will NOT include a "block" item.
Adam Barth
Comment 7 2012-01-04 23:52:36 PST
> No, this needs a reduction. Andy, are you planing to create a reduction, or should I start from the repro instructions in Comment #6?
Alexey Proskuryakov
Comment 8 2012-01-05 09:24:14 PST
*** Bug 75613 has been marked as a duplicate of this bug. ***
Andy Estes
Comment 9 2012-01-05 12:36:35 PST
(In reply to comment #7) > > No, this needs a reduction. > > Andy, are you planing to create a reduction, or should I start from the repro instructions in Comment #6? I'm focused on something else right now and wouldn't be able to look at this for the next few days. I'd recommend starting with the repro steps for now.
Joe Strzemp
Comment 10 2012-01-16 21:31:52 PST
If you want to reproduce this issue with AdBlock, you have to use a version of AdBlock PRIOR to 2.5.12. Taken from the AdBlock Changelog: 2.5.12: Refactoring, and work around a bug in Chrome 18 that breaks AdBlock (famlam)"
Andy Estes
Comment 11 2012-01-17 12:03:48 PST
Here is the AdBlock ticket that tracks this issue: <http://code.google.com/p/adblockforchrome/issues/detail?id=6360> Here is the Chromium bug filed by an AdBlock engineer: <http://code.google.com/p/chromium/issues/detail?id=109272> Looks like the information in the AdBlock ticket would be sufficient for creating a reduction, but I've only skimmed it.
Andy Estes
Comment 12 2012-01-17 12:25:05 PST
The issue would appear to be that, prior to r104000, document.documentElement would be non-null for scripts injected at document start. After r104000, document.documentElement is null at document start.
Adam Barth
Comment 13 2012-01-17 12:38:31 PST
Thanks! That should be easy to fix.
Adam Barth
Comment 14 2012-01-18 10:45:29 PST
Created attachment 122964 [details] work in progress (needs tests)
Adam Barth
Comment 15 2012-01-18 10:54:12 PST
WebKit Review Bot
Comment 16 2012-01-18 14:32:42 PST
Comment on attachment 122966 [details] Patch Clearing flags on attachment: 122966 Committed r105321: <http://trac.webkit.org/changeset/105321>
WebKit Review Bot
Comment 17 2012-01-18 14:32:47 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.