Project

General

Profile

Task #3579

Micro forwarder: Status page to show faces and FIB

Added by Jeff Thompson almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
04/01/2016
Due date:
% Done:

100%

Estimated time:

Description

The Micro forwarder extension already has the shell for a status page. Update it to show the faces and FIB, like nfd-status.


Related issues

Blocked by NDN in the browser - Task #3578: Micro forwarder: Support list faces and list FIBClosedJeff Thompson04/01/2016

Actions
Blocks NDN in the browser - Task #3581: Micro forwarder: Sign the Firefox extensionClosedJeff Thompson04/01/2016

Actions
Blocks NDN in the browser - Task #3582: Micro forwarder: Sign the Chrome extensionClosedWentao Shang04/01/2016

Actions
#1

Updated by Jeff Thompson almost 5 years ago

  • Blocked by Task #3578: Micro forwarder: Support list faces and list FIB added
#2

Updated by Jeff Thompson almost 5 years ago

  • Blocks Task #3581: Micro forwarder: Sign the Firefox extension added
#3

Updated by Jeff Thompson almost 5 years ago

  • Blocks Task #3582: Micro forwarder: Sign the Chrome extension added
#4

Updated by Jeff Thompson almost 5 years ago

  • Status changed from New to In Progress
  • Assignee set to Wentao Shang

Hi Wentao. The config.html page works to register a route and show status, but only when I open in as a normal web page. It doesn't work when I open it from the toolbar button. I assigned this to you for you take a look. Maybe a page loaded from the toolbar button doesn't add the port listeners?

https://github.com/named-data/ndn-js/blob/master/tools/micro-forwarder/extension/config.html

#5

Updated by Wentao Shang almost 5 years ago

It's true that the html page inside the extension won't load the content script automatically when it is opened. Actually this is quite easy to fix: we just need to include content.js inside the config.html page. If you want I can push this one-line change directly.

#6

Updated by Wentao Shang almost 5 years ago

I also found a small bug while testing config.html: if I make a typo in the url, the websocket connection will fail to create eventually, but the wrong url will persist when you click on "get status" button.

#7

Updated by Jeff Thompson almost 5 years ago

Yes, please push this change.

#8

Updated by Jeff Thompson almost 5 years ago

For the WebSocket bug, I created issue #3586.

#9

Updated by Wentao Shang almost 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100
#10

Updated by Jeff Thompson almost 5 years ago

Hi Wentao. Is the Config button supposed to work in Chrome? It doesn't open the config HTML page for me.

#11

Updated by Wentao Shang almost 5 years ago

Jeff Thompson wrote:

Hi Wentao. Is the Config button supposed to work in Chrome? It doesn't open the config HTML page for me.

After some research, I found out that Chrome doesn't allow you to inline JavaScript code in the extension HTML page, like in:

https://github.com/named-data/ndn-js/blob/master/tools/micro-forwarder/extension/popup/choose_option.html#L11

There is a walk-around I found on the Web that adds an "click" event listener to the button in the JS file. I'll push the fix now.

#13

Updated by Jeff Thompson almost 5 years ago

Thanks. The page loads in Chrome but I get some JavaScript errors. I'll open a new issue.

Also available in: Atom PDF