Changeset 227898 in webkit
- Timestamp:
- Jan 31, 2018, 2:18:28 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 10 edited
-
JSTests/ChangeLog (modified) (1 diff)
-
JSTests/stress/jsonp-program-evaluate-path-must-consider-global-lexical-environment.js (added)
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/tests/security/regress-52192-expected.txt (modified) (20 diffs)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/import-scripts-updated-flag.https-expected.txt (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/interpreter/Interpreter.cpp (modified) (5 diffs)
-
Source/JavaScriptCore/jsc.cpp (modified) (4 diffs)
-
Source/JavaScriptCore/runtime/LiteralParser.cpp (modified) (2 diffs)
-
Source/JavaScriptCore/runtime/LiteralParser.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r227780 r227898 1 2018-01-31 Saam Barati <sbarati@apple.com> 2 3 JSC incorrectly interpreting script, sets Global Property instead of Global Lexical variable (LiteralParser / JSONP path) 4 https://bugs.webkit.org/show_bug.cgi?id=182074 5 <rdar://problem/36846261> 6 7 Reviewed by Mark Lam. 8 9 * stress/jsonp-program-evaluate-path-must-consider-global-lexical-environment.js: Added. 10 (assert): 11 (let.func): 12 (let.o.foo): 13 (varFunc): 14 1 15 2018-01-30 Yusuke Suzuki <utatane.tea@gmail.com> 2 16 -
trunk/LayoutTests/ChangeLog
r227875 r227898 1 2018-01-31 Saam Barati <sbarati@apple.com> 2 3 JSC incorrectly interpreting script, sets Global Property instead of Global Lexical variable (LiteralParser / JSONP path) 4 https://bugs.webkit.org/show_bug.cgi?id=182074 5 <rdar://problem/36846261> 6 7 Reviewed by Mark Lam. 8 9 * http/tests/security/regress-52192-expected.txt: 10 1 11 2018-01-30 John Wilander <wilander@apple.com> 2 12 -
trunk/LayoutTests/http/tests/security/regress-52192-expected.txt
r202460 r227898 872 872 CONSOLE MESSAGE: line 36: OtherScriptError: Error thrown from other script with Secret 873 873 CONSOLE MESSAGE: line 42: 874 CONSOLE MESSAGE: line 43: Test thrown E rror from a script from another domain875 CONSOLE MESSAGE: line 9: [case 33] var e = new E rror('Error thrown from other script with Secret');876 CONSOLE MESSAGE: line 11: [case 33] e.name = 'OtherScriptE rror'877 CONSOLE MESSAGE: line 17: [E rror] e = 'OtherScriptError: Error thrown from other script with Secret'878 CONSOLE MESSAGE: line 18: [E rror] e.name = 'OtherScriptError'879 CONSOLE MESSAGE: line 19: [E rror] e.message = 'Error thrown from other script with Secret'880 CONSOLE MESSAGE: line 20: [E rror] e.toString() = 'OtherScriptError: Error thrown from other script with Secret'874 CONSOLE MESSAGE: line 43: Test thrown EvalError from a script from another domain 875 CONSOLE MESSAGE: line 9: [case 33] var e = new EvalError('Error thrown from other script with Secret'); 876 CONSOLE MESSAGE: line 11: [case 33] e.name = 'OtherScriptEvalError' 877 CONSOLE MESSAGE: line 17: [EvalError] e = 'OtherScriptEvalError: Error thrown from other script with Secret' 878 CONSOLE MESSAGE: line 18: [EvalError] e.name = 'OtherScriptEvalError' 879 CONSOLE MESSAGE: line 19: [EvalError] e.message = 'Error thrown from other script with Secret' 880 CONSOLE MESSAGE: line 20: [EvalError] e.toString() = 'OtherScriptEvalError: Error thrown from other script with Secret' 881 881 CONSOLE MESSAGE: line 24: [case 33] throw e; 882 CONSOLE MESSAGE: line 31: [case 33] Caught: OtherScriptE rror: Error thrown from other script with Secret882 CONSOLE MESSAGE: line 31: [case 33] Caught: OtherScriptEvalError: Error thrown from other script with Secret 883 883 CONSOLE MESSAGE: line 32: [case 33] re-throw e; 884 884 CONSOLE MESSAGE: line 47: [case 33] in window.onerror: err = Script error. … … 890 890 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 891 891 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 892 CONSOLE MESSAGE: line 36: OtherScriptE rror: Error thrown from other script with Secret893 CONSOLE MESSAGE: line 42: 894 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain895 CONSOLE MESSAGE: line 9: [case 34] var e = new Error('Error thrown from other script with Secret');896 CONSOLE MESSAGE: line 11: [case 34] e.name = 'OtherScript Error'897 CONSOLE MESSAGE: line 17: [ Error] e = 'OtherScriptError: Error thrown from other script with Secret'898 CONSOLE MESSAGE: line 18: [ Error] e.name = 'OtherScriptError'899 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'900 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'OtherScriptError: Error thrown from other script with Secret'892 CONSOLE MESSAGE: line 36: OtherScriptEvalError: Error thrown from other script with Secret 893 CONSOLE MESSAGE: line 42: 894 CONSOLE MESSAGE: line 43: Test thrown RangeError from a script from another domain 895 CONSOLE MESSAGE: line 9: [case 34] var e = new RangeError('Error thrown from other script with Secret'); 896 CONSOLE MESSAGE: line 11: [case 34] e.name = 'OtherScriptRangeError' 897 CONSOLE MESSAGE: line 17: [RangeError] e = 'OtherScriptRangeError: Error thrown from other script with Secret' 898 CONSOLE MESSAGE: line 18: [RangeError] e.name = 'OtherScriptRangeError' 899 CONSOLE MESSAGE: line 19: [RangeError] e.message = 'Error thrown from other script with Secret' 900 CONSOLE MESSAGE: line 20: [RangeError] e.toString() = 'OtherScriptRangeError: Error thrown from other script with Secret' 901 901 CONSOLE MESSAGE: line 24: [case 34] throw e; 902 CONSOLE MESSAGE: line 31: [case 34] Caught: OtherScript Error: Error thrown from other script with Secret902 CONSOLE MESSAGE: line 31: [case 34] Caught: OtherScriptRangeError: Error thrown from other script with Secret 903 903 CONSOLE MESSAGE: line 32: [case 34] re-throw e; 904 904 CONSOLE MESSAGE: line 47: [case 34] in window.onerror: err = Script error. … … 910 910 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 911 911 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 912 CONSOLE MESSAGE: line 36: OtherScript Error: Error thrown from other script with Secret913 CONSOLE MESSAGE: line 42: 914 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain915 CONSOLE MESSAGE: line 9: [case 35] var e = new Error('Error thrown from other script with Secret');916 CONSOLE MESSAGE: line 11: [case 35] e.name = 'OtherScript Error'917 CONSOLE MESSAGE: line 17: [ Error] e = 'OtherScriptError: Error thrown from other script with Secret'918 CONSOLE MESSAGE: line 18: [ Error] e.name = 'OtherScriptError'919 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'920 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'OtherScriptError: Error thrown from other script with Secret'912 CONSOLE MESSAGE: line 36: OtherScriptRangeError: Error thrown from other script with Secret 913 CONSOLE MESSAGE: line 42: 914 CONSOLE MESSAGE: line 43: Test thrown ReferenceError from a script from another domain 915 CONSOLE MESSAGE: line 9: [case 35] var e = new ReferenceError('Error thrown from other script with Secret'); 916 CONSOLE MESSAGE: line 11: [case 35] e.name = 'OtherScriptReferenceError' 917 CONSOLE MESSAGE: line 17: [ReferenceError] e = 'OtherScriptReferenceError: Error thrown from other script with Secret' 918 CONSOLE MESSAGE: line 18: [ReferenceError] e.name = 'OtherScriptReferenceError' 919 CONSOLE MESSAGE: line 19: [ReferenceError] e.message = 'Error thrown from other script with Secret' 920 CONSOLE MESSAGE: line 20: [ReferenceError] e.toString() = 'OtherScriptReferenceError: Error thrown from other script with Secret' 921 921 CONSOLE MESSAGE: line 24: [case 35] throw e; 922 CONSOLE MESSAGE: line 31: [case 35] Caught: OtherScript Error: Error thrown from other script with Secret922 CONSOLE MESSAGE: line 31: [case 35] Caught: OtherScriptReferenceError: Error thrown from other script with Secret 923 923 CONSOLE MESSAGE: line 32: [case 35] re-throw e; 924 924 CONSOLE MESSAGE: line 47: [case 35] in window.onerror: err = Script error. … … 930 930 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 931 931 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 932 CONSOLE MESSAGE: line 36: OtherScript Error: Error thrown from other script with Secret933 CONSOLE MESSAGE: line 42: 934 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain935 CONSOLE MESSAGE: line 9: [case 36] var e = new Error('Error thrown from other script with Secret');936 CONSOLE MESSAGE: line 11: [case 36] e.name = 'OtherScript Error'937 CONSOLE MESSAGE: line 17: [ Error] e = 'OtherScriptError: Error thrown from other script with Secret'938 CONSOLE MESSAGE: line 18: [ Error] e.name = 'OtherScriptError'939 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'940 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'OtherScriptError: Error thrown from other script with Secret'932 CONSOLE MESSAGE: line 36: OtherScriptReferenceError: Error thrown from other script with Secret 933 CONSOLE MESSAGE: line 42: 934 CONSOLE MESSAGE: line 43: Test thrown SyntaxError from a script from another domain 935 CONSOLE MESSAGE: line 9: [case 36] var e = new SyntaxError('Error thrown from other script with Secret'); 936 CONSOLE MESSAGE: line 11: [case 36] e.name = 'OtherScriptSyntaxError' 937 CONSOLE MESSAGE: line 17: [SyntaxError] e = 'OtherScriptSyntaxError: Error thrown from other script with Secret' 938 CONSOLE MESSAGE: line 18: [SyntaxError] e.name = 'OtherScriptSyntaxError' 939 CONSOLE MESSAGE: line 19: [SyntaxError] e.message = 'Error thrown from other script with Secret' 940 CONSOLE MESSAGE: line 20: [SyntaxError] e.toString() = 'OtherScriptSyntaxError: Error thrown from other script with Secret' 941 941 CONSOLE MESSAGE: line 24: [case 36] throw e; 942 CONSOLE MESSAGE: line 31: [case 36] Caught: OtherScript Error: Error thrown from other script with Secret942 CONSOLE MESSAGE: line 31: [case 36] Caught: OtherScriptSyntaxError: Error thrown from other script with Secret 943 943 CONSOLE MESSAGE: line 32: [case 36] re-throw e; 944 944 CONSOLE MESSAGE: line 47: [case 36] in window.onerror: err = Script error. … … 950 950 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 951 951 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 952 CONSOLE MESSAGE: line 36: OtherScript Error: Error thrown from other script with Secret953 CONSOLE MESSAGE: line 42: 954 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain955 CONSOLE MESSAGE: line 9: [case 37] var e = new Error('Error thrown from other script with Secret');956 CONSOLE MESSAGE: line 11: [case 37] e.name = 'OtherScript Error'957 CONSOLE MESSAGE: line 17: [ Error] e = 'OtherScriptError: Error thrown from other script with Secret'958 CONSOLE MESSAGE: line 18: [ Error] e.name = 'OtherScriptError'959 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'960 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'OtherScriptError: Error thrown from other script with Secret'952 CONSOLE MESSAGE: line 36: OtherScriptSyntaxError: Error thrown from other script with Secret 953 CONSOLE MESSAGE: line 42: 954 CONSOLE MESSAGE: line 43: Test thrown TypeError from a script from another domain 955 CONSOLE MESSAGE: line 9: [case 37] var e = new TypeError('Error thrown from other script with Secret'); 956 CONSOLE MESSAGE: line 11: [case 37] e.name = 'OtherScriptTypeError' 957 CONSOLE MESSAGE: line 17: [TypeError] e = 'OtherScriptTypeError: Error thrown from other script with Secret' 958 CONSOLE MESSAGE: line 18: [TypeError] e.name = 'OtherScriptTypeError' 959 CONSOLE MESSAGE: line 19: [TypeError] e.message = 'Error thrown from other script with Secret' 960 CONSOLE MESSAGE: line 20: [TypeError] e.toString() = 'OtherScriptTypeError: Error thrown from other script with Secret' 961 961 CONSOLE MESSAGE: line 24: [case 37] throw e; 962 CONSOLE MESSAGE: line 31: [case 37] Caught: OtherScript Error: Error thrown from other script with Secret962 CONSOLE MESSAGE: line 31: [case 37] Caught: OtherScriptTypeError: Error thrown from other script with Secret 963 963 CONSOLE MESSAGE: line 32: [case 37] re-throw e; 964 964 CONSOLE MESSAGE: line 47: [case 37] in window.onerror: err = Script error. … … 970 970 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 971 971 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 972 CONSOLE MESSAGE: line 36: OtherScript Error: Error thrown from other script with Secret973 CONSOLE MESSAGE: line 42: 974 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain975 CONSOLE MESSAGE: line 9: [case 38] var e = new Error('Error thrown from other script with Secret');976 CONSOLE MESSAGE: line 11: [case 38] e.name = 'OtherScript Error'977 CONSOLE MESSAGE: line 17: [ Error] e = 'OtherScriptError: Error thrown from other script with Secret'978 CONSOLE MESSAGE: line 18: [ Error] e.name = 'OtherScriptError'979 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'980 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'OtherScriptError: Error thrown from other script with Secret'972 CONSOLE MESSAGE: line 36: OtherScriptTypeError: Error thrown from other script with Secret 973 CONSOLE MESSAGE: line 42: 974 CONSOLE MESSAGE: line 43: Test thrown URIError from a script from another domain 975 CONSOLE MESSAGE: line 9: [case 38] var e = new URIError('Error thrown from other script with Secret'); 976 CONSOLE MESSAGE: line 11: [case 38] e.name = 'OtherScriptURIError' 977 CONSOLE MESSAGE: line 17: [URIError] e = 'OtherScriptURIError: Error thrown from other script with Secret' 978 CONSOLE MESSAGE: line 18: [URIError] e.name = 'OtherScriptURIError' 979 CONSOLE MESSAGE: line 19: [URIError] e.message = 'Error thrown from other script with Secret' 980 CONSOLE MESSAGE: line 20: [URIError] e.toString() = 'OtherScriptURIError: Error thrown from other script with Secret' 981 981 CONSOLE MESSAGE: line 24: [case 38] throw e; 982 CONSOLE MESSAGE: line 31: [case 38] Caught: OtherScript Error: Error thrown from other script with Secret982 CONSOLE MESSAGE: line 31: [case 38] Caught: OtherScriptURIError: Error thrown from other script with Secret 983 983 CONSOLE MESSAGE: line 32: [case 38] re-throw e; 984 984 CONSOLE MESSAGE: line 47: [case 38] in window.onerror: err = Script error. … … 990 990 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 991 991 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 992 CONSOLE MESSAGE: line 36: OtherScript Error: Error thrown from other script with Secret992 CONSOLE MESSAGE: line 36: OtherScriptURIError: Error thrown from other script with Secret 993 993 CONSOLE MESSAGE: line 42: 994 994 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain … … 1020 1020 CONSOLE MESSAGE: line 36: Error: Error thrown from other script with Secret 1021 1021 CONSOLE MESSAGE: line 42: 1022 CONSOLE MESSAGE: line 43: Test thrown E rror from a script from another domain1023 CONSOLE MESSAGE: line 9: [case 40] var e = new E rror('Error thrown from other script with Secret');1024 CONSOLE MESSAGE: line 11: [case 40] e.name = 'OtherScriptE rror'1022 CONSOLE MESSAGE: line 43: Test thrown EvalError from a script from another domain 1023 CONSOLE MESSAGE: line 9: [case 40] var e = new EvalError('Error thrown from other script with Secret'); 1024 CONSOLE MESSAGE: line 11: [case 40] e.name = 'OtherScriptEvalError' 1025 1025 CONSOLE MESSAGE: line 67: [case 40] in 'name' getter[8]: error.message = 'Error thrown from other script with Secret' 1026 1026 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1027 CONSOLE MESSAGE: line 17: [E rror] e = 'GetterErrorName: getter[8] Error thrown from other script with Secret: Error thrown from other script with Secret'1027 CONSOLE MESSAGE: line 17: [EvalError] e = 'GetterErrorName: getter[8] Error thrown from other script with Secret: Error thrown from other script with Secret' 1028 1028 CONSOLE MESSAGE: line 67: [case 40] in 'name' getter[9]: error.message = 'Error thrown from other script with Secret' 1029 1029 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1030 CONSOLE MESSAGE: line 18: [E rror] e.name = 'GetterErrorName: getter[9] Error thrown from other script with Secret'1031 CONSOLE MESSAGE: line 19: [E rror] e.message = 'Error thrown from other script with Secret'1030 CONSOLE MESSAGE: line 18: [EvalError] e.name = 'GetterErrorName: getter[9] Error thrown from other script with Secret' 1031 CONSOLE MESSAGE: line 19: [EvalError] e.message = 'Error thrown from other script with Secret' 1032 1032 CONSOLE MESSAGE: line 67: [case 40] in 'name' getter[10]: error.message = 'Error thrown from other script with Secret' 1033 1033 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1034 CONSOLE MESSAGE: line 20: [E rror] e.toString() = 'GetterErrorName: getter[10] Error thrown from other script with Secret: Error thrown from other script with Secret'1034 CONSOLE MESSAGE: line 20: [EvalError] e.toString() = 'GetterErrorName: getter[10] Error thrown from other script with Secret: Error thrown from other script with Secret' 1035 1035 CONSOLE MESSAGE: line 24: [case 40] throw e; 1036 1036 CONSOLE MESSAGE: line 67: [case 40] in 'name' getter[11]: error.message = 'Error thrown from other script with Secret' … … 1048 1048 CONSOLE MESSAGE: line 36: Error: Error thrown from other script with Secret 1049 1049 CONSOLE MESSAGE: line 42: 1050 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain1051 CONSOLE MESSAGE: line 9: [case 41] var e = new Error('Error thrown from other script with Secret');1052 CONSOLE MESSAGE: line 11: [case 41] e.name = 'OtherScript Error'1050 CONSOLE MESSAGE: line 43: Test thrown RangeError from a script from another domain 1051 CONSOLE MESSAGE: line 9: [case 41] var e = new RangeError('Error thrown from other script with Secret'); 1052 CONSOLE MESSAGE: line 11: [case 41] e.name = 'OtherScriptRangeError' 1053 1053 CONSOLE MESSAGE: line 67: [case 41] in 'name' getter[12]: error.message = 'Error thrown from other script with Secret' 1054 1054 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1055 CONSOLE MESSAGE: line 17: [ Error] e = 'GetterErrorName: getter[12] Error thrown from other script with Secret: Error thrown from other script with Secret'1055 CONSOLE MESSAGE: line 17: [RangeError] e = 'GetterErrorName: getter[12] Error thrown from other script with Secret: Error thrown from other script with Secret' 1056 1056 CONSOLE MESSAGE: line 67: [case 41] in 'name' getter[13]: error.message = 'Error thrown from other script with Secret' 1057 1057 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1058 CONSOLE MESSAGE: line 18: [ Error] e.name = 'GetterErrorName: getter[13] Error thrown from other script with Secret'1059 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'1058 CONSOLE MESSAGE: line 18: [RangeError] e.name = 'GetterErrorName: getter[13] Error thrown from other script with Secret' 1059 CONSOLE MESSAGE: line 19: [RangeError] e.message = 'Error thrown from other script with Secret' 1060 1060 CONSOLE MESSAGE: line 67: [case 41] in 'name' getter[14]: error.message = 'Error thrown from other script with Secret' 1061 1061 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1062 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'GetterErrorName: getter[14] Error thrown from other script with Secret: Error thrown from other script with Secret'1062 CONSOLE MESSAGE: line 20: [RangeError] e.toString() = 'GetterErrorName: getter[14] Error thrown from other script with Secret: Error thrown from other script with Secret' 1063 1063 CONSOLE MESSAGE: line 24: [case 41] throw e; 1064 1064 CONSOLE MESSAGE: line 67: [case 41] in 'name' getter[15]: error.message = 'Error thrown from other script with Secret' … … 1076 1076 CONSOLE MESSAGE: line 36: Error: Error thrown from other script with Secret 1077 1077 CONSOLE MESSAGE: line 42: 1078 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain1079 CONSOLE MESSAGE: line 9: [case 42] var e = new Error('Error thrown from other script with Secret');1080 CONSOLE MESSAGE: line 11: [case 42] e.name = 'OtherScript Error'1078 CONSOLE MESSAGE: line 43: Test thrown ReferenceError from a script from another domain 1079 CONSOLE MESSAGE: line 9: [case 42] var e = new ReferenceError('Error thrown from other script with Secret'); 1080 CONSOLE MESSAGE: line 11: [case 42] e.name = 'OtherScriptReferenceError' 1081 1081 CONSOLE MESSAGE: line 67: [case 42] in 'name' getter[16]: error.message = 'Error thrown from other script with Secret' 1082 1082 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1083 CONSOLE MESSAGE: line 17: [ Error] e = 'GetterErrorName: getter[16] Error thrown from other script with Secret: Error thrown from other script with Secret'1083 CONSOLE MESSAGE: line 17: [ReferenceError] e = 'GetterErrorName: getter[16] Error thrown from other script with Secret: Error thrown from other script with Secret' 1084 1084 CONSOLE MESSAGE: line 67: [case 42] in 'name' getter[17]: error.message = 'Error thrown from other script with Secret' 1085 1085 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1086 CONSOLE MESSAGE: line 18: [ Error] e.name = 'GetterErrorName: getter[17] Error thrown from other script with Secret'1087 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'1086 CONSOLE MESSAGE: line 18: [ReferenceError] e.name = 'GetterErrorName: getter[17] Error thrown from other script with Secret' 1087 CONSOLE MESSAGE: line 19: [ReferenceError] e.message = 'Error thrown from other script with Secret' 1088 1088 CONSOLE MESSAGE: line 67: [case 42] in 'name' getter[18]: error.message = 'Error thrown from other script with Secret' 1089 1089 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1090 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'GetterErrorName: getter[18] Error thrown from other script with Secret: Error thrown from other script with Secret'1090 CONSOLE MESSAGE: line 20: [ReferenceError] e.toString() = 'GetterErrorName: getter[18] Error thrown from other script with Secret: Error thrown from other script with Secret' 1091 1091 CONSOLE MESSAGE: line 24: [case 42] throw e; 1092 1092 CONSOLE MESSAGE: line 67: [case 42] in 'name' getter[19]: error.message = 'Error thrown from other script with Secret' … … 1104 1104 CONSOLE MESSAGE: line 36: Error: Error thrown from other script with Secret 1105 1105 CONSOLE MESSAGE: line 42: 1106 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain1107 CONSOLE MESSAGE: line 9: [case 43] var e = new Error('Error thrown from other script with Secret');1108 CONSOLE MESSAGE: line 11: [case 43] e.name = 'OtherScript Error'1106 CONSOLE MESSAGE: line 43: Test thrown SyntaxError from a script from another domain 1107 CONSOLE MESSAGE: line 9: [case 43] var e = new SyntaxError('Error thrown from other script with Secret'); 1108 CONSOLE MESSAGE: line 11: [case 43] e.name = 'OtherScriptSyntaxError' 1109 1109 CONSOLE MESSAGE: line 67: [case 43] in 'name' getter[20]: error.message = 'Error thrown from other script with Secret' 1110 1110 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1111 CONSOLE MESSAGE: line 17: [ Error] e = 'GetterErrorName: getter[20] Error thrown from other script with Secret: Error thrown from other script with Secret'1111 CONSOLE MESSAGE: line 17: [SyntaxError] e = 'GetterErrorName: getter[20] Error thrown from other script with Secret: Error thrown from other script with Secret' 1112 1112 CONSOLE MESSAGE: line 67: [case 43] in 'name' getter[21]: error.message = 'Error thrown from other script with Secret' 1113 1113 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1114 CONSOLE MESSAGE: line 18: [ Error] e.name = 'GetterErrorName: getter[21] Error thrown from other script with Secret'1115 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'1114 CONSOLE MESSAGE: line 18: [SyntaxError] e.name = 'GetterErrorName: getter[21] Error thrown from other script with Secret' 1115 CONSOLE MESSAGE: line 19: [SyntaxError] e.message = 'Error thrown from other script with Secret' 1116 1116 CONSOLE MESSAGE: line 67: [case 43] in 'name' getter[22]: error.message = 'Error thrown from other script with Secret' 1117 1117 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1118 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'GetterErrorName: getter[22] Error thrown from other script with Secret: Error thrown from other script with Secret'1118 CONSOLE MESSAGE: line 20: [SyntaxError] e.toString() = 'GetterErrorName: getter[22] Error thrown from other script with Secret: Error thrown from other script with Secret' 1119 1119 CONSOLE MESSAGE: line 24: [case 43] throw e; 1120 1120 CONSOLE MESSAGE: line 67: [case 43] in 'name' getter[23]: error.message = 'Error thrown from other script with Secret' … … 1132 1132 CONSOLE MESSAGE: line 36: Error: Error thrown from other script with Secret 1133 1133 CONSOLE MESSAGE: line 42: 1134 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain1135 CONSOLE MESSAGE: line 9: [case 44] var e = new Error('Error thrown from other script with Secret');1136 CONSOLE MESSAGE: line 11: [case 44] e.name = 'OtherScript Error'1134 CONSOLE MESSAGE: line 43: Test thrown TypeError from a script from another domain 1135 CONSOLE MESSAGE: line 9: [case 44] var e = new TypeError('Error thrown from other script with Secret'); 1136 CONSOLE MESSAGE: line 11: [case 44] e.name = 'OtherScriptTypeError' 1137 1137 CONSOLE MESSAGE: line 67: [case 44] in 'name' getter[24]: error.message = 'Error thrown from other script with Secret' 1138 1138 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1139 CONSOLE MESSAGE: line 17: [ Error] e = 'GetterErrorName: getter[24] Error thrown from other script with Secret: Error thrown from other script with Secret'1139 CONSOLE MESSAGE: line 17: [TypeError] e = 'GetterErrorName: getter[24] Error thrown from other script with Secret: Error thrown from other script with Secret' 1140 1140 CONSOLE MESSAGE: line 67: [case 44] in 'name' getter[25]: error.message = 'Error thrown from other script with Secret' 1141 1141 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1142 CONSOLE MESSAGE: line 18: [ Error] e.name = 'GetterErrorName: getter[25] Error thrown from other script with Secret'1143 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'1142 CONSOLE MESSAGE: line 18: [TypeError] e.name = 'GetterErrorName: getter[25] Error thrown from other script with Secret' 1143 CONSOLE MESSAGE: line 19: [TypeError] e.message = 'Error thrown from other script with Secret' 1144 1144 CONSOLE MESSAGE: line 67: [case 44] in 'name' getter[26]: error.message = 'Error thrown from other script with Secret' 1145 1145 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1146 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'GetterErrorName: getter[26] Error thrown from other script with Secret: Error thrown from other script with Secret'1146 CONSOLE MESSAGE: line 20: [TypeError] e.toString() = 'GetterErrorName: getter[26] Error thrown from other script with Secret: Error thrown from other script with Secret' 1147 1147 CONSOLE MESSAGE: line 24: [case 44] throw e; 1148 1148 CONSOLE MESSAGE: line 67: [case 44] in 'name' getter[27]: error.message = 'Error thrown from other script with Secret' … … 1160 1160 CONSOLE MESSAGE: line 36: Error: Error thrown from other script with Secret 1161 1161 CONSOLE MESSAGE: line 42: 1162 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain1163 CONSOLE MESSAGE: line 9: [case 45] var e = new Error('Error thrown from other script with Secret');1164 CONSOLE MESSAGE: line 11: [case 45] e.name = 'OtherScript Error'1162 CONSOLE MESSAGE: line 43: Test thrown URIError from a script from another domain 1163 CONSOLE MESSAGE: line 9: [case 45] var e = new URIError('Error thrown from other script with Secret'); 1164 CONSOLE MESSAGE: line 11: [case 45] e.name = 'OtherScriptURIError' 1165 1165 CONSOLE MESSAGE: line 67: [case 45] in 'name' getter[28]: error.message = 'Error thrown from other script with Secret' 1166 1166 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1167 CONSOLE MESSAGE: line 17: [ Error] e = 'GetterErrorName: getter[28] Error thrown from other script with Secret: Error thrown from other script with Secret'1167 CONSOLE MESSAGE: line 17: [URIError] e = 'GetterErrorName: getter[28] Error thrown from other script with Secret: Error thrown from other script with Secret' 1168 1168 CONSOLE MESSAGE: line 67: [case 45] in 'name' getter[29]: error.message = 'Error thrown from other script with Secret' 1169 1169 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1170 CONSOLE MESSAGE: line 18: [ Error] e.name = 'GetterErrorName: getter[29] Error thrown from other script with Secret'1171 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'1170 CONSOLE MESSAGE: line 18: [URIError] e.name = 'GetterErrorName: getter[29] Error thrown from other script with Secret' 1171 CONSOLE MESSAGE: line 19: [URIError] e.message = 'Error thrown from other script with Secret' 1172 1172 CONSOLE MESSAGE: line 67: [case 45] in 'name' getter[30]: error.message = 'Error thrown from other script with Secret' 1173 1173 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1174 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'GetterErrorName: getter[30] Error thrown from other script with Secret: Error thrown from other script with Secret'1174 CONSOLE MESSAGE: line 20: [URIError] e.toString() = 'GetterErrorName: getter[30] Error thrown from other script with Secret: Error thrown from other script with Secret' 1175 1175 CONSOLE MESSAGE: line 24: [case 45] throw e; 1176 1176 CONSOLE MESSAGE: line 67: [case 45] in 'name' getter[31]: error.message = 'Error thrown from other script with Secret' … … 1214 1214 CONSOLE MESSAGE: line 36: OtherScriptError: Error thrown from other script with Secret 1215 1215 CONSOLE MESSAGE: line 42: 1216 CONSOLE MESSAGE: line 43: Test thrown E rror from a script from another domain1217 CONSOLE MESSAGE: line 9: [case 47] var e = new E rror('Error thrown from other script with Secret');1218 CONSOLE MESSAGE: line 11: [case 47] e.name = 'OtherScriptE rror'1216 CONSOLE MESSAGE: line 43: Test thrown EvalError from a script from another domain 1217 CONSOLE MESSAGE: line 9: [case 47] var e = new EvalError('Error thrown from other script with Secret'); 1218 CONSOLE MESSAGE: line 11: [case 47] e.name = 'OtherScriptEvalError' 1219 1219 CONSOLE MESSAGE: line 95: [case 47] in 'toString' getter[35]: error.message = 'Error thrown from other script with Secret' 1220 1220 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1221 CONSOLE MESSAGE: line 17: [E rror] e = 'GetterErrorToString: getter[35] Error thrown from other script with Secret'1222 CONSOLE MESSAGE: line 18: [E rror] e.name = 'OtherScriptError'1223 CONSOLE MESSAGE: line 19: [E rror] e.message = 'Error thrown from other script with Secret'1221 CONSOLE MESSAGE: line 17: [EvalError] e = 'GetterErrorToString: getter[35] Error thrown from other script with Secret' 1222 CONSOLE MESSAGE: line 18: [EvalError] e.name = 'OtherScriptEvalError' 1223 CONSOLE MESSAGE: line 19: [EvalError] e.message = 'Error thrown from other script with Secret' 1224 1224 CONSOLE MESSAGE: line 95: [case 47] in 'toString' getter[36]: error.message = 'Error thrown from other script with Secret' 1225 1225 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1226 CONSOLE MESSAGE: line 20: [E rror] e.toString() = 'GetterErrorToString: getter[36] Error thrown from other script with Secret'1226 CONSOLE MESSAGE: line 20: [EvalError] e.toString() = 'GetterErrorToString: getter[36] Error thrown from other script with Secret' 1227 1227 CONSOLE MESSAGE: line 24: [case 47] throw e; 1228 1228 CONSOLE MESSAGE: line 95: [case 47] in 'toString' getter[37]: error.message = 'Error thrown from other script with Secret' … … 1238 1238 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1239 1239 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1240 CONSOLE MESSAGE: line 36: OtherScriptE rror: Error thrown from other script with Secret1241 CONSOLE MESSAGE: line 42: 1242 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain1243 CONSOLE MESSAGE: line 9: [case 48] var e = new Error('Error thrown from other script with Secret');1244 CONSOLE MESSAGE: line 11: [case 48] e.name = 'OtherScript Error'1240 CONSOLE MESSAGE: line 36: OtherScriptEvalError: Error thrown from other script with Secret 1241 CONSOLE MESSAGE: line 42: 1242 CONSOLE MESSAGE: line 43: Test thrown RangeError from a script from another domain 1243 CONSOLE MESSAGE: line 9: [case 48] var e = new RangeError('Error thrown from other script with Secret'); 1244 CONSOLE MESSAGE: line 11: [case 48] e.name = 'OtherScriptRangeError' 1245 1245 CONSOLE MESSAGE: line 95: [case 48] in 'toString' getter[38]: error.message = 'Error thrown from other script with Secret' 1246 1246 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1247 CONSOLE MESSAGE: line 17: [ Error] e = 'GetterErrorToString: getter[38] Error thrown from other script with Secret'1248 CONSOLE MESSAGE: line 18: [ Error] e.name = 'OtherScriptError'1249 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'1247 CONSOLE MESSAGE: line 17: [RangeError] e = 'GetterErrorToString: getter[38] Error thrown from other script with Secret' 1248 CONSOLE MESSAGE: line 18: [RangeError] e.name = 'OtherScriptRangeError' 1249 CONSOLE MESSAGE: line 19: [RangeError] e.message = 'Error thrown from other script with Secret' 1250 1250 CONSOLE MESSAGE: line 95: [case 48] in 'toString' getter[39]: error.message = 'Error thrown from other script with Secret' 1251 1251 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1252 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'GetterErrorToString: getter[39] Error thrown from other script with Secret'1252 CONSOLE MESSAGE: line 20: [RangeError] e.toString() = 'GetterErrorToString: getter[39] Error thrown from other script with Secret' 1253 1253 CONSOLE MESSAGE: line 24: [case 48] throw e; 1254 1254 CONSOLE MESSAGE: line 95: [case 48] in 'toString' getter[40]: error.message = 'Error thrown from other script with Secret' … … 1264 1264 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1265 1265 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1266 CONSOLE MESSAGE: line 36: OtherScript Error: Error thrown from other script with Secret1267 CONSOLE MESSAGE: line 42: 1268 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain1269 CONSOLE MESSAGE: line 9: [case 49] var e = new Error('Error thrown from other script with Secret');1270 CONSOLE MESSAGE: line 11: [case 49] e.name = 'OtherScript Error'1266 CONSOLE MESSAGE: line 36: OtherScriptRangeError: Error thrown from other script with Secret 1267 CONSOLE MESSAGE: line 42: 1268 CONSOLE MESSAGE: line 43: Test thrown ReferenceError from a script from another domain 1269 CONSOLE MESSAGE: line 9: [case 49] var e = new ReferenceError('Error thrown from other script with Secret'); 1270 CONSOLE MESSAGE: line 11: [case 49] e.name = 'OtherScriptReferenceError' 1271 1271 CONSOLE MESSAGE: line 95: [case 49] in 'toString' getter[41]: error.message = 'Error thrown from other script with Secret' 1272 1272 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1273 CONSOLE MESSAGE: line 17: [ Error] e = 'GetterErrorToString: getter[41] Error thrown from other script with Secret'1274 CONSOLE MESSAGE: line 18: [ Error] e.name = 'OtherScriptError'1275 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'1273 CONSOLE MESSAGE: line 17: [ReferenceError] e = 'GetterErrorToString: getter[41] Error thrown from other script with Secret' 1274 CONSOLE MESSAGE: line 18: [ReferenceError] e.name = 'OtherScriptReferenceError' 1275 CONSOLE MESSAGE: line 19: [ReferenceError] e.message = 'Error thrown from other script with Secret' 1276 1276 CONSOLE MESSAGE: line 95: [case 49] in 'toString' getter[42]: error.message = 'Error thrown from other script with Secret' 1277 1277 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1278 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'GetterErrorToString: getter[42] Error thrown from other script with Secret'1278 CONSOLE MESSAGE: line 20: [ReferenceError] e.toString() = 'GetterErrorToString: getter[42] Error thrown from other script with Secret' 1279 1279 CONSOLE MESSAGE: line 24: [case 49] throw e; 1280 1280 CONSOLE MESSAGE: line 95: [case 49] in 'toString' getter[43]: error.message = 'Error thrown from other script with Secret' … … 1290 1290 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1291 1291 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1292 CONSOLE MESSAGE: line 36: OtherScript Error: Error thrown from other script with Secret1293 CONSOLE MESSAGE: line 42: 1294 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain1295 CONSOLE MESSAGE: line 9: [case 50] var e = new Error('Error thrown from other script with Secret');1296 CONSOLE MESSAGE: line 11: [case 50] e.name = 'OtherScript Error'1292 CONSOLE MESSAGE: line 36: OtherScriptReferenceError: Error thrown from other script with Secret 1293 CONSOLE MESSAGE: line 42: 1294 CONSOLE MESSAGE: line 43: Test thrown SyntaxError from a script from another domain 1295 CONSOLE MESSAGE: line 9: [case 50] var e = new SyntaxError('Error thrown from other script with Secret'); 1296 CONSOLE MESSAGE: line 11: [case 50] e.name = 'OtherScriptSyntaxError' 1297 1297 CONSOLE MESSAGE: line 95: [case 50] in 'toString' getter[44]: error.message = 'Error thrown from other script with Secret' 1298 1298 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1299 CONSOLE MESSAGE: line 17: [ Error] e = 'GetterErrorToString: getter[44] Error thrown from other script with Secret'1300 CONSOLE MESSAGE: line 18: [ Error] e.name = 'OtherScriptError'1301 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'1299 CONSOLE MESSAGE: line 17: [SyntaxError] e = 'GetterErrorToString: getter[44] Error thrown from other script with Secret' 1300 CONSOLE MESSAGE: line 18: [SyntaxError] e.name = 'OtherScriptSyntaxError' 1301 CONSOLE MESSAGE: line 19: [SyntaxError] e.message = 'Error thrown from other script with Secret' 1302 1302 CONSOLE MESSAGE: line 95: [case 50] in 'toString' getter[45]: error.message = 'Error thrown from other script with Secret' 1303 1303 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1304 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'GetterErrorToString: getter[45] Error thrown from other script with Secret'1304 CONSOLE MESSAGE: line 20: [SyntaxError] e.toString() = 'GetterErrorToString: getter[45] Error thrown from other script with Secret' 1305 1305 CONSOLE MESSAGE: line 24: [case 50] throw e; 1306 1306 CONSOLE MESSAGE: line 95: [case 50] in 'toString' getter[46]: error.message = 'Error thrown from other script with Secret' … … 1316 1316 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1317 1317 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1318 CONSOLE MESSAGE: line 36: OtherScript Error: Error thrown from other script with Secret1319 CONSOLE MESSAGE: line 42: 1320 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain1321 CONSOLE MESSAGE: line 9: [case 51] var e = new Error('Error thrown from other script with Secret');1322 CONSOLE MESSAGE: line 11: [case 51] e.name = 'OtherScript Error'1318 CONSOLE MESSAGE: line 36: OtherScriptSyntaxError: Error thrown from other script with Secret 1319 CONSOLE MESSAGE: line 42: 1320 CONSOLE MESSAGE: line 43: Test thrown TypeError from a script from another domain 1321 CONSOLE MESSAGE: line 9: [case 51] var e = new TypeError('Error thrown from other script with Secret'); 1322 CONSOLE MESSAGE: line 11: [case 51] e.name = 'OtherScriptTypeError' 1323 1323 CONSOLE MESSAGE: line 95: [case 51] in 'toString' getter[47]: error.message = 'Error thrown from other script with Secret' 1324 1324 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1325 CONSOLE MESSAGE: line 17: [ Error] e = 'GetterErrorToString: getter[47] Error thrown from other script with Secret'1326 CONSOLE MESSAGE: line 18: [ Error] e.name = 'OtherScriptError'1327 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'1325 CONSOLE MESSAGE: line 17: [TypeError] e = 'GetterErrorToString: getter[47] Error thrown from other script with Secret' 1326 CONSOLE MESSAGE: line 18: [TypeError] e.name = 'OtherScriptTypeError' 1327 CONSOLE MESSAGE: line 19: [TypeError] e.message = 'Error thrown from other script with Secret' 1328 1328 CONSOLE MESSAGE: line 95: [case 51] in 'toString' getter[48]: error.message = 'Error thrown from other script with Secret' 1329 1329 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1330 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'GetterErrorToString: getter[48] Error thrown from other script with Secret'1330 CONSOLE MESSAGE: line 20: [TypeError] e.toString() = 'GetterErrorToString: getter[48] Error thrown from other script with Secret' 1331 1331 CONSOLE MESSAGE: line 24: [case 51] throw e; 1332 1332 CONSOLE MESSAGE: line 95: [case 51] in 'toString' getter[49]: error.message = 'Error thrown from other script with Secret' … … 1342 1342 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1343 1343 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1344 CONSOLE MESSAGE: line 36: OtherScript Error: Error thrown from other script with Secret1345 CONSOLE MESSAGE: line 42: 1346 CONSOLE MESSAGE: line 43: Test thrown Error from a script from another domain1347 CONSOLE MESSAGE: line 9: [case 52] var e = new Error('Error thrown from other script with Secret');1348 CONSOLE MESSAGE: line 11: [case 52] e.name = 'OtherScript Error'1344 CONSOLE MESSAGE: line 36: OtherScriptTypeError: Error thrown from other script with Secret 1345 CONSOLE MESSAGE: line 42: 1346 CONSOLE MESSAGE: line 43: Test thrown URIError from a script from another domain 1347 CONSOLE MESSAGE: line 9: [case 52] var e = new URIError('Error thrown from other script with Secret'); 1348 CONSOLE MESSAGE: line 11: [case 52] e.name = 'OtherScriptURIError' 1349 1349 CONSOLE MESSAGE: line 95: [case 52] in 'toString' getter[50]: error.message = 'Error thrown from other script with Secret' 1350 1350 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1351 CONSOLE MESSAGE: line 17: [ Error] e = 'GetterErrorToString: getter[50] Error thrown from other script with Secret'1352 CONSOLE MESSAGE: line 18: [ Error] e.name = 'OtherScriptError'1353 CONSOLE MESSAGE: line 19: [ Error] e.message = 'Error thrown from other script with Secret'1351 CONSOLE MESSAGE: line 17: [URIError] e = 'GetterErrorToString: getter[50] Error thrown from other script with Secret' 1352 CONSOLE MESSAGE: line 18: [URIError] e.name = 'OtherScriptURIError' 1353 CONSOLE MESSAGE: line 19: [URIError] e.message = 'Error thrown from other script with Secret' 1354 1354 CONSOLE MESSAGE: line 95: [case 52] in 'toString' getter[51]: error.message = 'Error thrown from other script with Secret' 1355 1355 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1356 CONSOLE MESSAGE: line 20: [ Error] e.toString() = 'GetterErrorToString: getter[51] Error thrown from other script with Secret'1356 CONSOLE MESSAGE: line 20: [URIError] e.toString() = 'GetterErrorToString: getter[51] Error thrown from other script with Secret' 1357 1357 CONSOLE MESSAGE: line 24: [case 52] throw e; 1358 1358 CONSOLE MESSAGE: line 95: [case 52] in 'toString' getter[52]: error.message = 'Error thrown from other script with Secret' … … 1368 1368 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1369 1369 CONSOLE MESSAGE: line 38: PASSED: Did not see any Secret from another domain 1370 CONSOLE MESSAGE: line 36: OtherScript Error: Error thrown from other script with Secret1370 CONSOLE MESSAGE: line 36: OtherScriptURIError: Error thrown from other script with Secret 1371 1371 Should not be able to read the secret text from another site. -
trunk/LayoutTests/imported/w3c/ChangeLog
r227870 r227898 1 2018-01-31 Saam Barati <sbarati@apple.com> 2 3 JSC incorrectly interpreting script, sets Global Property instead of Global Lexical variable (LiteralParser / JSONP path) 4 https://bugs.webkit.org/show_bug.cgi?id=182074 5 <rdar://problem/36846261> 6 7 Reviewed by Mark Lam. 8 9 * web-platform-tests/service-workers/service-worker/import-scripts-updated-flag.https-expected.txt: 10 1 11 2018-01-30 Youenn Fablet <youenn@apple.com> and Oleksandr Skachkov <gskachkov@gmail.com> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/import-scripts-updated-flag.https-expected.txt
r224724 r227898 1 CONSOLE MESSAGE: line 30: Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'registration.unregister')2 1 3 FAIL initialize global state assert_unreached: unregister and register should not fail: Error: assert_equals: expected (string) "root" but got (object) null Reached unreachable code 4 FAIL import script previously imported at worker evaluation time promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'registration.installing')" 5 FAIL import script previously imported at worker install time promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'registration.installing')" 6 FAIL import script not previously imported promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'registration.installing')" 2 PASS initialize global state 3 PASS import script previously imported at worker evaluation time 4 PASS import script previously imported at worker install time 5 FAIL import script not previously imported assert_equals: expected (string) "TypeError" but got (object) null 6 PASS Tests for importScripts: import scripts updated flag 7 7 -
trunk/Source/JavaScriptCore/ChangeLog
r227897 r227898 1 2018-01-31 Saam Barati <sbarati@apple.com> 2 3 JSC incorrectly interpreting script, sets Global Property instead of Global Lexical variable (LiteralParser / JSONP path) 4 https://bugs.webkit.org/show_bug.cgi?id=182074 5 <rdar://problem/36846261> 6 7 Reviewed by Mark Lam. 8 9 This patch teaches the JSONP evaluator about the global lexical environment. 10 Before, it was using the global object as the global scope, but that's wrong. 11 The global lexical environment is the first node in the global scope chain. 12 13 * interpreter/Interpreter.cpp: 14 (JSC::Interpreter::executeProgram): 15 * jsc.cpp: 16 (GlobalObject::finishCreation): 17 (shellSupportsRichSourceInfo): 18 (functionDisableRichSourceInfo): 19 * runtime/LiteralParser.cpp: 20 (JSC::LiteralParser<CharType>::tryJSONPParse): 21 * runtime/LiteralParser.h: 22 1 23 2018-01-31 Saam Barati <sbarati@apple.com> 2 24 -
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r225799 r227898 828 828 JSONPPath.swap(JSONPData[entry].m_path); 829 829 JSValue JSONPValue = JSONPData[entry].m_value.get(); 830 if (JSONPPath.size() == 1 && JSONPPath[0].m_type == JSONPPathEntryTypeDeclare ) {830 if (JSONPPath.size() == 1 && JSONPPath[0].m_type == JSONPPathEntryTypeDeclareVar) { 831 831 globalObject->addVar(callFrame, JSONPPath[0].m_pathEntryName); 832 832 RETURN_IF_EXCEPTION(throwScope, { }); … … 839 839 JSValue baseObject(globalObject); 840 840 for (unsigned i = 0; i < JSONPPath.size() - 1; i++) { 841 ASSERT(JSONPPath[i].m_type != JSONPPathEntryTypeDeclare );841 ASSERT(JSONPPath[i].m_type != JSONPPathEntryTypeDeclareVar); 842 842 switch (JSONPPath[i].m_type) { 843 843 case JSONPPathEntryTypeDot: { 844 844 if (i == 0) { 845 PropertySlot slot(globalObject, PropertySlot::InternalMethodType::Get); 846 if (!globalObject->getPropertySlot(callFrame, JSONPPath[i].m_pathEntryName, slot)) { 847 RETURN_IF_EXCEPTION(throwScope, JSValue()); 848 if (entry) 849 return throwException(callFrame, throwScope, createUndefinedVariableError(callFrame, JSONPPath[i].m_pathEntryName)); 850 goto failedJSONP; 845 RELEASE_ASSERT(baseObject == globalObject); 846 847 auto doGet = [&] (JSSegmentedVariableObject* scope) { 848 PropertySlot slot(scope, PropertySlot::InternalMethodType::Get); 849 if (scope->getPropertySlot(callFrame, JSONPPath[i].m_pathEntryName, slot)) 850 return slot.getValue(callFrame, JSONPPath[i].m_pathEntryName); 851 return JSValue(); 852 }; 853 854 JSValue result = doGet(globalObject->globalLexicalEnvironment()); 855 RETURN_IF_EXCEPTION(throwScope, JSValue()); 856 if (result) { 857 baseObject = result; 858 continue; 851 859 } 852 baseObject = slot.getValue(callFrame, JSONPPath[i].m_pathEntryName); 853 } else 854 baseObject = baseObject.get(callFrame, JSONPPath[i].m_pathEntryName); 860 861 result = doGet(globalObject); 862 RETURN_IF_EXCEPTION(throwScope, JSValue()); 863 if (result) { 864 baseObject = result; 865 continue; 866 } 867 868 if (entry) 869 return throwException(callFrame, throwScope, createUndefinedVariableError(callFrame, JSONPPath[i].m_pathEntryName)); 870 goto failedJSONP; 871 } 872 873 baseObject = baseObject.get(callFrame, JSONPPath[i].m_pathEntryName); 855 874 RETURN_IF_EXCEPTION(throwScope, JSValue()); 856 875 continue; … … 866 885 } 867 886 } 887 888 if (JSONPPath.size() == 1 && JSONPPath.last().m_type != JSONPPathEntryTypeLookup) { 889 RELEASE_ASSERT(baseObject == globalObject); 890 JSGlobalLexicalEnvironment* scope = globalObject->globalLexicalEnvironment(); 891 if (scope->hasProperty(callFrame, JSONPPath.last().m_pathEntryName)) 892 baseObject = scope; 893 RETURN_IF_EXCEPTION(throwScope, JSValue()); 894 } 895 868 896 PutPropertySlot slot(baseObject); 869 897 switch (JSONPPath.last().m_type) { … … 878 906 jsonArg.append(JSONPValue); 879 907 ASSERT(!jsonArg.hasOverflowed()); 880 JSValue thisValue = JSONPPath.size() == 1 ? jsUndefined() : baseObject;908 JSValue thisValue = JSONPPath.size() == 1 ? jsUndefined() : baseObject; 881 909 JSONPValue = JSC::call(callFrame, function, callType, callData, thisValue, jsonArg); 882 910 RETURN_IF_EXCEPTION(throwScope, JSValue()); … … 895 923 default: 896 924 RELEASE_ASSERT_NOT_REACHED(); 897 return jsUndefined();925 return jsUndefined(); 898 926 } 899 927 result = JSONPValue; -
trunk/Source/JavaScriptCore/jsc.cpp
r226338 r227898 342 342 static EncodedJSValue JSC_HOST_CALL functionHeapCapacity(ExecState*); 343 343 static EncodedJSValue JSC_HOST_CALL functionFlashHeapAccess(ExecState*); 344 static EncodedJSValue JSC_HOST_CALL functionDisableRichSourceInfo(ExecState*); 344 345 345 346 struct Script { … … 597 598 addFunction(vm, "heapCapacity", functionHeapCapacity, 0); 598 599 addFunction(vm, "flashHeapAccess", functionFlashHeapAccess, 0); 600 601 addFunction(vm, "disableRichSourceInfo", functionDisableRichSourceInfo, 0); 599 602 } 600 603 … … 616 619 }; 617 620 621 static bool supportsRichSourceInfo = true; 622 static bool shellSupportsRichSourceInfo(const JSGlobalObject*) 623 { 624 return supportsRichSourceInfo; 625 } 626 618 627 const ClassInfo GlobalObject::s_info = { "global", &JSGlobalObject::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(GlobalObject) }; 619 628 const GlobalObjectMethodTable GlobalObject::s_globalObjectMethodTable = { 620 &s upportsRichSourceInfo,629 &shellSupportsRichSourceInfo, 621 630 &shouldInterruptScript, 622 631 &javaScriptRuntimeFlags, … … 1734 1743 } 1735 1744 1745 EncodedJSValue JSC_HOST_CALL functionDisableRichSourceInfo(ExecState*) 1746 { 1747 supportsRichSourceInfo = false; 1748 return JSValue::encode(jsUndefined()); 1749 } 1750 1736 1751 template<typename ValueType> 1737 1752 typename std::enable_if<!std::is_fundamental<ValueType>::value>::type addOption(VM&, JSObject*, Identifier, ValueType) { } -
trunk/Source/JavaScriptCore/runtime/LiteralParser.cpp
r224309 r227898 64 64 if (m_lexer.next() != TokIdentifier) 65 65 return false; 66 entry.m_type = JSONPPathEntryTypeDeclare ;66 entry.m_type = JSONPPathEntryTypeDeclareVar; 67 67 entry.m_pathEntryName = Identifier::fromString(&vm, m_lexer.currentToken()->start, m_lexer.currentToken()->end - m_lexer.currentToken()->start); 68 68 path.append(entry); … … 75 75 return false; 76 76 TokenType tokenType = m_lexer.next(); 77 if (entry.m_type == JSONPPathEntryTypeDeclare && tokenType != TokAssign)77 if (entry.m_type == JSONPPathEntryTypeDeclareVar && tokenType != TokAssign) 78 78 return false; 79 79 while (tokenType != TokAssign) { -
trunk/Source/JavaScriptCore/runtime/LiteralParser.h
r218794 r227898 37 37 38 38 enum JSONPPathEntryType { 39 JSONPPathEntryTypeDeclare , // var pathEntryName = JSON39 JSONPPathEntryTypeDeclareVar, // var pathEntryName = JSON 40 40 JSONPPathEntryTypeDot, // <prior entries>.pathEntryName = JSON 41 41 JSONPPathEntryTypeLookup, // <prior entries>[pathIndex] = JSON
Note:
See TracChangeset
for help on using the changeset viewer.