/
124.txt
209 lines (155 loc) · 8.76 KB
/
124.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
[19] 近年の多くの [[Webブラウザー]]には、[[Webページ]]の開発者向けのツールが標準で組み込まれています。
[18] [[HTML Standard]] は[DFN[[RUBYB[開発者コンソール]@en[development console]]]]や[DFN[[RUBYB[開発コンソール]@en[development console]]]]という呼称で[[エラーの報告]]などで言及していますが、
その詳細を規定しているわけではありません。
[36] [CITE[Service Workers]] は単に「console」と呼んでいます。
* 報告
[21] 次の場面で、[[開発者コンソール]]へ[[エラー]]などを報告することができると[[仕様書]]により明示されています。
[FIG(middle list)[
- [[例外の報告]]
- [[イベントハンドラーの現在値を取得]]
- [CODE(HTMLa)@en[[[pattern]]]] [[属性値]]の[[コンパイル]]失敗
- [[受動的]]な[[イベントリスナー]]からの [CODE(DOMm)@en[[[preventDefault]]]]
- [CODE(DOMm)@en[postMessage]] の誤った利用
- [[handle fetch]]
]FIG]
[23] 他に次の場面で報告する実装があります。
[FIG(middle list)[
- [[同期モード]]の [[XHR]]
- [[fetch]] 失敗、例えば:
-- [[混合内容]]制約違反
-- [[同一起源ポリシー]]違反
-- [[CORS]] エラー
-- [[HTTP]] エラー
-- [[TLS]] エラー
-- その他[[ネットワークエラー]]
- [[WebSocket]] のエラー
- [[構文解析誤り]]
]FIG]
[31] 次のものも報告できます。
[FIG(middle list)[
- [[URL構文解析器]]の[[構文違反]]
]FIG]
[34] [[制約群を対話的に検証]]した結果、「スクリプト誤りを報告」
する場合があります。 ([[誤りを報告]]にはリンクされておらず、
詳細な規定もないのですが、[[開発者コンソール]]への報告が意図されていると思われます。)
* 歴史
[1]
[CITE[Safari Developer FAQ]] ([TIME[2006-12-31 11:40:00 +09:00]] 版) <http://developer.apple.com/jp/internet/safari/faq.html#anchor14>
[2] [CITE@en[Console]]
( ([TIME[2011-02-17 00:57:17 +09:00]] 版))
<http://sideshowbarker.github.com/console-spec/>
[3] [[Chrome]] と [[Firefox]] は [CODE(DOMi)@en[[[Console]]]] [[インターフェイスオブジェクト]]が
[CODE(JS)@en[[[window.Console]]]] でアクセスできませんが、
[[WinIE10]] はアクセスできるようです。
[4] [CITE[DeveloperToolsWG/console-object]]
( ([TIME[2014-05-22 04:08:57 +09:00]] 版))
<https://github.com/DeveloperToolsWG/console-object>
[5] [CITE[IRC logs: freenode / #whatwg / 20140902]]
( ([TIME[2014-09-03 02:49:15 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20140902#l-633>
[6] [CITE@en-US[Console - Web API Interfaces | MDN]]
( ([TIME[2014-05-28 11:54:03 +09:00]] 版))
<https://developer.mozilla.org/en-US/docs/Web/API/console>
[7] [CITE@en[console-object/api.md at master · DeveloperToolsWG/console-object]]
( ([TIME[2014-09-03 03:11:35 +09:00]] 版))
<https://github.com/DeveloperToolsWG/console-object/blob/master/api.md>
[8] [CITE@en[terinjokes/console-spec]]
( ([TIME[2014-09-19 00:06:52 +09:00]] 版))
<https://github.com/terinjokes/console-spec>
[9] [CITE[IRC logs: freenode / #whatwg / 20140918]]
( ([TIME[2014-09-19 00:10:12 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20140918#l-697>
[10] [CITE@en[Console Standard]]
([TIME[2014-10-14 17:43:04 +09:00]] 版)
<http://terinjokes.github.io/console-spec/>
[11] [CITE@en[Console API - FirebugWiki]]
([TIME[2015-10-01 12:03:27 +09:00]] 版)
<http://getfirebug.com/wiki/index.php/Console_API>
[FIG(quote)[
[FIGCAPTION[
[12] [CITE[Command Line API Reference | Web Tools - Google Developers]]
([TIME[2015-10-22 02:51:16 +09:00]] 版)
<https://developers.google.com/web/tools/chrome-devtools/debug/command-line/command-line-reference>
]FIGCAPTION]
> The Command Line API contains a collection of convenience functions for performing common tasks: selecting and inspecting DOM elements, displaying data in readable format, stopping and starting the profiler, and monitoring DOM events.
> Note
> This API is only available from within the console itself. You cannot access the Command Line API from scripts on the page.
]FIG]
[FIG(quote)[
[FIGCAPTION[
[13] [CITE@en[The Console]]
([TIME[2015-10-23 13:35:23 +09:00]] 版)
<https://developer.apple.com/library/safari/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Console/Console.html#//apple_ref/doc/uid/TP40007874-CH6-SW1>
]FIGCAPTION]
> You can inspect HTML nodes and JavaScript objects in more detail by using the console commands listed in Table 5-1. Type the command-line APIs interactively within the console.
> If your scripts share the same function name as a Command-Line API function, the function in your scripts takes precedence.
]FIG]
[14] [CITE@en-US[The command line interpreter - Firefox Developer Tools | MDN]]
([TIME[2015-10-01 05:31:01 +09:00]] 版)
<https://developer.mozilla.org/en-US/docs/Tools/Web_Console/The_command_line_interpreter>
[15] [CITE@en[Using the Console to view errors and debug (Windows)]]
([TIME[2015-10-23 13:36:25 +09:00]] 版)
<https://msdn.microsoft.com/en-us//library/dn255006%28v=vs.85%29.aspx>
[16] [CITE@en[Console Debugging API (Internet Explorer)]]
([TIME[2015-10-23 13:36:38 +09:00]] 版)
<https://msdn.microsoft.com/en-us/library/hh772173(v=vs.85).aspx>
[FIG(quote)[
[FIGCAPTION[
[17] [CITE@en[Safari 4.0]]
([TIME[2015-11-04 22:47:26 +09:00]] 版)
<https://developer.apple.com/library/safari/releasenotes/General/WhatsNewInSafari/Articles/Safari_4_0.html#//apple_ref/doc/uid/TP40014305-CH4-SW19>
]FIGCAPTION]
> WebKit has some new and changed console methods that improve functionality and compatibility.
> Note: All of the console methods are compatible with Firebug.
>
]FIG]
[20] [CITE@en[Report errors to developer consoles, not users · whatwg/html@a6d04ea]]
([TIME[2015-12-25 11:47:46 +09:00]] 版)
<https://github.com/whatwg/html/commit/a6d04ea7652f5ad1b61e4ab95de490f51511bffe>
[22] [CITE@en[Encourage logging pattern="" compilation failures · whatwg/html@d2a0cbd]]
([TIME[2016-01-02 11:13:47 +09:00]] 版)
<https://github.com/whatwg/html/commit/d2a0cbdec345ffe5cc803683b30971b5786a5188>
[24] [CITE[''''''[''''''*JavaScript*'''''']'''''' consoleメソッドの使用可否をブラウザごとに調べる - Qiita]]
([TIME[2016-01-27 12:30:01 +09:00]] 版)
<https://qiita.com/cigalecigales/items/44a9b1c72eb0ef9e3968>
[25] [CITE@en[whatwg/console]]
([TIME[2016-02-01 18:40:11 +09:00]] 版)
<https://github.com/whatwg/console>
[26] ([TIME[2016-01-31 06:52:46 +09:00]] 版)
<https://console.spec.whatwg.org/>
[27] [CITE@en[Tweaks for the move to WHATWG · whatwg/console@72187bb]]
([TIME[2016-02-01 18:41:26 +09:00]] 版)
<https://github.com/whatwg/console/commit/72187bb9f021a33a98a3c6af9ebc1fea5d24041a>
[28] [CITE@en[Console Standard]]
([TIME[2016-02-09 08:07:19 +09:00]] 版)
<https://console.spec.whatwg.org/>
[29] [CITE@en[''''''[''''''whatwg'''''']'''''' Opinions on window.console = "foo", and other oddities of window.console]]
([[Domenic Denicola]] 著, [TIME[2016-02-09 08:25:55 +09:00]] 版)
<https://lists.w3.org/Archives/Public/public-whatwg-archive/2016Feb/0001.html>
[30] [CITE@en[Add EventListenerOptions and passive event listener feature · whatwg/dom@253a21b]]
([TIME[2016-02-14 23:56:30 +09:00]] 版)
<https://github.com/whatwg/dom/commit/253a21b8e78e37447c47983916a7cf39c4f6a3c5>
[FIG(quote)[
[FIGCAPTION[
[32] [CITE@en[Web App Manifest]]
([TIME[2016-03-13 03:38:43 +09:00]] 版)
<https://w3c.github.io/manifest/#dfn-issue-a-developer-warning>
]FIGCAPTION]
> When instructed to issue a developer warning, the user agent may report the conformance violation to the developer in a user-agent-specific manner (e.g., report the problem in an error console), or may ignore the error and do nothing.
]FIG]
[33] [CITE@en[Add ''''''[''''''Replaceable'''''']'''''' to the console attributes on Window/WorkerGlobalScope · whatwg/console@59162cf]]
([TIME[2016-03-22 22:43:54 +09:00]] 版)
<https://github.com/whatwg/console/commit/59162cf8ea366dbbcb586d40f5a369154c688ec5>
[35] [[Facebook]] は、
[FIG(quote)[
>
STOP!
>
これは開発者向けのブラウザ機能です。Facebook機能を有効にするためまたは誰かのアカウントをハッキングするために、ここに何かをコピー・貼り付けするように言われた場合、それは第三者があなたのFacebookアカウントへのアクセスを得るための詐欺・不正行為です。
>
詳細はhttps://www.facebook.com/selfxssをご覧ください。
]FIG]
と表示します。 [TIME[2016-06-10T02:59:09.400Z]]
[37] [CITE@en[Changes to Node - NW.js Documentation]]
([TIME[2017-03-15 15:09:12 +09:00]])
<http://docs.nwjs.io/en/latest/References/Changes%20to%20Node/>