RESOLVED FIXED 44725
Userscripts on special documents should be tested
https://bugs.webkit.org/show_bug.cgi?id=44725
Summary Userscripts on special documents should be tested
Brian Weinstein
Reported 2010-08-26 15:32:20 PDT
We should be testing injecting user scripts on MediaDocument, PluginDocument, and ImageDocument. These follow a different code path to have scripts injected (their documents are custom-built), and this should be tested. We had a bug where start scripts weren't injected for these documents, and this was fixed in http://trac.webkit.org/changeset/66129 and http://trac.webkit.org/changeset/61271, but wasn't tested.
Attachments
[PATCH] Tests (593.74 KB, patch)
2010-08-26 15:37 PDT, Brian Weinstein
hyatt: review+
bweinstein: commit-queue-
Brian Weinstein
Comment 1 2010-08-26 15:37:47 PDT
Created attachment 65632 [details] [PATCH] Tests
Dave Hyatt
Comment 2 2010-08-26 15:52:57 PDT
Comment on attachment 65632 [details] [PATCH] Tests r=me
Brian Weinstein
Comment 3 2010-08-26 15:55:25 PDT
Landed in r66144.
Ryosuke Niwa
Comment 4 2010-08-26 18:09:28 PDT
Tests added in http://trac.webkit.org/changeset/66144 seem to be failing on Snow Leopard (WebKit2): @@ -1,5 +1,2 @@ -CONSOLE MESSAGE: line 1: Start Script -CONSOLE MESSAGE: line 1: End Script -CONSOLE MESSAGE: line 1: Start Script -CONSOLE MESSAGE: line 1: End Script +CONSOLE MESSAGE: line 6: TypeError: Result of expression 'window.layoutTestController.addUserScript' [undefined] is not a function.
Note You need to log in before you can comment on or make changes to this bug.