Skip to content

Commit

Permalink
Fix URL fragments (mdn#22388)
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar authored Nov 22, 2022
1 parent e04cb8c commit 94c4cc4
Show file tree
Hide file tree
Showing 31 changed files with 35 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Events have three functions:
- `id`
- : `string`. ID of the folder whose children were reordered.
- `reorderInfo`
- : [`object`](#reorderinfo). Object containing Additional objects.
- : `object`. Object containing Additional objects. See the [reorderInfo](#reorderinfo_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Events have three functions:
- `id`
- : `string`. ID of the item that was moved.
- `moveInfo`
- : [`object`](#moveinfo). Object containing more details about the move.
- : `object`. Object containing more details about the move. See the [moveInfo](#moveinfo_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Events have three functions:
- `id`
- : `string`. ID of the item that was removed.
- `removeInfo`
- : [`object`](#removeinfo). More details about the removed item.
- : `object`. More details about the removed item. See the [removeInfo](#removeinfo_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Events have three functions:
- : A callback function that will be called when this event occurs. This function will be passed the following arguments:

- `downloadDelta`
- : An [`object`](#downloaddelta) representing the {{WebExtAPIRef('downloads.DownloadItem')}} object that changed, and the status of all the properties that changed in it.
- : An `object` representing the {{WebExtAPIRef('downloads.DownloadItem')}} object that changed, and the status of all the properties that changed in it. See the [downloadDelta](#downloaddelta_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `activeInfo`
- : [`object`](#activeinfo). ID of the tab that was made active, and ID of its window.
- : `object`. ID of the tab that was made active, and ID of its window. See the [activeInfo](#activeinfo_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Events have three functions:
- `tabId`
- : `integer`. The ID of the tab that has become active.
- `selectInfo`
- : [`object`](#selectinfo).
- : `object`. See the [selectInfo](#selectinfo_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Events have three functions:
- `tabId`
- : `integer`. ID of the tab that was attached to a new window.
- `attachInfo`
- : [`object`](#attachinfo). ID of the new window, and index of the tab within it.
- : `object`. ID of the new window, and index of the tab within it. See the [attachInfo](#attachinfo_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Events have three functions:
- `tabId`
- : `integer`. ID of the tab that was detached.
- `detachInfo`
- : [`object`](#detachinfo). ID of the previous window, and index of the tab within it.
- : `object`. ID of the previous window, and index of the tab within it. See the [detachInfo](#detachinfo_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `selectInfo`
- : [`object`](#selectinfo).
- : `object`. See the [selectInfo](#selectinfo_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `highlightInfo`
- : [`object`](#highlightinfo). ID(s) of the highlighted tabs, and ID of their window.
- : `object`. ID(s) of the highlighted tabs, and ID of their window. See the [highlightInfo](#highlightinfo_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Events have three functions:
- `tabId`
- : `integer`. ID of the tab the user moved.
- `moveInfo`
- : [`object`](#moveinfo). Information about the move.
- : `object`. Information about the move. See the [moveInfo](#moveinfo_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Events have three functions:
- `tabId`
- : `integer`. ID of the tab that closed.
- `removeInfo`
- : [`object`](#removeinfo). The tab's window ID, and a boolean indicating whether the window is also being closed.
- : `object`. The tab's window ID, and a boolean indicating whether the window is also being closed. See the [removeInfo](#removeinfo_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ Events have three functions:
- `tabId`
- : `integer`. The ID of the tab that has become active.
- `selectInfo`
- : [`object`](#selectinfo).
- : `object`. See the [selectInfo](#selectinfo_2) section for more details.

## Additional objects

### selectInfo

- `windowId`
- : `integer`. The ID of the window the selected tab changed inside of.
- : `integer`. The ID of the window the selected tab changed in.

## Browser compatibility

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Events have three functions:
- `tabId`
- : `integer`. The ID of the updated tab.
- `changeInfo`
- : [`object`](#changeinfo). Properties of the tab that changed. See [`changeInfo`](#changeinfo_2) below.
- : `object`. Properties of the tab that changed. See the [changeInfo](#changeinfo_2) section for more details.
- `tab`
- : {{WebExtAPIRef('tabs.Tab')}}. The new state of the tab.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `ZoomChangeInfo`
- : [`object`](#zoomchangeinfo). Information about the zoom event.
- : `object`. Information about the zoom event. See the [ZoomChangeInfo](#zoomchangeinfo_2) section for more details.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the navigation event.
- : `object`. Details about the navigation event. See the [details](#details_2) section for more information.

- `filter` {{optional_inline}}
- : `object`. An object containing a single property `url`, which is an `Array` of {{WebExtAPIRef("events.UrlFilter")}} objects. If you include this parameter, then the event will fire only for transitions to URLs which match at least one `UrlFilter` in the array. If you omit this parameter, the event will fire for all transitions.
Expand All @@ -61,7 +61,7 @@ Events have three functions:
- `url`
- : `string`. The URL to which the given frame will navigate.
- `processId`
- : `integer`. The ID of the process in which this tab is being rendered (This property is **not supported on Firefox** and it is **deprecated on Chrome**).
- : `integer`. The ID of the process in which this tab is being rendered (This property is **not supported on Firefox**, and it is **deprecated on Chrome**).
- `frameId`
- : `integer`. Frame in which the navigation is about to occur. `0` indicates that navigation happens in the tab's top-level browsing context, not in a nested {{HTMLElement("iframe")}}. A positive value indicates that navigation happens in a nested iframe. Frame IDs are unique for a given tab and process.
- `parentFrameId`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the navigation event.
- : `object`. Details about the navigation event. See the [details](#details_2) section for more information.

- `filter` {{optional_inline}}
- : `object`. An object containing a single property `url`, which is an `Array` of {{WebExtAPIRef("events.UrlFilter")}} objects. If you include this parameter, then the event will fire only for transitions to URLs which match at least one `UrlFilter` in the array. If you omit this parameter, the event will fire for all transitions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the navigation event.
- : `object`. Details about the navigation event. See the [details](#details_2) section for more information.

- `filter` {{optional_inline}}
- : `object`. An object containing a single property `url`, which is an `Array` of {{WebExtAPIRef("events.UrlFilter")}} objects. If you include this parameter, then the event will fire only for transitions to URLs which match at least one `UrlFilter` in the array. If you omit this parameter, the event will fire for all transitions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the navigation event. See [details](#details_2) below.
- : `object`. Details about the navigation event. See the [details](#details_2) section for more information.

- `filter` {{optional_inline}}
- : `object`. An object containing a single property `url`, which is an `Array` of {{WebExtAPIRef("events.UrlFilter")}} objects. If you include this parameter, then the event will fire only for transitions to URLs which match at least one `UrlFilter` in the array. If you omit this parameter, the event will fire for all transitions. Note that `filter` is not supported in Firefox.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the navigation event.
- : `object`. Details about the navigation event. See the [details](#details_2) section for more information.

- `filter` {{optional_inline}}
- : `object`. An object containing a single property `url`, which is an {{jsxref("Array")}} of {{WebExtAPIRef("events.UrlFilter")}} objects. If you include this parameter, then the event will fire only for transitions to URLs which match at least one `UrlFilter` in the array. If you omit this parameter, the event will fire for all transitions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the navigation event.
- : `object`. Details about the navigation event. See the [details](#details_2) section for more information.

- `filter` {{optional_inline}}
- : `object`. An object containing a single property `url`, which is an `Array` of {{WebExtAPIRef("events.UrlFilter")}} objects. If you include this parameter, then the event will fire only for transitions to URLs which match at least one `UrlFilter` in the array. If you omit this parameter, the event will fire for all transitions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the navigation event.
- : `object`. Details about the navigation event. See the [details](#details_2) section for more information.

- `filter` {{optional_inline}}
- : `object`. An object containing a single property `url`, which is an `Array` of {{WebExtAPIRef("events.UrlFilter")}} objects. If you include this parameter, then the event will fire only for transitions to URLs which match at least one `UrlFilter` in the array. If you omit this parameter, the event will fire for all transitions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details).
- : `object`. See the [details](#details_2) section for more information.

## Additional objects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Events have three functions:
- : A function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the request. See [`details`](#details_2) below.
- : `object`. Details about the request. See the [details](#details_2) section for more information.

Returns: {{WebExtAPIRef('webRequest.BlockingResponse')}} or a {{jsxref("Promise")}}.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Events have three functions:
- : A function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the request. See [`details`](#details_2) below.
- : `object`. Details about the request. See the [details](#details_2) section for more information.

- `filter`
- : {{WebExtAPIRef('webRequest.RequestFilter')}}. A filter that restricts the events that will be sent to this listener.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the request. See [`details`](#details_2) below.
- : `object`. Details about the request. See the [details](#details_2) section for more information.

Returns: {{WebExtAPIRef('webRequest.BlockingResponse')}}. If `"blocking"` is specified in the `extraInfoSpec` parameter, the event listener should return a `BlockingResponse` object, and can set either its `cancel` or its `redirectUrl` properties. From Firefox 52 onwards, instead of returning `BlockingResponse`, the listener can return a [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) which is resolved with a `BlockingResponse`. This enables the listener to process the request asynchronously.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ It is possible for extensions to conflict here. If two extensions listen to `onB

Not all headers actually sent are always included in `requestHeaders`. In particular, headers related to caching (for example, `Cache-Control`, `If-Modified-Since`, `If-None-Match`) are never sent. Also, behavior here may differ across browsers.

According to the specification, header names are case-insensitive. This means that be to sure of matching a particular header, the listener should lowercase the name before comparing it:
According to the specification, header names are case-insensitive. This means that to match a particular header, the listener should lowercase the name before comparing it:

```js
for (const header of e.requestHeaders) {
Expand Down Expand Up @@ -72,7 +72,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details of the request. This will include request headers if you have included `"requestHeaders"` in `extraInfoSpec`.
- : `object`. Details of the request. This will include request headers if you have included `"requestHeaders"` in `extraInfoSpec`. See the [details](#details_2) section for more information.

Returns: {{WebExtAPIRef('webRequest.BlockingResponse')}}. If `"blocking"` is specified in the `extraInfoSpec` parameter, the event listener should return a `BlockingResponse` object, and can set its `requestHeaders` property.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Events have three functions:
- : A function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the request. See [`details`](#details_2) below.
- : `object`. Details about the request. See the [details](#details_2) section for more information.

- `filter`
- : {{WebExtAPIRef('webRequest.RequestFilter')}}. A filter that restricts the events that will be sent to this listener.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Events have three functions:
- : A function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the request. See [`details`](#details_2) below.
- : `object`. Details about the request. See the [details](#details_2) section for more information.

- `filter`
- : {{WebExtAPIRef('webRequest.RequestFilter')}}. A filter that restricts the events that will be sent to this listener.
Expand Down Expand Up @@ -147,7 +147,7 @@ Events have three functions:
- `NS_ERROR_MALWARE_URI` indicating a malware URI.
- `NS_ERROR_PHISHING_URI` indicating a phishing URI.
- `NS_ERROR_TRACKING_URI` indicating a tracking URI.
- `NS_ERROR_UNWANTED_URI` indicating a unwanted URI.
- `NS_ERROR_UNWANTED_URI` indicating an unwanted URI.
- `NS_ERROR_BLOCKED_URI` indicating a blocked URI.
- `NS_ERROR_HARMFUL_URI` indicating a harmful URI.
- `NS_ERROR_FINGERPRINTING` indicating a fingerprinting URI.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Events have three functions:
- : A function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the request. See [`details`](#details_2) below.
- : `object`. Details about the request. See the [details](#details_2) section for more information.

- `filter`
- : {{WebExtAPIRef('webRequest.RequestFilter')}}. A filter that restricts the events that will be sent to this listener.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Events have three functions:
- : Function that will be called when this event occurs. The function will be passed the following arguments:

- `details`
- : [`object`](#details). Details about the request. See [`details`](#details_2) below.
- : `object`. Details about the request. See the [details](#details_2) section for more information.

- `filter`
- : {{WebExtAPIRef('webRequest.RequestFilter')}}. A filter that restricts the events that will be sent to this listener.
Expand Down

0 comments on commit 94c4cc4

Please sign in to comment.