Esempio n. 1
0
  onFrameStartedLoading: task.async(function*(params) {
    if (params.frameId != this.rootFrameId) {
      return;
    }

    emit(this, "tab-navigated", this.currentURL, "start");
  }),
Esempio n. 2
0
 cacheOrSend: function(type, payload) {
   if (this.enabledListeners.has(type)) {
     emit(this, type, payload);
   } else {
     // XXX: Maybe we should limit the size of this cache?
     this.messageCache[type].push(payload);
   }
 },
Esempio n. 3
0
  onPageNavigated: function(params) {
    // XXX: We only send tabNavigated for toplevel frame loads.
    // Which is a weakness of the fxdevtools protocol, look in to that.
    if (params.frame.parentId) {
      return;
    }

    this.rootFrameId = params.frame.id;
    this.currentURL = params.frame.url;

    emit(this, "tab-navigated", params.frame.url, "stop");
  },