Bug 1908539 restrict MacOS platform audio processing to Nightly r=webrtc-reviewers...
[gecko.git] / uriloader / base / nsIWebProgressListener.idl
blobb350c05446b4cedc5838b897cb6ab473c894da5c
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsISupports.idl"
9 interface nsIWebProgress;
10 interface nsIRequest;
11 interface nsIURI;
13 /**
14 * The nsIWebProgressListener interface is implemented by clients wishing to
15 * listen in on the progress associated with the loading of asynchronous
16 * requests in the context of a nsIWebProgress instance as well as any child
17 * nsIWebProgress instances. nsIWebProgress.idl describes the parent-child
18 * relationship of nsIWebProgress instances.
20 [scriptable, uuid(a9df523b-efe2-421e-9d8e-3d7f807dda4c)]
21 interface nsIWebProgressListener : nsISupports
23 /**
24 * State Transition Flags
26 * These flags indicate the various states that requests may transition
27 * through as they are being loaded. These flags are mutually exclusive.
29 * For any given request, onStateChange is called once with the STATE_START
30 * flag, zero or more times with the STATE_TRANSFERRING flag or once with the
31 * STATE_REDIRECTING flag, and then finally once with the STATE_STOP flag.
32 * NOTE: For document requests, a second STATE_STOP is generated (see the
33 * description of STATE_IS_WINDOW for more details).
35 * STATE_START
36 * This flag indicates the start of a request. This flag is set when a
37 * request is initiated. The request is complete when onStateChange is
38 * called for the same request with the STATE_STOP flag set.
40 * STATE_REDIRECTING
41 * This flag indicates that a request is being redirected. The request
42 * passed to onStateChange is the request that is being redirected. When a
43 * redirect occurs, a new request is generated automatically to process the
44 * new request. Expect a corresponding STATE_START event for the new
45 * request, and a STATE_STOP for the redirected request.
47 * STATE_TRANSFERRING
48 * This flag indicates that data for a request is being transferred to an
49 * end consumer. This flag indicates that the request has been targeted,
50 * and that the user may start seeing content corresponding to the request.
52 * STATE_NEGOTIATING
53 * This flag is not used.
55 * STATE_STOP
56 * This flag indicates the completion of a request. The aStatus parameter
57 * to onStateChange indicates the final status of the request.
59 const unsigned long STATE_START = 0x00000001;
60 const unsigned long STATE_REDIRECTING = 0x00000002;
61 const unsigned long STATE_TRANSFERRING = 0x00000004;
62 const unsigned long STATE_NEGOTIATING = 0x00000008;
63 const unsigned long STATE_STOP = 0x00000010;
66 /**
67 * State Type Flags
69 * These flags further describe the entity for which the state transition is
70 * occuring. These flags are NOT mutually exclusive (i.e., an onStateChange
71 * event may indicate some combination of these flags).
73 * STATE_IS_REQUEST
74 * This flag indicates that the state transition is for a request, which
75 * includes but is not limited to document requests. (See below for a
76 * description of document requests.) Other types of requests, such as
77 * requests for inline content (e.g., images and stylesheets) are
78 * considered normal requests.
80 * STATE_IS_DOCUMENT
81 * This flag indicates that the state transition is for a document request.
82 * This flag is set in addition to STATE_IS_REQUEST. A document request
83 * supports the nsIChannel interface and its loadFlags attribute includes
84 * the nsIChannel::LOAD_DOCUMENT_URI flag.
86 * A document request does not complete until all requests associated with
87 * the loading of its corresponding document have completed. This includes
88 * other document requests (e.g., corresponding to HTML <iframe> elements).
89 * The document corresponding to a document request is available via the
90 * DOMWindow attribute of onStateChange's aWebProgress parameter.
92 * STATE_IS_NETWORK
93 * This flag indicates that the state transition corresponds to the start
94 * or stop of activity in the indicated nsIWebProgress instance. This flag
95 * is accompanied by either STATE_START or STATE_STOP, and it may be
96 * combined with other State Type Flags.
98 * Unlike STATE_IS_WINDOW, this flag is only set when activity within the
99 * nsIWebProgress instance being observed starts or stops. If activity
100 * only occurs in a child nsIWebProgress instance, then this flag will be
101 * set to indicate the start and stop of that activity.
103 * For example, in the case of navigation within a single frame of a HTML
104 * frameset, a nsIWebProgressListener instance attached to the
105 * nsIWebProgress of the frameset window will receive onStateChange calls
106 * with the STATE_IS_NETWORK flag set to indicate the start and stop of
107 * said navigation. In other words, an observer of an outer window can
108 * determine when activity, that may be constrained to a child window or
109 * set of child windows, starts and stops.
111 * STATE_IS_WINDOW
112 * This flag indicates that the state transition corresponds to the start
113 * or stop of activity in the indicated nsIWebProgress instance. This flag
114 * is accompanied by either STATE_START or STATE_STOP, and it may be
115 * combined with other State Type Flags.
117 * This flag is similar to STATE_IS_DOCUMENT. However, when a document
118 * request completes, two onStateChange calls with STATE_STOP are
119 * generated. The document request is passed as aRequest to both calls.
120 * The first has STATE_IS_REQUEST and STATE_IS_DOCUMENT set, and the second
121 * has the STATE_IS_WINDOW flag set (and possibly the STATE_IS_NETWORK flag
122 * set as well -- see above for a description of when the STATE_IS_NETWORK
123 * flag may be set). This second STATE_STOP event may be useful as a way
124 * to partition the work that occurs when a document request completes.
126 * STATE_IS_REDIRECTED_DOCUMENT
127 * Same as STATE_IS_DOCUMENT, but sent only after a redirect has occured.
128 * Introduced in order not to confuse existing code with extra state change
129 * events. See |nsDocLoader::OnStartRequest| for more info.
131 const unsigned long STATE_IS_REQUEST = 0x00010000;
132 const unsigned long STATE_IS_DOCUMENT = 0x00020000;
133 const unsigned long STATE_IS_NETWORK = 0x00040000;
134 const unsigned long STATE_IS_WINDOW = 0x00080000;
135 const unsigned long STATE_IS_REDIRECTED_DOCUMENT = 0x00100000;
138 * State Modifier Flags
140 * These flags further describe the transition which is occuring. These
141 * flags are NOT mutually exclusive (i.e., an onStateChange event may
142 * indicate some combination of these flags).
144 * STATE_RESTORING
145 * This flag indicates that the state transition corresponds to the start
146 * or stop of activity for restoring a previously-rendered presentation.
147 * As such, there is no actual network activity associated with this
148 * request, and any modifications made to the document or presentation
149 * when it was originally loaded will still be present.
151 const unsigned long STATE_RESTORING = 0x01000000;
154 * State Security Flags
156 * These flags describe the security state reported by a call to the
157 * onSecurityChange method. These flags are mutually exclusive.
159 * STATE_IS_INSECURE
160 * This flag indicates that the data corresponding to the request
161 * was received over an insecure channel.
163 * STATE_IS_BROKEN
164 * This flag indicates an unknown security state. This may mean that the
165 * request is being loaded as part of a page in which some content was
166 * received over an insecure channel.
168 * STATE_IS_SECURE
169 * This flag indicates that the data corresponding to the request was
170 * received over a secure channel. The degree of security is expressed by
171 * STATE_SECURE_HIGH, STATE_SECURE_MED, or STATE_SECURE_LOW.
173 const unsigned long STATE_IS_INSECURE = 0x00000004;
174 const unsigned long STATE_IS_BROKEN = 0x00000001;
175 const unsigned long STATE_IS_SECURE = 0x00000002;
178 * Mixed active content flags
180 * NOTE: IF YOU ARE ADDING MORE OF THESE FLAGS, MAKE SURE TO EDIT
181 * nsSecureBrowserUIImpl::CheckForBlockedContent().
183 * May be set in addition to the State Security Flags, to indicate that
184 * mixed active content has been encountered.
186 * STATE_BLOCKED_MIXED_ACTIVE_CONTENT
187 * Mixed active content has been blocked from loading.
189 * STATE_LOADED_MIXED_ACTIVE_CONTENT
190 * Mixed active content has been loaded. State should be STATE_IS_BROKEN.
192 const unsigned long STATE_BLOCKED_MIXED_ACTIVE_CONTENT = 0x00000010;
193 const unsigned long STATE_LOADED_MIXED_ACTIVE_CONTENT = 0x00000020;
196 * Mixed display content flags
198 * NOTE: IF YOU ARE ADDING MORE OF THESE FLAGS, MAKE SURE TO EDIT
199 * nsSecureBrowserUIImpl::CheckForBlockedContent().
201 * May be set in addition to the State Security Flags, to indicate that
202 * mixed display content has been encountered.
204 * STATE_BLOCKED_MIXED_DISPLAY_CONTENT
205 * Mixed display content has been blocked from loading.
207 * STATE_LOADED_MIXED_DISPLAY_CONTENT
208 * Mixed display content has been loaded. State should be STATE_IS_BROKEN.
210 const unsigned long STATE_BLOCKED_MIXED_DISPLAY_CONTENT = 0x00000100;
211 const unsigned long STATE_LOADED_MIXED_DISPLAY_CONTENT = 0x00000200;
214 * State bits for EV == Extended Validation == High Assurance
216 * These flags describe the level of identity verification
217 * in a call to the onSecurityChange method.
219 * STATE_IDENTITY_EV_TOPLEVEL
220 * The topmost document uses an EV cert.
221 * NOTE: Available since Gecko 1.9
224 const unsigned long STATE_IDENTITY_EV_TOPLEVEL = 0x00100000;
226 /***
227 * Associated state flag
229 * This flag is used to if a page is inheriting its security context.
231 * STATE_IDENTITY_ASSOCIATED
232 * This document doesn't have an identity of its own, and instead
233 * uses its predecessor's identity.
235 const unsigned long STATE_IDENTITY_ASSOCIATED = 0x00200000;
238 * Broken state flags
240 * These flags describe the reason of the broken state.
242 * STATE_USES_SSL_3
243 * The topmost document uses SSL 3.0.
245 * STATE_USES_WEAK_CRYPTO
246 * The topmost document uses a weak cipher suite such as RC4.
248 * STATE_CERT_USER_OVERRIDDEN
249 * The user has added a security exception for the site.
251 const unsigned long STATE_USES_SSL_3 = 0x01000000;
252 const unsigned long STATE_USES_WEAK_CRYPTO = 0x02000000;
253 const unsigned long STATE_CERT_USER_OVERRIDDEN = 0x04000000;
256 * Content Blocking Event flags
258 * NOTE: IF YOU ARE ADDING MORE OF THESE FLAGS, MAKE SURE TO EDIT
259 * nsSecureBrowserUIImpl::CheckForBlockedContent() AND UPDATE THE
260 * CORRESPONDING LIST IN ContentBlockingController.java
262 * These flags describe the reason of cookie jar rejection.
264 * STATE_BLOCKED_TRACKING_CONTENT
265 * Tracking content has been blocked from loading.
267 * STATE_LOADED_LEVEL_1_TRACKING_CONTENT
268 * Tracking content from the Disconnect Level 1 list has been loaded.
270 * STATE_LOADED_LEVEL_2_TRACKING_CONTENT
271 * Tracking content from the Disconnect Level 2 list has been loaded.
273 * STATE_BLOCKED_FINGERPRINTING_CONTENT
274 * Fingerprinting content has been blocked from loading.
276 * STATE_LOADED_FINGERPRINTING_CONTENT
277 * Fingerprinting content has been loaded.
279 * STATE_REPLACED_FINGERPRINTING_CONTENT
280 * Fingerprinting content which should be blocked from loading was replaced with a
281 * shim.
283 * STATE_ALLOWED_FINGERPRINTING_CONTENT
284 * Fingerprinting content which should be blocked from loading was allowed.
286 * STATE_BLOCKED_CRYPTOMINING_CONTENT
287 * Cryptomining content has been blocked from loading.
289 * STATE_LOADED_CRYPTOMINING_CONTENT
290 * Cryptomining content has been loaded.
292 * STATE_BLOCKED_UNSAFE_CONTENT
293 * Content which againts SafeBrowsing list has been blocked from loading.
295 * STATE_COOKIES_LOADED
296 * Performed a storage access check, which usually means something like a
297 * cookie or a storage item was loaded/stored on the current tab.
298 * Alternatively this could indicate that something in the current tab
299 * attempted to communicate with its same-origin counterparts in other
300 * tabs.
302 * STATE_COOKIES_LOADED_TRACKER
303 * Similar to STATE_COOKIES_LOADED, but only sent if the subject of the
304 * action was a third-party tracker when the active cookie policy imposes
305 * restrictions on such content.
307 * STATE_COOKIES_LOADED_SOCIALTRACKER
308 * Similar to STATE_COOKIES_LOADED, but only sent if the subject of the
309 * action was a third-party social tracker when the active cookie policy
310 * imposes restrictions on such content.
312 * STATE_COOKIES_BLOCKED_BY_PERMISSION
313 * Rejected for custom site permission.
315 * STATE_COOKIES_BLOCKED_TRACKER
316 * Rejected because the resource is a tracker and cookie policy doesn't
317 * allow its loading.
319 * STATE_COOKIES_BLOCKED_SOCIALTRACKER
320 * Rejected because the resource is a tracker from a social origin and
321 * cookie policy doesn't allow its loading.
323 * STATE_COOKIES_PARTITIONED_FOREIGN
324 * Rejected because the resource is a third-party and cookie policy forces
325 * third-party resources to be partitioned.
327 * STATE_COOKIES_BLOCKED_ALL
328 * Rejected because cookie policy blocks all cookies.
330 * STATE_COOKIES_BLOCKED_FOREIGN
331 * Rejected because cookie policy blocks 3rd party cookies.
333 * STATE_BLOCKED_SOCIALTRACKING_CONTENT
334 * SocialTracking content has been blocked from loading.
336 * STATE_LOADED_SOCIALTRACKING_CONTENT
337 * SocialTracking content has been loaded.
339 * STATE_REPLACED_TRACKING_CONTENT
340 * Tracking content which should be blocked from loading was replaced with a
341 * shim.
343 * STATE_ALLOWED_TRACKING_CONTENT
344 * Tracking content which should be blocked from loading was allowed.
346 * STATE_BLOCKED_EMAILTRACING_CONTENT
347 * EmailTracking content has been blocked from loading.
349 * STATE_LOADED_EMAILTRACKING_LEVEL_1_CONTENT
350 * EmailTracking content from the Disconnect level 1 has been loaded.
352 * STATE_LOADED_EMAILTRACKING_LEVEL_2_CONTENT
353 * EmailTracking content from the Disconnect level 2 has been loaded.
355 * STATE_ALLOWED_CANVAS_FINGERPRINTING
356 * A potential attempt to fingerprint using the canvas API was observed.
358 * STATE_ALLOWED_FONT_FINGERPRINTING
359 * A potential attempt to fingerprint by checking the exposed fonts
360 * was observed.
362 * STATE_BLOCKED_SUSPICIOUS_FINGERPRINTING
363 * Suspicious fingerprinting activity has been blocked by the fingerprinting
364 * protection.
366 * STATE_PURGED_BOUNCETRACKER
367 * BounceTrackingProtection purged state for a bounce tracker.
369 const unsigned long STATE_BLOCKED_TRACKING_CONTENT = 1 << 12;
370 const unsigned long STATE_LOADED_LEVEL_1_TRACKING_CONTENT = 1 << 13;
371 const unsigned long STATE_LOADED_LEVEL_2_TRACKING_CONTENT = 1 << 20;
372 const unsigned long STATE_BLOCKED_FINGERPRINTING_CONTENT = 1 << 6;
373 const unsigned long STATE_LOADED_FINGERPRINTING_CONTENT = 1 << 10;
374 const unsigned long STATE_REPLACED_FINGERPRINTING_CONTENT = 1 << 27;
375 const unsigned long STATE_ALLOWED_FINGERPRINTING_CONTENT = 1 << 9;
376 const unsigned long STATE_BLOCKED_CRYPTOMINING_CONTENT = 1 << 11;
377 const unsigned long STATE_LOADED_CRYPTOMINING_CONTENT = 1 << 21;
378 const unsigned long STATE_BLOCKED_UNSAFE_CONTENT = 1 << 14;
379 const unsigned long STATE_COOKIES_LOADED = 1 << 15;
380 const unsigned long STATE_COOKIES_LOADED_TRACKER = 1 << 18;
381 const unsigned long STATE_COOKIES_LOADED_SOCIALTRACKER = 1 << 19;
382 const unsigned long STATE_COOKIES_BLOCKED_BY_PERMISSION = 1 << 28;
383 const unsigned long STATE_COOKIES_BLOCKED_TRACKER = 1 << 29;
384 const unsigned long STATE_COOKIES_BLOCKED_SOCIALTRACKER = 1 << 24;
385 const unsigned long STATE_COOKIES_BLOCKED_ALL = 1 << 30;
386 const unsigned long STATE_COOKIES_PARTITIONED_FOREIGN = 1 << 31;
387 const unsigned long STATE_COOKIES_BLOCKED_FOREIGN = 1 << 7;
388 const unsigned long STATE_BLOCKED_SOCIALTRACKING_CONTENT = 1 << 16;
389 const unsigned long STATE_LOADED_SOCIALTRACKING_CONTENT = 1 << 17;
390 const unsigned long STATE_REPLACED_TRACKING_CONTENT = 1 << 4;
391 const unsigned long STATE_ALLOWED_TRACKING_CONTENT = 1 << 5;
392 const unsigned long STATE_BLOCKED_EMAILTRACKING_CONTENT = 1 << 22;
393 const unsigned long STATE_LOADED_EMAILTRACKING_LEVEL_1_CONTENT = 1 << 23;
394 const unsigned long STATE_LOADED_EMAILTRACKING_LEVEL_2_CONTENT = 1 << 8;
395 const unsigned long STATE_ALLOWED_CANVAS_FINGERPRINTING = 1 << 25;
396 const unsigned long STATE_ALLOWED_FONT_FINGERPRINTING = 1 << 26;
397 const unsigned long STATE_BLOCKED_SUSPICIOUS_FINGERPRINTING = 1 << 2;
398 const unsigned long STATE_PURGED_BOUNCETRACKER = 1 << 3;
401 * Flags for HTTPS-Only and HTTPS-First Mode upgrades
403 * STATE_HTTPS_ONLY_MODE_UPGRADED
404 * When a request has been upgraded by HTTPS-Only Mode
406 * STATE_HTTPS_ONLY_MODE_UPGRADE_FAILED
407 * When an upgraded request failed.
409 * STATE_HTTPS_ONLY_MODE_UPGRADED_FIRST
410 * When a request has been upgraded by HTTPS-First Mode
412 const unsigned long STATE_HTTPS_ONLY_MODE_UPGRADED = 0x00400000;
413 const unsigned long STATE_HTTPS_ONLY_MODE_UPGRADE_FAILED = 0x00800000;
414 const unsigned long STATE_HTTPS_ONLY_MODE_UPGRADED_FIRST = 0x08000000;
417 * Notification indicating the state has changed for one of the requests
418 * associated with aWebProgress.
420 * @param aWebProgress
421 * The nsIWebProgress instance that fired the notification
422 * @param aRequest
423 * The nsIRequest that has changed state.
424 * @param aStateFlags
425 * Flags indicating the new state. This value is a combination of one
426 * of the State Transition Flags and one or more of the State Type
427 * Flags defined above. Any undefined bits are reserved for future
428 * use.
429 * @param aStatus
430 * Error status code associated with the state change. This parameter
431 * should be ignored unless aStateFlags includes the STATE_STOP bit.
432 * The status code indicates success or failure of the request
433 * associated with the state change. NOTE: aStatus may be a success
434 * code even for server generated errors, such as the HTTP 404 error.
435 * In such cases, the request itself should be queried for extended
436 * error information (e.g., for HTTP requests see nsIHttpChannel).
438 void onStateChange(in nsIWebProgress aWebProgress,
439 in nsIRequest aRequest,
440 in unsigned long aStateFlags,
441 in nsresult aStatus);
444 * Notification that the progress has changed for one of the requests
445 * associated with aWebProgress. Progress totals are reset to zero when all
446 * requests in aWebProgress complete (corresponding to onStateChange being
447 * called with aStateFlags including the STATE_STOP and STATE_IS_WINDOW
448 * flags).
450 * @param aWebProgress
451 * The nsIWebProgress instance that fired the notification.
452 * @param aRequest
453 * The nsIRequest that has new progress.
454 * @param aCurSelfProgress
455 * The current progress for aRequest.
456 * @param aMaxSelfProgress
457 * The maximum progress for aRequest.
458 * @param aCurTotalProgress
459 * The current progress for all requests associated with aWebProgress.
460 * @param aMaxTotalProgress
461 * The total progress for all requests associated with aWebProgress.
463 * NOTE: If any progress value is unknown, or if its value would exceed the
464 * maximum value of type long, then its value is replaced with -1.
466 * NOTE: If the object also implements nsIWebProgressListener2 and the caller
467 * knows about that interface, this function will not be called. Instead,
468 * nsIWebProgressListener2::onProgressChange64 will be called.
470 void onProgressChange(in nsIWebProgress aWebProgress,
471 in nsIRequest aRequest,
472 in long aCurSelfProgress,
473 in long aMaxSelfProgress,
474 in long aCurTotalProgress,
475 in long aMaxTotalProgress);
478 * Flags for onLocationChange
480 * LOCATION_CHANGE_SAME_DOCUMENT
481 * This flag is on when |aWebProgress| did not load a new document.
482 * For example, the location change is due to an anchor scroll or a
483 * pushState/popState/replaceState.
485 * LOCATION_CHANGE_ERROR_PAGE
486 * This flag is on when |aWebProgress| redirected from the requested
487 * contents to an internal page to show error status, such as
488 * <about:neterror>, <about:certerror> and so on.
490 * Generally speaking, |aURI| and |aRequest| are the original data. DOM
491 * |window.location.href| is also the original location, while
492 * |document.documentURI| is the redirected location. Sometimes |aURI| is
493 * <about:blank> and |aRequest| is null when the original data does not
494 + remain.
496 * |aWebProgress| does NOT set this flag when it did not try to load a new
497 * document. In this case, it should set LOCATION_CHANGE_SAME_DOCUMENT.
499 * LOCATION_CHANGE_RELOAD
500 * This flag is on when reloading the current page, either from
501 * location.reload() or the browser UI.
503 * LOCATION_CHANGE_HASHCHANGE
504 * This flag is on for same-document location changes where only the URI's
505 * reference fragment has changed. This flag implies
506 * LOCATION_CHANGE_SAME_DOCUMENT.
508 * LOCATION_CHANGE_SESSION_STORE
509 * This flag is on for location changes that are the result of the session
510 * store updating the URI of aWebProgress without actually navigating.
512 const unsigned long LOCATION_CHANGE_SAME_DOCUMENT = 0x00000001;
513 const unsigned long LOCATION_CHANGE_ERROR_PAGE = 0x00000002;
514 const unsigned long LOCATION_CHANGE_RELOAD = 0x00000004;
515 const unsigned long LOCATION_CHANGE_HASHCHANGE = 0x00000008;
516 const unsigned long LOCATION_CHANGE_SESSION_STORE = 0x00000010;
519 * Called when the location of the window being watched changes. This is not
520 * when a load is requested, but rather once it is verified that the load is
521 * going to occur in the given window. For instance, a load that starts in a
522 * window might send progress and status messages for the new site, but it
523 * will not send the onLocationChange until we are sure that we are loading
524 * this new page here.
526 * @param aWebProgress
527 * The nsIWebProgress instance that fired the notification.
528 * @param aRequest
529 * The associated nsIRequest. This may be null in some cases.
530 * @param aLocation
531 * The URI of the location that is being loaded.
532 * @param aFlags
533 * This is a value which explains the situation or the reason why
534 * the location has changed.
536 void onLocationChange(in nsIWebProgress aWebProgress,
537 in nsIRequest aRequest,
538 in nsIURI aLocation,
539 [optional] in unsigned long aFlags);
542 * Notification that the status of a request has changed. The status message
543 * is intended to be displayed to the user (e.g., in the status bar of the
544 * browser).
546 * @param aWebProgress
547 * The nsIWebProgress instance that fired the notification.
548 * @param aRequest
549 * The nsIRequest that has new status.
550 * @param aStatus
551 * This value is not an error code. Instead, it is a numeric value
552 * that indicates the current status of the request. This interface
553 * does not define the set of possible status codes. NOTE: Some
554 * status values are defined by nsITransport and nsISocketTransport.
555 * @param aMessage
556 * Localized text corresponding to aStatus.
558 void onStatusChange(in nsIWebProgress aWebProgress,
559 in nsIRequest aRequest,
560 in nsresult aStatus,
561 in wstring aMessage);
564 * Notification called for security progress. This method will be called on
565 * security transitions (eg HTTP -> HTTPS, HTTPS -> HTTP, FOO -> HTTPS) and
566 * after document load completion. It might also be called if an error
567 * occurs during network loading.
569 * @param aWebProgress
570 * The nsIWebProgress instance that fired the notification.
571 * @param aRequest
572 * The nsIRequest that has new security state.
573 * @param aState
574 * A value composed of the Security State Flags and the Security
575 * Strength Flags listed above. Any undefined bits are reserved for
576 * future use.
578 * NOTE: These notifications will only occur if a security package is
579 * installed.
581 void onSecurityChange(in nsIWebProgress aWebProgress,
582 in nsIRequest aRequest,
583 in unsigned long aState);
586 * Notification called for content blocking events. This method will be
587 * called when content gets allowed/blocked for various reasons per the
588 * Content Blocking rules.
590 * @param aWebProgress
591 * The nsIWebProgress instance that fired the notification.
592 * @param aRequest
593 * The nsIRequest that has new security state.
594 * @param aEvent
595 * A value composed of the Content Blocking Event Flags listed above.
596 * Any undefined bits are reserved for future use.
598 void onContentBlockingEvent(in nsIWebProgress aWebProgress,
599 in nsIRequest aRequest,
600 in unsigned long aEvent);