Closed Bug 1247879 Opened 8 years ago Closed 6 years ago

[e10s] PageMod's onAttach handler stops getting called after tab was drag&dropped to another window

Categories

(Firefox :: Extension Compatibility, defect, P3)

47 Branch
x86_64
Windows 7
defect

Tracking

()

RESOLVED INCOMPLETE
Tracking Status
e10s + ---

People

(Reporter: krest143, Unassigned)

References

Details

(Whiteboard: triaged)

Attachments

(1 file)

Reproduced on Firefox Nightly v47.0a1 Build ID 20160211075855

Steps to reproduce:
1. Have addon that loads content script via PageMod. Something like
  pageMod.PageMod({
    include: ["*"],
    contentScriptFile: self.data.url("content-script.js"),
    onAttach: function(worker) {
       //...
    }
  });
2. Open Firefox.
3. Open a new tab and navigate in it to some URL that matches PageMod's pattern.
4. Drag'n'drop this tab to new window.
5. Reload page or navigate to another URL in this tab.

Expected result: content script gets loaded and PageMod's onAttach handler gets called with worker for that content script.

non-e10s result: as expected.

e10s result: content script gets loaded but PageMod's onAttach handler doesn't get called.

Comment: you can test it with Addon SDK examples like https://github.com/mdn/addon-sdk-content-scripts/tree/master/page-mod-port. It shows alert every time you click on page. It stops working after this. It's xpi is in attachment.
Blocks: e10s-addons
Version: unspecified → 47 Branch
Attachment #8718762 - Attachment mime type: application/zip → application/x-xpinstall
Could you explain again the STR.
I loaded this page (https://github.com/mdn/addon-sdk-content-scripts/tree/master/page-mod-port) in a tab.
When I click on a link, I get an alert box with the message "Do not click this again". If I drag&drop this page in a new window, if I click again on a link, I get the same alert box.

Where am I wrong?
Flags: needinfo?(krest143)
You have to reload page in this tab or navigate to another URL in it after drag&drop tab to new window(step 5)
Flags: needinfo?(krest143)
Priority: -- → P3
Whiteboard: triaged
With Firefox 57 only WebExtensions are permitted and are, by default, e10s compatible.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: