Skip to content

Commit

Permalink
Rename pending_beacon/ to page-unload-beacon/
Browse files Browse the repository at this point in the history
This is to match the (unofficial) spec name:
https://clelland.github.io/page-unload-beacon/spec.html
  • Loading branch information
foolip authored and Ms2ger committed Oct 11, 2022
1 parent 4e5209f commit e0908f2
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lint.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ SET TIMEOUT: navigation-api/navigation-history-entry/entries-after-bfcache-in-if
SET TIMEOUT: navigation-timing/*
SET TIMEOUT: old-tests/submission/Microsoft/history/history_000.htm
SET TIMEOUT: paint-timing/resources/subframe-painting.html
SET TIMEOUT: pending_beacon/resources/pending_beacon-helper.js
SET TIMEOUT: page-unload-beacon/resources/pending_beacon-helper.js
SET TIMEOUT: performance-timeline/resources/navigation-id-detached-frame-page.html
SET TIMEOUT: portals/resources/portals-adopt-predecessor-portal.html
SET TIMEOUT: preload/single-download-preload.html
Expand Down
3 changes: 3 additions & 0 deletions page-unload-beacon/META.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
spec: https://clelland.github.io/page-unload-beacon/spec.html
suggested_reviewers:
- clelland
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function generatePayload(size) {

function generateSetBeaconURL(uuid, options) {
const host = (options && options.host) || '';
let url = `${host}/pending_beacon/resources/set_beacon.py?uuid=${uuid}`;
let url = `${host}/page-unload-beacon/resources/set_beacon.py?uuid=${uuid}`;
if (options) {
if (options.expectOrigin !== undefined) {
url = `${url}&expectOrigin=${options.expectOrigin}`;
Expand Down Expand Up @@ -141,7 +141,7 @@ async function expectBeacon(uuid, options) {
const res = await poll(
async () => {
const res = await fetch(
`/pending_beacon/resources/get_beacon.py?uuid=${uuid}`,
`/page-unload-beacon/resources/get_beacon.py?uuid=${uuid}`,
{cache: 'no-store'});
return await res.json();
},
Expand Down
File renamed without changes.

0 comments on commit e0908f2

Please sign in to comment.