Giter Site home page Giter Site logo

peter.sh's Issues

Highlighted commits per Chrome release

It's been on my list for quite a while (and @addyosmani keeps nagging me about it) to enable viewing highlighted commits per Chromium release, rather than just those in the last 14 days.

In order to implement this accurately, I'd need a commit hook monitoring BUILD updates to //chrome/VERSION. This gives us the SHA for Chromium at that revision. For Blink, Skia and v8, I need to parse the //DEPS file at that revision and find the current revisions for these repositories. This should be stored as a set of {build, repository, revision} records in the database.

Then we need to know the BUILD that's associated with a Chrome release. This will have to be a manual process. My current idea is to have a JSON file here on GitHub (so that anyone can update it) mapping major Chrome versions to branches -- Chrome 40 would be BUILD 2214. OmahaProxy can provide this information.

Displaying them, assuming an URL similar to https://commits.peter.sh/chrome/40/, would then require mapping 40 to the BUILD (2214) and finding the BUILD for the previous release (39 -> 2171). Then, for each repository, select the highlighted commits where the commit date is between those of the revisions mentioned in the BUILD records in the database.

Addy mentions it might be nice to have diffs between multiple releases, e.g. between 40 and 37, but I'm not sure there's a valid use-case for that so I'd like to keep it out for now.

Another edge-case are merged commits. There are cases where an interesting commit gets merged to a release branch. This should be fairly rare for Web Exposed changes, but we'd miss out on these changes for now.

Tag flags that only apply to certain environments

Some command line flags in Chrome are not available for the entirety of the project, but rather only in specific environments, e.g. Mojo. Take the following flag:

https://code.google.com/p/chromium/codesearch#chromium/src/mojo/runner/switches.cc&q=kUseTemporaryUserDataDir&sq=package:chromium&type=cs&l=49

This is being presented as follows:

http://peter.sh/experiments/chromium-command-line-switches/#use-temporary-user-data-dir

.. yet is only available in the Mojo runner. A tag would significantly help in clarifying this.

[Context: https://crbug.com/529837]

Problem and error 401

HI,
I have a problem, error:
POST https://www.xxxx.fr/notif2/push.php 401 (anonymous) @ VM107 push_generator.js:787 Promise.then (async) PushGenerator.sendMessage @ VM107 push_generator.js:778
And line 778 to 787:
`.then(function(request) {
var headers = new Headers();
Object.keys(request.headers).forEach(function(headerName) {
headers.append(headerName, request.headers[headerName]);
});

// Proxy everything through a PHP script to get around CORS restrictions.
headers.append('X-Endpoint', request.url);

return fetch('https://www.xxxx.fr/notif2/push.php', {
  method: 'POST',
  headers: headers,
  body: request.body
});`

I can't find where is the problem. Can you help me ?
Thank you

Java command line flags are omitted

BackgroundFetchSettledEvent JS error

In the new version of the spec, getting the fetches from the event returns a Promise.

event.fetches.forEach(...)

should become something like

(await event.fetches.values()).forEach(...);

How to close notification after reply?

Steps to reproduce:

  1. Open https://tests.peter.sh/notification-generator/
  2. Allow to show notifications in the browser permission prompt
  3. Select "One action (type text)" in the "Actions" dropdown menu
  4. Click "Display the notification" button
  5. Receive the notification and click "Reply" action button
  6. Type something
  7. Click "Send" icon

notification-inline-reply-android-1

Expected behavior:

The notification should close after clicking on "Send" icon

Current behavior:

If "Close it?" checkbox is unchecked, after clicking on "Send" icon it becomes a spinner that spins endlessly. The notification won't close.

notification-inline-reply-android-2

If "Close it?" checkbox is checked, after clicking on "Send" icon the typed text is added at the top, you can click "Reply" action button again, type something, and click "Send" icon, this text is also added at the top. The notification won't close.

notification-inline-reply-android-3

Question

How to close the notification after reply? Should I return a promise in notificationclick event listener in addition to event.notification.close() or something else?

Is it a bug in Chrome for Android? The notification successfully closes in Chrome on Windows after clicking "Reply" action button (in both cases, if "Close it?" checkbox is checked or unchecked):

notification-inline-reply-windows

@beverloo @gauntface @anitawoodruff Please help me figure it out. ๐Ÿ˜‰

Network switches (eg --disable-http2) are excluded

Web-Push-Javascript

Web-Push-Php send webpush via php.
I would to use client javascript to send webpush.
Do I can to use this library to get it?
How to have to set the value?
in Web-Push-Php I have in server:
vapid public.kye and private.key
and when register I get:
endpoint, publicKey, authToken, "contentEncoding":"aesgcm".

Do it is possible to use a hxr javascript instead of push.php?

Identify command line flags only available to certain shells

http://peter.sh/experiments/chromium-command-line-switches/

Certain flags, e.g. --run-layout-test, are only available in certain shells rather than in all of Chrome. This could be determined based on the path of the file, which starts with //content/shell/ in case of the aforementioned flag.

Identifying them using either a new conditional, or a separate new flag, would increase clarify about the applicability.

Thanks to @Jip-Hop for the suggestion :-).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.