Improve the output of editing/pasteboard/paste-noscript-xhtml.xhtml
Created attachment 154462 [details] Patch
Comment on attachment 154462 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154462&action=review > LayoutTests/editing/pasteboard/resources/paste-noscript-content.html:13 > -<iframe id="iframe1" src="javascript:sayHello()" style="width: 200px; height: 100px; background-color:#cee;"></iframe> > +<iframe id="iframe1" src="javascript:alert('hello')" style="width: 200px; height: 100px; background-color:#cee;"></iframe> Wasn't this testing that sayHello isn't in the same context? Maybe change it to something like alert(window.sayHello ? 'FAILED' : 'PASSED: sayHello not found').
Comment on attachment 154462 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154462&action=review >> LayoutTests/editing/pasteboard/resources/paste-noscript-content.html:13 >> +<iframe id="iframe1" src="javascript:alert('hello')" style="width: 200px; height: 100px; background-color:#cee;"></iframe> > > Wasn't this testing that sayHello isn't in the same context? Maybe change it to something like alert(window.sayHello ? 'FAILED' : 'PASSED: sayHello not found'). No. The test simply checks that this attribute value is stripped. So the reference error you see is generated the first time this document is loaded in the iframe, not when it's pasted.
Committed r123678: <http://trac.webkit.org/changeset/123678>