Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devtools: api to inspect service worker #1719

Merged
merged 2 commits into from
May 27, 2015

Conversation

deepak1556
Copy link
Member

Fixes #1331

Depends on electron-archive/brightray#107

  • Need to implement for browser window (facing some crashes), currently works for webview

@deepak1556
Copy link
Member Author

with next update for chromium we get better observers for service wokers

@deepak1556 deepak1556 changed the title devtools: api to inspect service worker for current webcontents devtools: api to inspect service worker May 18, 2015
@deepak1556
Copy link
Member Author

/cc @paulcbetts , @hokein thoughts ?

@anaisbetts
Copy link
Contributor

Into it!

@@ -317,6 +317,17 @@ void NativeWindow::InspectElement(int x, int y) {
agent->InspectElement(x, y);
}

void NativeWindow::InspectServiceWorker() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why adding InspectServiceWorker for NativeWindow?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to support BrowserWindow.inspectServiceWorker .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is BrowserWindow.inspectServiceWorker needed? I think we can just use window.webContents.inspectServiceWorker.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the devtools api we have listed are on BrowserWindow besides if they use window.webcontents before its finished loading wouldnt webcontents.opendevtools crash ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

zcbenz added a commit that referenced this pull request May 27, 2015
devtools: api to inspect service worker
@zcbenz zcbenz merged commit 4a37669 into electron:master May 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API to inspect Service Workers
3 participants