Project

General

Profile

Actions

Task #3579

closed

Micro forwarder: Status page to show faces and FIB

Added by Anonymous over 8 years ago. Updated over 8 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 3 (0 open3 closed)

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

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

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

Actions
Actions #1

Updated by Anonymous over 8 years ago

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

Updated by Anonymous over 8 years ago

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

Updated by Anonymous over 8 years ago

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

Updated by Anonymous over 8 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

Actions #5

Updated by Wentao Shang over 8 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.

Actions #6

Updated by Wentao Shang over 8 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.

Actions #7

Updated by Anonymous over 8 years ago

Yes, please push this change.

Actions #8

Updated by Anonymous over 8 years ago

For the WebSocket bug, I created issue #3586.

Actions #9

Updated by Wentao Shang over 8 years ago

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

Updated by Anonymous over 8 years ago

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

Actions #11

Updated by Wentao Shang over 8 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.

Actions #13

Updated by Anonymous over 8 years ago

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

Actions

Also available in: Atom PDF