DescriptionServe mojo WebUI resources from the same origin as the WebUI itself.
Currently, mojo resources are served from chrome://mojo and each mojo
WebUI controller replaces the WebUIDataSource for that origin with one
containing the resource it needs on construction. If a WebUI page's
controller (or an equivalent one) was not the last one to be
constructed, any requests for mojo bindings for its mojo interfaces
will fail. This change fixes this problem by serving the mojo resources
from the same origin as the WebUI itself.
BUG=557540
Committed: https://crrev.com/7e10653acb8254226f9b3ca5e0233c298c2ffbc3
Cr-Commit-Position: refs/heads/master@{#361275}
Committed: https://crrev.com/afd813ed4b6ce7fbaef2ed9dc39802bcd5587c79
Cr-Commit-Position: refs/heads/master@{#362078}
Patch Set 1 #
Total comments: 2
Patch Set 2 : #
Total comments: 1
Patch Set 3 : rebase #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : #Patch Set 8 : #Patch Set 9 : rebase #Messages
Total messages: 29 (12 generated)
|