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

Various window save/restore operations don't work if you have about:config on the here be dragons page #19

Open
ThosRTanner opened this issue Jul 5, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@ThosRTanner
Copy link
Owner

This function at the end of Session.js

TabGroupsManager.Session.prototype.tmpOverrideGetElementByIdForAboutConfig = function(tab)
{
  //http://zpao.com/posts/session-restore-changes-in-firefox-15/ > '#' removed > fx 15
  //Bug 947212 - Broadcast form data and move it out of tabData.entries[] > fx 29
  //let state = JSON.parse(this.sessionStore.getTabState(tab));
  //let textbox = state.formdata.id["textbox"];

  //no reason to fix this, there is always a textbox element for about:config - not sure when this will be called
  let ssData = tab.linkedBrowser.__SS_data;
  let textbox = ssData.entries[ssData.index - 1].formdata["#textbox"];
  tab.linkedBrowser.contentDocument.getElementById = function()
  {
    return {
      value: textbox
    }
  };
};

It lies

@ThosRTanner ThosRTanner added the bug Something isn't working label Jul 5, 2020
@ThosRTanner ThosRTanner changed the title Varios window save/restore operations don't work if you have about:config on the here be dragons page Various window save/restore operations don't work if you have about:config on the here be dragons page Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant