Closed Bug 608331 Opened 14 years ago Closed 13 years ago

Open blog posts in Google Reader with 'v' key open new tabs but doesn't load pages (docShell: Not Remotable)

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Maemo
defect
Not set
normal

Tracking

(fennec-)

VERIFIED FIXED
Firefox 6
Tracking Status
fennec - ---

People

(Reporter: whimboo, Assigned: mrbkap)

References

Details

(Whiteboard: [fennec-4.1?])

Attachments

(1 file, 1 obsolete file)

Fennec/4.0b2pre 20101029

When you try to open a blog post from Google Reader by using the 'v' key, a new tab opens but nothing gets loaded. Clicking the post title it works fine.

Steps:
1. Open about:config and add "keypress" to the dom.popup_allowed_events entry
2. Subscribe an RSS feed in Google Reader
3. Select a post from that feed
4. Tap on the title and wait for page loaded
5. Close tab and hit 'v'

After step 4 the new tab with the web page gets loaded but after step 5 an empty tab appears.

The following error is visible:

docShell: Not Remotable
Source: chrome://global/content/bindings/browser.xml
tracking-fennec: --- → ?
Oh, and those steps work fine in Firefox.
Assignee: nobody → wjohnston
tracking-fennec: ? → 2.0+
Attached patch Reduced Testcase (obsolete) — Splinter Review
Reader does about 100 different fun things trying to open pages, and this is one of them. Guessing this is some sort of e10s bug...
Attached file Testcase 2
Whoops. Forgot to set a type on this.
Attachment #492510 - Attachment is obsolete: true
(In reply to comment #3)
> Reader does about 100 different fun things trying to open pages, and this is
> one of them. Guessing this is some sort of e10s bug...

Is Fennec already using some sort of e10s on trunk?
Henrik, yep. The chrome window is in a separate process as well as the content window.
This has gotten me a bit worried. In the attached code we call:

  if(b=window.open("","FRAMENAME")) {
    b.document.write('stuff');
  }

which throws with the error "Permission denied to access property 'document'". As far as I know, sites can and will do this. However, if I modify the code slightly with a setTimeout (and loading a real page so that we don't load about:blank in a local tab):

  if(b=window.open("blank.html","FRAMENAME")) {
    setTimeout(function() { b.document.write('stuff') }, 0);
  }

now everything goes through fine. That makes me even more suspicious that we are hitting some sort of e10s problem. i.e. Are there async calls during the e10s new page creation that delay the creation of the new window slightly? mfinkle, do you know your way around this code and have any feedback about what is going on?
Blocks: 616348
tracking-fennec: 2.0+ → 2.0-
Whiteboard: [fennec-4.1?]
Wesley, can you test if the patch in bug 648465 fixed this as well?
Works great Blake! Thanks!
Bug 648465 is fixed on trunk now.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Works fine now. Thanks for the fix.
Assignee: wjohnston → mrbkap
Status: RESOLVED → VERIFIED
Target Milestone: --- → Firefox 6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: