Closed
Bug 863515
Opened 12 years ago
Closed 10 years ago
Electrolysis: Make content.opener work
Categories
(Firefox :: Tabbed Browser, defect, P3)
Tracking
()
RESOLVED
FIXED
Firefox 41
People
(Reporter: billm, Assigned: mconley)
References
(Blocks 1 open bug)
Details
Attachments
(4 files, 1 obsolete file)
The browser code frequently checks if content.opener is non-null. We should be able to forward this information from the content process.
Comment 1•12 years ago
|
||
This seems to magically work due to CPOWs - ie, the scratchpad in e10s builds tells me content.opener is "[object XrayWrapper [object Window]]" and I can fetch properties on it (eg, content.opener.location.href is correct, etc).
Is there something more subtle I'm missing?
Comment 2•11 years ago
|
||
That works, but is of course not really nice, because we have to create all these wrappers just for such a simple check.
Comment 3•11 years ago
|
||
Mass tracking-e10s flag change. Filter bugmail on "2be0fcce-e36a-4e2c-aa80-0e3d33eb5406".
tracking-e10s:
--- → +
Updated•11 years ago
|
Blocks: old-e10s-m2
Updated•10 years ago
|
Assignee: nobody → wmccloskey
Priority: -- → P3
Updated•10 years ago
|
No longer blocks: old-e10s-m2
Whiteboard: [e10s-m3]
Comment 4•10 years ago
|
||
Moving to M3 milestone. These bugs affect e10s dogfooding but Brad and Gavin did not think they were M2 blockers.
Reporter | ||
Comment 5•10 years ago
|
||
Moving this up to m5+. This doesn't really have much user-visible effect at all.
Assignee | ||
Updated•10 years ago
|
Assignee: wmccloskey → mconley
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 7•10 years ago
|
||
I took this, but having read it, I don't think it qualifies as an M5. Re-nomming.
Status: ASSIGNED → NEW
Updated•10 years ago
|
Assignee | ||
Comment 8•10 years ago
|
||
/r/8419 - Bug 863515 - Add property to browser bindings to indicate whether content caused it to open. r=?
/r/8421 - Bug 863515 - Switch usages of content.opener to gBrowser.selectedBrowser.hasContentOpener. r=?
Pull down these commits:
hg pull -r a8b9112c5d9954ceebbece2a28dbaba403f89c16 https://reviewboard-hg.mozilla.org/gecko/
Assignee | ||
Comment 9•10 years ago
|
||
Comment on attachment 8603393 [details]
MozReview Request: bz://863515/mconley
/r/8419 - Bug 863515 - Add property to browser bindings to indicate whether content caused it to open. r=?
/r/8421 - Bug 863515 - Switch usages of content.opener to gBrowser.selectedBrowser.hasContentOpener. r=?
Pull down these commits:
hg pull -r a8b9112c5d9954ceebbece2a28dbaba403f89c16 https://reviewboard-hg.mozilla.org/gecko/
Attachment #8603393 -
Flags: review?(felipc)
Assignee | ||
Comment 10•10 years ago
|
||
Comment 11•10 years ago
|
||
https://reviewboard.mozilla.org/r/8419/#review7109
When a tab is navigated to a different page, the content.opener information will change, right? So the cached value must be updated. Here the initial value for a tab will remain throughout its existence.
Assignee | ||
Comment 12•10 years ago
|
||
When I test single-process Firefox, tabs with openers (like one opened from target="_blank") seem to keep that opener for the lifetime of the outer browser window... do you see that too?
I was trying to emulate that behaviour. I've never even read the spec behind opener - not sure what the "right" thing to do here is.
Assignee | ||
Comment 13•10 years ago
|
||
Comment on attachment 8603393 [details]
MozReview Request: bz://863515/mconley
/r/8419 - Bug 863515 - Add property to browser bindings to indicate whether content caused it to open. r=?
/r/8421 - Bug 863515 - Switch usages of content.opener to gBrowser.selectedBrowser.hasContentOpener. r=?
Pull down these commits:
hg pull -r d7d1c65a573aef2f27a5d67c627c0e958b77938f https://reviewboard-hg.mozilla.org/gecko/
Comment 14•10 years ago
|
||
Comment on attachment 8603393 [details]
MozReview Request: bz://863515/mconley
https://reviewboard.mozilla.org/r/8417/#review7203
::: browser/base/content/browser.js:4174
(Diff revisions 1 - 2)
> + Pocket.onLocationChange(browser, aLocationURI);
is this part of the patch?
Attachment #8603393 -
Flags: review?(felipc)
Assignee | ||
Comment 15•10 years ago
|
||
https://reviewboard.mozilla.org/r/8417/#review7261
> is this part of the patch?
Nope, this Review Board not understanding that this patch series was rebased. Sorry about that. :)
Comment 16•10 years ago
|
||
Comment on attachment 8603393 [details]
MozReview Request: bz://863515/mconley
https://reviewboard.mozilla.org/r/8417/#review7263
Ship It!
Attachment #8603393 -
Flags: review+
Assignee | ||
Comment 17•10 years ago
|
||
https://reviewboard.mozilla.org/r/8417/#review7297
Pretty depressing results on my try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=5e544939e244
I don't think this patch is going to cut it. :(
Assignee | ||
Comment 18•10 years ago
|
||
Ok, I've gone through my notes on how we do window opening and tab opening, and I think I know how we can pull this off more safely. New patch coming up.
Assignee | ||
Updated•10 years ago
|
Attachment #8603393 -
Flags: review+ → review?(felipc)
Assignee | ||
Comment 19•10 years ago
|
||
Comment on attachment 8603393 [details]
MozReview Request: bz://863515/mconley
/r/8723 - Bug 863515 - Expose hasContentOpener on nsITabParent. r=?
/r/8419 - Bug 863515 - Add property to browser bindings to indicate whether content caused it to open. r=?
/r/8421 - Bug 863515 - Switch usages of content.opener to gBrowser.selectedBrowser.hasContentOpener. r=?
Pull down these commits:
hg pull -r 73cd053d96985c5cb1667a8821a419f3a6641600 https://reviewboard-hg.mozilla.org/gecko/
Assignee | ||
Comment 20•10 years ago
|
||
Comment on attachment 8603393 [details]
MozReview Request: bz://863515/mconley
/r/8723 - Bug 863515 - Expose hasContentOpener on nsITabParent. r=?
/r/8419 - Bug 863515 - Add property to browser bindings to indicate whether content caused it to open. r=?
/r/8421 - Bug 863515 - Switch usages of content.opener to gBrowser.selectedBrowser.hasContentOpener. r=?
Pull down these commits:
hg pull -r 73cd053d96985c5cb1667a8821a419f3a6641600 https://reviewboard-hg.mozilla.org/gecko/
Attachment #8603393 -
Flags: review?(bugs)
Comment 21•10 years ago
|
||
Comment 22•10 years ago
|
||
Assignee | ||
Comment 23•10 years ago
|
||
Comment on attachment 8603393 [details]
MozReview Request: bz://863515/mconley
/r/8723 - Bug 863515 - Expose hasContentOpener on nsITabParent. r=?
/r/8419 - Bug 863515 - Add property to browser bindings to indicate whether content caused it to open. r=felipe.
/r/8421 - Bug 863515 - Switch usages of content.opener to gBrowser.selectedBrowser.hasContentOpener. r=felipe.
Pull down these commits:
hg pull -r e53fb43afdd10ca6d8dff970abdaa82cb0848ca7 https://reviewboard-hg.mozilla.org/gecko/
Attachment #8603393 -
Flags: review?(felipc)
Updated•10 years ago
|
Attachment #8603393 -
Flags: review?(bugs) → review+
Comment 24•10 years ago
|
||
update iid of nsITabParent
Comment 25•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/fcee8fe97ec8
https://hg.mozilla.org/mozilla-central/rev/fa82c160f259
https://hg.mozilla.org/mozilla-central/rev/b8965a7ca29d
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
Assignee | ||
Comment 27•9 years ago
|
||
Attachment #8603393 -
Attachment is obsolete: true
Attachment #8618011 -
Flags: review+
Attachment #8618012 -
Flags: review+
Attachment #8618013 -
Flags: review+
Assignee | ||
Comment 28•9 years ago
|
||
Assignee | ||
Comment 29•9 years ago
|
||
Assignee | ||
Comment 30•9 years ago
|
||
Assignee | ||
Comment 31•9 years ago
|
||
bugnotes |
You need to log in
before you can comment on or make changes to this bug.
Description
•