Closed Bug 1359544 Opened 7 years ago Closed 7 years ago

Tree Style Tabs breaks when opening links that open in a new tab starting in Nightly 4/25

Categories

(Firefox :: Extension Compatibility, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
firefox55 --- affected

People

(Reporter: shell, Unassigned)

Details

OS: Mac
Regression window: worked 4/24, broke 4/25
Issue: Tree Style Tabs breaks when opening links in new tabs 

Andreas took a very quick glance at the code and the developer handles some e10s stuff around where the exception occurs
Hi Bob,

I asked in a general meeting if anyone knew of something that might have landed really recently and impacted links (so fishing).  Jimm mentioned you were doing ongoing work on file content process handling for sandboxing edge cases.  And potentially that might impact this area.

Did you land anything that would have shown up in todays nightly that could be related?

Andreas is in Germany - theone on IRC for more details
Flags: needinfo?(bobowencode)
So, the reproduce this, just install the latest Nightly along with the Tree Style Tabs add-on and then click on a link in an email on gmail.

The error I see in the browser console is:
E10SUtils.jsm:117:1: TypeError: aURI is null

Oddly, setting a breakpoint at that line using the browser debugger does not ever show `aURI` being null-ish.
Looks like devtools links to the wrong file/line.

The error appears inside the add-on: chrome://treestyletab/content/windowHelper.js#42

The relevant code is:

nsBrowserAccess.prototype.__treestyletab__openURIInFrame = nsBrowserAccess.prototype.openURIInFrame;
nsBrowserAccess.prototype.openURIInFrame = function(aURI, aParams, aWhere, aContext) {
    if (aWhere === Ci.nsIBrowserDOMWindow.OPEN_NEWTAB)
        TreeStyleTabService.onBeforeBrowserAccessOpenURI(aParams, aWhere, aContext);
    return nsBrowserAccess.prototype.__treestyletab__openURIInFrame.call(this, aURI, aParams, aWhere, aContext);
};

(line 42 is the return statement)

I assume `openURIInFrame` changed?
Summary: Tree Style Tabs breaks when opening links in new tabs starting in Nightly 4/25 → Tree Style Tabs breaks when opening links that open in a new tab starting in Nightly 4/25
Wild guess: Bug 902695 touched `openURIInFrame` on April 24.

Bill, could the patch in that bug break add-ons using this method?
Flags: needinfo?(wmccloskey)
That bug landed four years ago, so I doubt it :-). Did you mean a different bug?

In any case, this sounds like a perfect opportunity to use mozregression. It can find exactly which change broke Tree Style Tabs.
Flags: needinfo?(wmccloskey)
Hm, yeah, not sure what happened there. What I meant was bug 1356922.
Oh yeah, we added a new argument to that function. Maybe they just need to do that too and pass it along.
Thank you for the mention! This has been fixed by TST's this commit:
https://github.com/piroor/treestyletab/commit/c7009f5c878bfc04e056f91db2d5236d223e17ae
(In reply to :shell escalante from comment #1)
> Hi Bob,
> 
> I asked in a general meeting if anyone knew of something that might have
> landed really recently and impacted links (so fishing).  Jimm mentioned you
> were doing ongoing work on file content process handling for sandboxing edge
> cases.  And potentially that might impact this area.

Hi shell, I have been changing things in this sort of area recently, but not in the last few days.
Anyway, looks like we found the change.

I'll be making some more changes soon, but nothing that I think will break addons. (/me crosses fingers)
Flags: needinfo?(bobowencode)
(In reply to YUKI "Piro" Hiroshi from comment #8)
> Thank you for the mention! This has been fixed by TST's this commit:
> https://github.com/piroor/treestyletab/commit/
> c7009f5c878bfc04e056f91db2d5236d223e17ae

Thanks a lot for the quick fix!

Any reason why we should keep this bug open now?
I was waiting for a new version to be released, but it's probably better close this.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.